summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/seminar/src/sem-code.tex
blob: 451baaeed7642248e19f31f7e15a8a5971b26b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
%% 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, Timothy.VAN-ZANDT@insead.edu
%%
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%%
%% 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 Timothy.VAN-ZANDT@insead.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