% "Etendu" document style for Linköping E-Press
%  Variant for E-Press electronic articles in CIS
%  Developed by Erik Sandewall
%  Latest revision 1996-09-29

%  This style was created by adaptation of an earlier style
%  file by Lars Karlsson

\typeout{Style `Etendu for ea-cis', revised article, <29 Sept 1996>.}

\setlength{\oddsidemargin}{25mm}
\setlength{\textheight}{229mm}   
\setlength{\textwidth}{115mm}

% here, set a few parameters which are replaced between
% article series (cis, ee, me, etc)
\gdef\@serprep{Link{\"o}ping Electronic Articles in}
\gdef\@sername{Computer and Information Science}
\gdef\@sercode{ea/cis}
\gdef\@sereditor{Erik Sandewall}
\gdef\@issn{ea/cis}
\gdef\@ISSNnumber{ISSN 1401-9841}
\def\@CISxname{\@serprep \\ \@sername}
\def\@URLxname{{\sf http:/$\!\!$/www.ep.liu.se/{\@sercode}/\@TRyear/\@SERznumber/}}

\newif\if@fsttrtitle \@fsttrtitletrue

\def\@trtitleinfo{ 
 \if@fsttrtitle
   \unitlength 1mm
   \begin{picture}(160,0)
   \put(21,25){\begin{tabular}[t]{c}\trnormalfont \@CISxname\\\@TRvol  (\@TRyear): nr \@SERnumber\end{tabular}}
   \put(17,-190){\begin{tabular}[t]{c}\trnormalfont \@LEPxname\\~\\\@URLxname\end{tabular}}
   \put(40,-210){Revised version}
   \end{picture}
 \fi
}

\gdef\@serprep{Link{\"o}ping Electronic Articles in}
\gdef\@sername{Computer and Information Science}

\def\maketrtitle{
\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn \else \newpage \fi 
 \pagestyle{empty}
 \thispagestyle{empty}\c@page\z@
 \null
 \@trtitleinfo
 \restoftitle}

\def\restoftitle{
 \begin{center}
  {\Huge \@title \par}     % Title set in \huge size. 
  \vskip 3.8em                % Vertical space after title.
  {                    % each author set in \large, in a
   \trauthorfont \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 2.5em}


%%%%% The following puts an optional notice on the first page

\def\makeieeetitle{
\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn \else \newpage \fi 
 \pagestyle{empty}
 \thispagestyle{empty}\c@page\z@
 \null
 \@ieeetitleinfo
 \restoftitle}

\def\@ieeetitleinfo{ 
 \if@fsttrtitle
   \unitlength 1mm
   \begin{picture}(160,0)
   \put(21,25){\begin{tabular}[t]{c}\trnormalfont \@CISxname\\\@TRvol  (\@TRyear): nr \@SERnumber\end{tabular}}
   \put(-10,-120){\begin{tabular}[t]{c}\trnormalfont 
    Copyright {\@TRyear} IEEE. Personal use of this material is permitted. \\
    However, permission to reprint/republish this material for advertising \\
    or promotional purposes or for creating new collective works for resale \\
    or redistributions to servers or lists, or to reuse any copyrighted \\
    component of this work in other works must be obtained from the IEEE.
   \end{tabular}}
   \put(17,-190){\begin{tabular}[t]{c}\trnormalfont \@LEPxname\\~\\\@URLxname\end{tabular}}
   \end{picture}
 \fi
}

\def\makeguardtitle{
\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn \else \newpage \fi 
 \pagestyle{empty}
 \thispagestyle{empty}\c@page\z@
 \null
 \@guardtitleinfo
 \restoftitle}

\def\@guardtitleinfo{ 
 \if@fsttrtitle
   \unitlength 1mm
   \begin{picture}(160,0)
   \put(21,25){\begin{tabular}[t]{c}\trnormalfont \@CISxname\\\@TRvol  (\@TRyear): nr \@SERnumber\end{tabular}}
   \put(-15,-140){\begin{tabular}[t]{c}\trnormalfont 
    This work has been submitted for publication elsewhere. \\
   Copyright may then be transferred, \\
    and the present version of the article may be superseded by a 
     revised one. \\
    The WWW page at the URL stated below will contain up-to-date 
     information \\
    about the current version and copyright status of this article. 
     Additional \\
    copyright information is found on the next page of this document.
   \end{tabular}}
   \put(17,-190){\begin{tabular}[t]{c}\trnormalfont \@LEPxname\\~\\\@URLxname\end{tabular}}
   \end{picture}
 \fi
}

%%%%% The following is the standard definition for generating
%%%%% the heading and footing of the front page, plus the next page 
%%%%% containing copyright policy etc.

\def\trtitlepage{\trtitel{}{uthor's}}
\def\trtitlepagemul{\trtitel{s}{uthors'}}
\def\trtitlekeep{\trtitelke{}{uthor's}}
\def\trtitlekeepmul{\trtitelke{s}{uthors'}}

\def\trtitel#1#2{
  \newpage
  \setlength{\topmargin}{-6mm}     
  \begin{center}
    {\small \em 
      Revised version, published on \@TRdaterev\  by \\
      Link{\"o}ping University Electronic Press \\
      581 83 Link{\"o}ping, Sweden \\
      Original version was published on \@TRdate, \@TRyear  \\
      \vskip 1.5em               
      {\bf \@CISxname} \\
      \@ISSNnumber \\~
      Series editor: \@sereditor \\
      \vskip 1.5em
      \copyright  \@TRyear\  \@TRauthor \\
      Typeset by the author#1 using \LaTeX \\
      Formatted using {\sf {\'e}tendu} style \\
      \vskip 2.0em                
      {\bf Recommended citation:} \\
    $<$Author#1$>$. $<$Title$>$. \@CISxname, \@TRvol (\@TRyear): nr 
        \@SERnumber. \\
        \@URLxname. \@TRdate, \@TRyear. \\
      \vskip 1em \\
      The URL will also contain links to both the original version and \\
      the present revised version, as well as to the a#2 home page#1. \\
      \vskip 1.8em
      The publishers will keep this article on-line on the Internet \\
      (or its possible replacement network in the future) \\
      for a period of 25 years from the date of publication, \\
      barring exceptional circumstances as described separately. \\~
        \\
      The on-line availability of the article implies \\
      a permanent permission for anyone to read the article on-line, \\
      to print out single copies of it, and to use it unchanged \\
      for any non-commercial research and educational purpose,  \\
      including making copies for classroom use. \\
      This permission can not be revoked by subsequent \\
      transfers of copyright. All other uses of the article are \\
      conditional on the consent of the copyright owner#1. \\~
         \\
      The publication of the article on the date stated above \\
      included also the production of a limited number of copies \\
      on paper, which were archived in Swedish university libraries \\
      like all other written works published in Sweden. \\
      The publisher has taken technical and administrative measures \\
      to assure that the on-line version of the article will be \\
      permanently accessible using the URL stated above, \\
      unchanged, and permanently equal to the archived printed copies \\
      at least until the expiration of the publication period. \\~
         \\
      For additional information about the Link{\"o}ping University \\
      Electronic Press and its procedures for publication and for \\
      assurance of document integrity, please refer to \\
      its WWW home page: {\sf http:/$\!\!$/www.ep.liu.se/ } \\
      or by conventional mail to the address stated above.}
  \end{center}
  \if@restonecol\twocolumn \else \newpage \fi
 }

\def\trtitelke#1#2{
  \newpage
  \setlength{\topmargin}{-6mm}     
  \begin{center}
    {\small \em 
      Published on \@TRdate, \@TRyear\   by \\
      Link{\"o}ping University Electronic Press \\
      581 83 Link{\"o}ping, Sweden \\
      \vskip 2.0em               
      {\bf \@CISxname} \\
      \@ISSNnumber \\~
      Series editor: \@sereditor \\
      \vskip 2.0em
      \copyright  \@TRyear\  \@TRauthor \\
      Typeset by the author#1 using \LaTeX \\
      Formatted using {\sf {\'e}tendu} style \\
      \vskip 2.0em                
      {\bf Recommended citation:} \\
    $<$Author#1$>$. $<$Title$>$. \@CISxname, \@TRvol (\@TRyear): nr 
        \@SERnumber. \\
        \@URLxname. \@TRdate, \@TRyear. \\
      \vskip 1.4em
      This URL will also contain a link to the a#2 home page#1. \\
      \vskip 2.8em
      The publishers will keep this article on-line on the Internet \\
      (or its possible replacement network in the future) \\
      for a period of 25 years from the date of publication, \\
      barring exceptional circumstances as described separately. \\~
        \\
      The on-line availability of the article implies \\
      a permanent permission for anyone to read the article on-line, \\
      and to print out single copies of it for personal use. \\
      This permission can not be revoked by subsequent \\
      transfers of copyright. All other uses of the article, \\
      including for making copies for classroom use, \\
      are conditional on the consent of the copyright owner#1. \\~
         \\
      The publication of the article on the date stated above \\
      included also the production of a limited number of copies \\
      on paper, which were archived in Swedish university libraries \\
      like all other written works published in Sweden. \\
      The publisher has taken technical and administrative measures \\
      to assure that the on-line version of the article will be \\
      permanently accessible using the URL stated above, \\
      unchanged, and permanently equal to the archived printed copies \\
      at least until the expiration of the publication period. \\~
         \\
      For additional information about the Link{\"o}ping University \\
      Electronic Press and its procedures for publication and for \\
      assurance of document integrity, please refer to \\
      its WWW home page: {\sf http:/$\!\!$/www.ep.liu.se/ } \\
      or by conventional mail to the address stated above.}
  \end{center}
  \if@restonecol\twocolumn \else \newpage \fi
 }


%%%%% The following are the commands for generating the abstracts page
%%%%% 

\def\trabstract{
\begin{center}%
   \vskip 4em
{\trabstractfont \bf Abstract \vspace{-.5em}\vspace{\z@}}%
\end{center}%
   \vskip 4em
\trquotation \trnormalfont \baselineskip=16pt
}

\def\endtrabstract{\endtrquotation}

\def\support{\vskip 1.2em \trquotation\trnormalfont\it}
\def\endsupport{\endtrquotation}

\def\accepted{\vskip 1.2em \center\trnormalfont\it}
\def\endaccepted{\endcenter}

\def\trquotation{\list{}{\listparindent 1.5em
    \rightmargin 0em \leftmargin 0em \parsep \z@ plus\p@}\item[]}
\let\endtrquotation=\endlist

\def\trabstractpage{
   \newpage
   \pagestyle{myheadings}
   \markboth{}{}
   \setcounter{page}{1}
 }


%%%%% Alternative layout identifying ABSTRACT, SUMMARY, ARTICLE, and
%%%%% RELATED WORK as distinct sections
%%%%% 

\def\artsect#1{
\begin{center}
\vskip 4em
{\LARGE \bf #1 \vspace{-.5em}\vspace{\z@}}
\end{center}%
   \vskip 4em
}

%%%%% The following are the commands for setting text parameters 
%%%%% that are used by the above

\def\sernum#1{\gdef\@SERnumber{#1}}
\gdef\@SERnumber{nn}

\def\serznum#1{\gdef\@SERznumber{#1}}
\gdef\@SERznumber{nnn}

\def\tryear#1{\gdef\@TRyear{#1}}
\gdef\@TRyear{199n}

\def\trauthor#1{\gdef\@TRauthor{#1}}
\gdef\@TRauthor{First Secondname}

\def\trdate#1{\gdef\@TRdate{#1}}
\gdef\@TRdate{February nn,}

\def\trdaterev#1{\gdef\@TRdaterev{#1}}
\gdef\@TRdaterev{February nn,}

\def\trvol#1{\gdef\@TRvol{Vol. #1}}
\gdef\@TRvol{Vol. n}

\def\ISSN#1{\gdef\@ISSNnumber{ISSN-#1}}

\def\email#1{\raisebox{2mm}{\tremailfont Email: #1}}

\def\LEPname#1{\gdef\@LEPxname{#1}}
\def\@LEPxname{Link{\"o}ping University Electronic Press\\ Link{\"o}ping, 
   Sweden}

\font\trtitlefont=cmr17 scaled \magstep2 
\font\trauthorfont=cmr17
\font\tremailfont=cmr10
\font\trnormalfont=cmr12
\font\trabstractfont=cmr8

