%% BEGIN sem-code.tex.
\def\FileVersion{1.0}
\def\FileDate{93/04/01}
%%
%% For printing documented code for seminar.sty.
%%
%% COPYRIGHT 1993, by Timothy Van Zandt, tvz@Princeton.EDU
%%
%% This LaTeX file inputs seminar.doc and semlayer.doc,
%% and prints the documented code.
%%
%% You must also have Frank Mittelbach's
%%     doc.sty and gind.ist
%% (available from ftp.uni-stuttgart.de), as well as my
%%     tvz-hax.sty, tvz-code.sty and fancybox.sty
%% (distributed with seminar.sty).
%%
%% gind.ist is for the index. I.e.,
%%            makeindex -s gind.ist sem-code.idx
%%
%% STYLE OPTIONS:
%%   `a4'       : For A4 paper.
%%   `twoside'  : For two-sided printing.
%%   `2up'      : For two-up printing. (Uses non-standard font magnifications.
%%                                      See 2up.doc for details.)

\documentstyle{tvz-code}

\CheckVersion{seminar.doc}

% Comment out to suppress generation of .idx file. Speeds things up.
\MakeIndex

% Include to suppress checksums for drafts:
% \def\StopEventually#1{\let\Finale\relax}

\MakeShortVerb\"

\ShortMeta

\begin{document}

\def\thetitle{{\tt seminar.sty}: Documented Code}

\begingroup
  \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  \thispagestyle{empty}
  \let\footnotesize\small
  \let\footnoterule\relax
  \setcounter{page}{0}
  \null
  \vfill
  \begin{center}
    {\Huge\bf seminar.sty}\\[10pt]
    {\huge\bf A \bLaTeX{} style for slides and notes}\\[18pt]
    {\huge\bf Documented Code}\par
    \vskip 1cm
    \large Timothy Van Zandt\\[2pt]
    {\normalsize\tt tvz@Princeton.EDU}
    \vskip 1cm
    {\large \thefiledate\\ Version \fileversion\par}
  \end{center}
  \par
\endgroup

\vfill
\begin{quote}
"seminar.sty" is a \LaTeX{} document style for typesetting slides or
transparencies, and accompanying notes.

This is the documented code. There is also a {\em User's Guide}, which
contains installation instructions.
\end{quote}
\vfill

\clearpage

\pagenumbering{roman}
\thispagestyle{empty}
\tableofcontents
\clearpage
\pagenumbering{arabic}

\StopEventually{}
\DocInput{seminar.doc}
\Finale
\clearpage

\StopEventually{}
\DocInput{semlayer.doc}
\Finale
\clearpage

\DeleteShortMeta

\PrintIndex

\end{document}
%% END sem-code.tex
