%\filename{reportmacros.tex}
%\edited{last by stolfi on Tue Apr 21 03:42:08 1987}

\catcode`@=11 \endlinechar=-1

% Macros and layouut parameters for CNPq/USP reports
%   To be \input after loading a normal paper format (e.g. am11fmt)

% WARNING: MAY BE OBSOLETE

  \message{report macros...}

  % Report title

    \long\def\reptitle#1{\vskip0pt plus1ex
      {\vbox{
         \titlefont\baselinesep 2.5ex\linesep.2ex % NOT centered
         #1}}
      \gdef\hdtitle{#1}
      \vskip2ex}

  % Signature and date at end

    \def\date#1{\penalty 1000\vskip 1cm minus 0.5cm
      \penalty 1000\hbox to \textwidth pt{\hfil#1}}

    \def\signed#1{\vskip 2cm plus30cm minus 1cm
      \hbox to \textwidth{\hfil
        \vbox{\hrule\vskip5pt\hbox{\hskip 30pt #1\hskip30 pt}}
        \hskip4cm}
        \vskip 2cm plus30cm minus 1cm}

  % Formats for course lists

    %  Usage:

    \def\disc #1{\parindent 5mm
        \par\vskip 3mm plus 5mm
        \penalty-100{\bf #1}} % Course title and number
  
    \def\curit #1: #2{\parindent 10mm\par
        \vskip -1mm plus 1mm
        \hangindent 15mm \hangafter1
        {\smc #1:} #2} % Course item (instructor, etc.)

    \def\pcur{\par\vskip -1mm plus 1mm
        \noindent
        \hangindent 15mm \angafter0 } % \par inside course item

    \def\enddiscs{\parindent 5mm
        \par\vskip 3mm plus 5mm
        \penalty-100}  % after last course.

  % Additional fonts:

    \font\smallcapsfont=cmssmc10 at 12pt % small caps
    \def\smc{\smallcapsfont } % small caps

  % slight changes in some parameters:

    \advance\pagewidth by -30pt
    \advance\hoffset by 30pt

    \advance\textwidth by -30pt
    \hsize=\textwidth

    {\normalsize\rm
     \global\parindent=5em}

\catcode`@=12 \endlinechar=`\^^M

% END

