% File              : splib.cls
% Version           : $Revision: 1.6 $
% Author            : Ralf Treinen <treinen@debian.org> (for RTALOOP)
% Last-modified     : $Date: 2002/11/06 11:19:47 $
% Last-modifier     : FJ
%
% Documentclass splib

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{splib}%[2002/10/4]
\LoadClass[a4paper,11pt]{article}
\usepackage{hevea}
\usepackage{ifthen}

\newcommand{\slashdate}[1]{#1}

% title of the bibliography section (at the end of the protocol environment)
\renewcommand{\refname}{Citations}

% heading
\usepackage{fancyheadings}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\plainfootrulewidth}{0.4pt}
\addtolength{\headheight}{2pt}

\lhead{\fancyplain{}{\localtitle}}
\chead{}
\rhead{\fancyplain{}{\thepage}}
\cfoot{}
\rfoot{}
\lfoot{\texttt{http://www.lsv.ens-cachan.fr/$\sim$jacquema/splib/}}

% page layout
\parindent0pt
\parskip6pt
\includeonly{}

\usepackage{splib-common}

\AtBeginDocument{\include{all}}

\AtEndDocument{\bibliography{splib}%
  \bibliographystyle{alpha}%
  \vfill\today}

% Main environment of a protocol description document.
% 
% The format for the dates is dd/mm/aaaa. dd and mm can be 0 if they
% are unknown but they must be present.
%
% param #1  protocol title
% param #2  protocol author(s), separated by commas
% param #3  date of the protocols first publication
% param #4  editor, who submitted the protocol to the list
% param #5  submission date
% param #6  date of the last change to submission
\newenvironment{protocol}[6]%
{ \settitle{#1}
  \setlastchange{#6}
  \section*{#1} 
  {\textbf{Author(s):} {#2}\ \slashdate{#3}}
  \ifthenelse{\equal{#4}{}}{}%
  {\\%
    \textit{Submitted by {#4}}
    \ifthenelse{\equal{#5}{}}{}
    {\textit{\quad \slashdate{#5}}}}
  \ifthenelse{\equal{#6}{}}{}%
  {\\ {\textit{Last modified \slashdate{#6}}}}
  \par\bigskip}
{}

