% **********************************************
% *                                            *
% *      Substyle for ETH articles             *
% *                                            *
% **********************************************
%
% FILENAME:   ETHarticle.sty
%
% ABSTRACT:   Modifications to the 'article document style V2.09' for
%             ETH articles. This style writes an ETH-logo on the first page
%             (if \maketitle is called on that page). The page layout has
%             been adapted to A4 size. Language dependent strings will
%             be translated according to the chosen language. The laboratory
%             name can be specified with the \laboratory macro (usually done
%             in the <lab.> file) and the groupname with the \group macro
%             (in the <pers.> file).
%
% USAGE:      \documentstyle[<lang.>,ETHarticle,<lab.>,<pers.>]{article}
%
% EXCEPTIONS: -
%
% HISTORY:    Written by Edi Saeckinger, May 19, 1987.
%             Updated by ES, Jan 15, 1988. (\group and gcm files)
%
%************************************************************************
%
\typeout{Document substyle for ETH articles. Released 15 January 1988}
\def\es{} % eat space for nice formatting

%
% PAGE LAYOUT
%
\setlength{\topmargin}{-1cm}
\setlength{\headheight}{1.5cm}
\setlength{\headsep}{0.3cm}
\setlength{\textheight}{23.5cm}
\setlength{\oddsidemargin}{0.5cm}
\setlength{\textwidth}{15cm}

%
% MAKETITLE WITH ETH-HEAD
%
\def\maketitle{%\par
 \begingroup
   \def\thefootnote{\fnsymbol{footnote}}
   \def\@makefnmark{\hbox   
       to 0pt{$^{\@thefnmark}$\hss}}   
   \if@twocolumn               
     \twocolumn[\@maketitle]   
     \else \newpage
     \global\@topnum\z@        % Prevents figures from going at top of page.
     \@maketitle \fi\thispagestyle{ETHform}\@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\@maketitle{\newpage
 \noindent{\large\laboratorystring}\\
 \groupstring
 \null
 \vskip 2em                 % Vertical space above title.
 \begin{center}
  {\LARGE \@title \par}     % Title set in \LARGE size. 
  \vskip 1.5em                % Vertical space after title.
  {\large                        % each author set in \large, in a
   \lineskip .5em           % tabular environment
   \begin{tabular}[t]{c}\@author 
   \end{tabular}\par}                   
  \vskip 1em              % Vertical space after author.
  {\large \@date}           % Date set in \large size.
\end{center}
 \par
 \vskip 1.5em}                % Vertical space after date.

%
% TRANSLATE ARTICLE STRINGS
%
\input{articleint.sty}

%
% THE GENERIC ETH-ARTICLE COMMANDS
%
\input{labdata.gcm}
\input{perdata.gcm}

%
%  PAGE STYLE
%
\def\@texttop{}
\input{ETHform.sty}

