% knawproc.cls
% KNAW proceedings style
%
% Written by David Jansen (jansen@strw.leidenuniv.nl)
%
% Version 0.1 (09Oct96)
% Version 0.9 (18Dec96)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Sorry, it just doesn't work otherwise
%
\NeedsTeXFormat{LaTeX2e}
%
\ProvidesClass{knawproc}[1996/12/18 - KNAW proceedings article class]
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Actually, we want to load and modify the ``article'' style
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions
\LoadClass[b5paper,openbib,10pt,twoside]{article}
% or: \LoadClass[a4paper,openbib,11pt,twoside]{article}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Title page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% - no date:
\renewcommand{\@date}{}
%
% - opening environment
\newenvironment{opening}%
  {}{
    \renewcommand{\@evenhead}{\thepage\hfil\slshape\leftmark}
    \renewcommand{\@oddhead}{{\slshape\rightmark}\hfil\thepage}
    \markboth{\@runningauthor}{\@runningtitle}
    \maketitle
  }
%
%
\def\emptydef{}
\renewcommand{\@maketitle}{%
  \newpage
  \null
  \vskip 2em%
  \begin{center}%
    {\LARGE \@title \par}%
    \ifx\@subtitle\emptydef%
    \else
    {\large \@subtitle \par}%
    \fi
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
  \vskip 1em%
  \noindent\@addresses
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par
  \vskip 1.5em%
}
%
% - modify \title and \author to fill in default running heads
\renewcommand{\title}[1]{\gdef\@title{#1}\gdef\@runningtitle{#1}}
\renewcommand{\author}[1]{\gdef\@author{#1}\gdef\@runningauthor{#1}}
% additional fields
\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
\newcommand{\addresses}[1]{\gdef\@addresses{#1}}
%
% - allow user the option to modify these
\newcommand{\runningtitle}[1]{\gdef\@runningtitle{#1}}
\newcommand{\runningauthor}[1]{\gdef\@runningauthor{#1}}
%
% - set defaults
\title{}
\subtitle{}
\author{}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Headers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% - no footers, but headers
\pagestyle{myheadings}
% - containing the (abbreviated) title and author list

%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Figures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% - change caption layout
\renewcommand{\@makecaption}[2]{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{\textbf{#1.} #2}%
  \ifdim \wd\@tempboxa >\hsize
    \textbf{#1.} #2\par
  \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Acknowledgements
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newenvironment{acknow}{\paragraph{Acknowledgements}}{\\}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The references environment, a modification of thebibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% - the layout
\newenvironment{references}
  {\begin{thebibliography}{}
   \setlength{\parsep}{0pt}
   \setlength{\itemsep}{0pt}
  }
  {\end{thebibliography}
}
% - no [] around label:
\renewcommand{\@biblabel}[1]{#1}
%
% That's all folks !
