% ICEAC DOCUMENT STYLE -- released 08 October 1990
%    for LaTeX 2.09
% By J. Stolfi
% Adapted from dcc.sty by Pedro J. de Rezende.
%
% ICEAC outputs a nice double-underlined header. (Actually, it can go
% anywhere on a page, not just as a header.)

\typeout{Document Style Option `ICEAC' -- Released 93-08-20}

\input{abaco.tex}

\catcode`@=11 \endlinechar=-1

\def\doubleunderline#1{
  \vtop{
    \offinterlineskip
    \halign{##\cr
      #1\cr\noalign{\kern 3pt\hrule\kern 1pt\hrule}
    }
  }
}

\def\iceaclogo{\hbox{\ABACO{1}{9}{9}{3}{0.75}}}

\def\unicamplogo{
  \hbox{
    \setlength{\unitlength}{1pt}
    \begin{picture}(80,95)
      \put(0,0){
        \makebox{
          \special{
            psfile=/home/staff/stolfi/tex/inputs/unicamp-logo-js.ps %
            voffset=-20 hoffset=-10 
          }
        }
      }
    \end{picture}
  }
}

\def\Institute{Instituto de Ci\^encia, Engenharia e Arte da Computa\c{c}\~ao}
\def\Department{Departamento de Ci\^encia da Computa\c{c}\~ao}
\def\University{Universidade Estadual de Campinas}
\long\def\Title{}
\long\def\Author{}
\long\def\Date{}

\long\def\ICEACHEADER{
  \hbox{
    $
      \vcenter{
        \vtop{\offinterlineskip\hrule height 0pt\unicamplogo}
      }
    $
    \hss
    $
      \vcenter{\hsize 12cm
        \begin{minipage}[t]{12cm}
          \hrule height0pt width 0pt
          \begin{tabular}{c}
            \doubleunderline{\normalsize\sf\University}\\[5pt]
            \doubleunderline{\normalsize\sf\Institute}\\[5pt]
            \doubleunderline{\normalsize\sf\Department}
          \end{tabular}
        \end{minipage}
      }
    $
    \hss
    $
      \vcenter{
        \vtop{\offinterlineskip\hrule height 0pt\iceaclogo}
      }
    $
  }
}

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