summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-31 23:20:30 +0000
committerKarl Berry <karl@freefriends.org>2013-12-31 23:20:30 +0000
commit86eee27b59637d600f33de8a39048a692a234a64 (patch)
treed9ba7e73d110c96636d74813a51026fcc52e3dbc /Master/texmf-dist/doc
parentdf85c77bc36e66a3a4906a68fe15b323017b457d (diff)
seminar
git-svn-id: svn://tug.org/texlive/trunk@32529 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r--Master/texmf-dist/doc/latex/seminar/Changes4
-rw-r--r--Master/texmf-dist/doc/latex/seminar/README (renamed from Master/texmf-dist/doc/latex/seminar/sem-read.me)78
-rw-r--r--Master/texmf-dist/doc/latex/seminar/read-me.2e73
-rw-r--r--Master/texmf-dist/doc/latex/seminar/sem-code.tex110
-rw-r--r--Master/texmf-dist/doc/latex/seminar/sem-make.tex27
-rw-r--r--Master/texmf-dist/doc/latex/seminar/seminar-doc.pdf (renamed from Master/texmf-dist/doc/latex/seminar/sem-user.pdf)bin251653 -> 251653 bytes
-rw-r--r--Master/texmf-dist/doc/latex/seminar/seminar-doc.tex (renamed from Master/texmf-dist/doc/latex/seminar/sem-user.tex)0
-rw-r--r--Master/texmf-dist/doc/latex/seminar/seminar.bg3705
-rw-r--r--Master/texmf-dist/doc/latex/seminar/seminar.con946
-rw-r--r--Master/texmf-dist/doc/latex/seminar/seminar.doc2048
-rw-r--r--Master/texmf-dist/doc/latex/seminar/semlayer.doc271
-rw-r--r--Master/texmf-dist/doc/latex/seminar/semsamp1.pdfbin0 -> 31363 bytes
-rw-r--r--Master/texmf-dist/doc/latex/seminar/semsamp2.pdfbin0 -> 43829 bytes
-rw-r--r--Master/texmf-dist/doc/latex/seminar/semsamp2.tex12
-rw-r--r--Master/texmf-dist/doc/latex/seminar/tvz-code.sty291
-rw-r--r--Master/texmf-dist/doc/latex/seminar/tvz-hax.sty266
-rw-r--r--Master/texmf-dist/doc/latex/seminar/tvz-user.sty215
17 files changed, 4194 insertions, 852 deletions
diff --git a/Master/texmf-dist/doc/latex/seminar/Changes b/Master/texmf-dist/doc/latex/seminar/Changes
new file mode 100644
index 00000000000..bca062b5dfb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/Changes
@@ -0,0 +1,4 @@
+----- seminar.tex
+1.6 2012-12-27 - use the macros from package pst-ovl (hv)
+
+
diff --git a/Master/texmf-dist/doc/latex/seminar/sem-read.me b/Master/texmf-dist/doc/latex/seminar/README
index 3003ea40b81..ca84b110dc9 100644
--- a/Master/texmf-dist/doc/latex/seminar/sem-read.me
+++ b/Master/texmf-dist/doc/latex/seminar/README
@@ -50,7 +50,7 @@ DESCRIPTION:
FILES:
- Inputs:
+ LaTeX:
seminar.sty : The main style file.
sem-page.sty : Page parameters.
semlayer.sty : The semlayer style option (overlays and color layers).
@@ -297,3 +297,79 @@ CHANGES:
that system of formats and selections has changed.
%% END sem-read.me
+
+
+
+THIS IS A SUPPLEMENTARY READ-ME FOR V1.0e OF THE SEMINAR PACKAGE
+
+***********************************************************************
+**** "readme" file for the Seminar package, v1.0e, 94/09/12 ****
+***********************************************************************
+
+COPYRIGHT 1993, 1994 by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu
+%%
+%% These files 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.
+%%
+
+BUGS: If you have problems using this seminar package with LaTeX2e,
+ report them to Timothy.VAN-ZANDT@insead.edu. The problem probably lies
+ with seminar.cls. You can probably continue to use the seminar
+ package with LaTeX2e in compatibility mode, while waiting for a bug
+ fix, by renaming seminar.cls to something else.
+
+ABOUT V1.0e:
+
+ The V1.0e distribution is identical to v1.0 of 93/04/01,
+ except for a few changes so that Seminar can work with
+ NFSS2 and LaTeX2e:
+
+ - semhelv.sty and semlcmss.sty have been modified to work
+ with NFSS2 and LaTeX2e (but they still work with NFSS).
+
+ - seminar.cls has been added. This is a LaTeX2e document class,
+ derived from seminar.sty v1.0 by Sebastian Rahtz.
+
+ If you already have have seminar.sty v1.0e, then all you need
+ are this read-me file plus these files from the inputs
+ directory:
+
+ seminar.cls semhelv.sty semlcmss.sty
+
+USING SEMINAR WITH LATEX2E:
+
+ !!! YOU MUST BE USING A LATEX2E RELEASED AFTER 19 FEBRUARY 1994
+
+ You can either use seminar.sty in compatibility mode:
+ \documentstyle{seminar}
+ Or use the seminar.cls document class:
+ \documentclass{seminar}
+
+ Unless you are using other macros that only work in
+ compatibility mode, you might as well use the document class.
+
+ You can use the following options with \documentclass{seminar}:
+
+ article slidesonly notes notesonly notesonly*
+ noxcomment portrait a4 (or a4paper) semhelv semlcmss
+ semlayer semrot semcolor slidesec
+
+ plus appropriate options for the article document class
+ (e.g., 11pt)
+
+ NOTE: Use `a4' or `a4paper', not `sem-a4'.
+
+ `seminar.cls' is a minimal modification of seminar.sty. The
+ next release will take advantage of more of LaTeX2e's special
+ capabilities.
+
+
+Tim Van Zandt
+August 24, 1994
diff --git a/Master/texmf-dist/doc/latex/seminar/read-me.2e b/Master/texmf-dist/doc/latex/seminar/read-me.2e
deleted file mode 100644
index 01bb2885263..00000000000
--- a/Master/texmf-dist/doc/latex/seminar/read-me.2e
+++ /dev/null
@@ -1,73 +0,0 @@
-THIS IS A SUPPLEMENTARY READ-ME FOR V1.0e OF THE SEMINAR PACKAGE
-
-***********************************************************************
-**** "readme" file for the Seminar package, v1.0e, 94/09/12 ****
-***********************************************************************
-
-COPYRIGHT 1993, 1994 by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu
-%%
-%% These files 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.
-%%
-
-BUGS: If you have problems using this seminar package with LaTeX2e,
- report them to Timothy.VAN-ZANDT@insead.edu. The problem probably lies
- with seminar.cls. You can probably continue to use the seminar
- package with LaTeX2e in compatibility mode, while waiting for a bug
- fix, by renaming seminar.cls to something else.
-
-ABOUT V1.0e:
-
- The V1.0e distribution is identical to v1.0 of 93/04/01,
- except for a few changes so that Seminar can work with
- NFSS2 and LaTeX2e:
-
- - semhelv.sty and semlcmss.sty have been modified to work
- with NFSS2 and LaTeX2e (but they still work with NFSS).
-
- - seminar.cls has been added. This is a LaTeX2e document class,
- derived from seminar.sty v1.0 by Sebastian Rahtz.
-
- If you already have have seminar.sty v1.0e, then all you need
- are this read-me file plus these files from the inputs
- directory:
-
- seminar.cls semhelv.sty semlcmss.sty
-
-USING SEMINAR WITH LATEX2E:
-
- !!! YOU MUST BE USING A LATEX2E RELEASED AFTER 19 FEBRUARY 1994
-
- You can either use seminar.sty in compatibility mode:
- \documentstyle{seminar}
- Or use the seminar.cls document class:
- \documentclass{seminar}
-
- Unless you are using other macros that only work in
- compatibility mode, you might as well use the document class.
-
- You can use the following options with \documentclass{seminar}:
-
- article slidesonly notes notesonly notesonly*
- noxcomment portrait a4 (or a4paper) semhelv semlcmss
- semlayer semrot semcolor slidesec
-
- plus appropriate options for the article document class
- (e.g., 11pt)
-
- NOTE: Use `a4' or `a4paper', not `sem-a4'.
-
- `seminar.cls' is a minimal modification of seminar.sty. The
- next release will take advantage of more of LaTeX2e's special
- capabilities.
-
-
-Tim Van Zandt
-August 24, 1994
diff --git a/Master/texmf-dist/doc/latex/seminar/sem-code.tex b/Master/texmf-dist/doc/latex/seminar/sem-code.tex
new file mode 100644
index 00000000000..451baaeed76
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/sem-code.tex
@@ -0,0 +1,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
diff --git a/Master/texmf-dist/doc/latex/seminar/sem-make.tex b/Master/texmf-dist/doc/latex/seminar/sem-make.tex
new file mode 100644
index 00000000000..4a2f81365cf
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/sem-make.tex
@@ -0,0 +1,27 @@
+%% BEGIN sem-make.tex
+%%
+%% A batch file for extracting the code from seminar.doc and semlayer.doc,
+%% using Frank Mittelbach's docstrip.tex utility.
+%% Tested with docstrip.tex V2.0r. Might not work with other versions.
+%%
+%% Run with TeX or LaTeX.
+%%
+%% 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.
+%%
+%%
+\def\batchfile{sem-make.tex}
+\input docstrip
+\preamble
+\endpreamble
+\processFile{seminar}{doc}{sty}{t}
+\processFile{semlayer}{doc}{sty}{t}
+%%
+%% END sem-make.tex
diff --git a/Master/texmf-dist/doc/latex/seminar/sem-user.pdf b/Master/texmf-dist/doc/latex/seminar/seminar-doc.pdf
index 2227746eae3..2227746eae3 100644
--- a/Master/texmf-dist/doc/latex/seminar/sem-user.pdf
+++ b/Master/texmf-dist/doc/latex/seminar/seminar-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/seminar/sem-user.tex b/Master/texmf-dist/doc/latex/seminar/seminar-doc.tex
index 94aef0b7f01..94aef0b7f01 100644
--- a/Master/texmf-dist/doc/latex/seminar/sem-user.tex
+++ b/Master/texmf-dist/doc/latex/seminar/seminar-doc.tex
diff --git a/Master/texmf-dist/doc/latex/seminar/seminar.bg3 b/Master/texmf-dist/doc/latex/seminar/seminar.bg3
new file mode 100644
index 00000000000..a37ceb14daf
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/seminar.bg3
@@ -0,0 +1,705 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% seminar.bg3 --- Corrections for compatibility problems and new bugs
+%% found in the Seminar package, and few new additions
+%% to help overlays management for PDF output files.
+%% (see also the seminar.bug file in Seminar distribution)
+%%
+%% Disclaimer: this file is mine and doesn't engage TVZ!
+%%
+%% Note: insert it after \usepackage{graphicx} if you use `graphicx'
+%% and after \usepackage{longtable} if you use `longtable'
+%%
+%% Author : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou@idris.fr>
+%% Created the : 1995
+%% Last mod. by : Patrice MEGRET (FPMs - Belgium) <patrice.megret@fpms.ac.be>
+%% Last mod. the : Sunday February 29 2004
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\FileVersion{2.2}
+\def\FileDate{February 29, 2004}
+\typeout{seminar.bg3: various corrections for the Seminar document class^^J%
+ added since seminar.bug and few add-ons for overlays^^J%
+ (Version \FileVersion\space of <\FileDate> (P.M.))}
+
+\edef\TheAtCode{\the\catcode`\@}
+\catcode`\@=11
+
+% PM modification begin PM December 6, 2003
+% ce nouveau test permet de choisir entre un footer
+% verticalement centré \footervcenter = true (default)
+% ou non \footervcenter = false
+\newif\iffootervcenter \footervcentertrue
+% PM modification end December 6, 2003
+
+
+% 1 - To correct a bug in the note environment
+% (reported by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - 1995)
+\@savsf=1
+
+
+% 2 - To correct several bugs to generate a list of slides with subsection
+% entries
+% (reported by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - Jul. 18, 1995)
+% - To clear the subheading when a new heading is defined
+% (reported by Axel Thimm - <thimm@physik.fu-berlin.de> - June 5, 1997)
+% - To assure coherence between heading and subheading when used
+% in header/footer, for article mode
+% (reported by Axel Thimm - <thimm@physik.fu-berlin.de> - June 5, 1997)
+% - Improvements (\refstepcounter and \@addtoreset) by Jeremy Gibbons
+% <jgibbons@brookes.ac.uk> - Sep. 30, 1997
+
+% Used by the \slide@subheading macro but undefined
+\def\theslidesubsection{\theslidesection.\arabic{slidesubsection}}
+
+\def\slide@heading[#1]#2{%
+% D.G. modification begin - Oct. 15, 1997
+% \stepcounter{slidesection}%
+ \refstepcounter{slidesection}%
+ \@addtoreset{slidesubsection}{slidesection}
+% D.G. modification end
+ \addtocontents{los}{\protect\l@slide
+ {\the\c@slidesection}{\ignorespaces#1}{\@SCTR}}%
+% D.G. modification begin - May 30, 1997
+% \gdef\theslideheading{#1}%
+% D.G. modification end
+ \def\@tempa{#2}%
+ \ifx\@tempa\@empty\else
+ {\edef\@currentlabel{\csname p@slidesection\endcsname\theslidesection}%
+ \makeslideheading{#2}}%
+ \fi
+% D.G. modification begin - May 30, 1997
+ \gdef\theslideheading{#1}%
+% D.G. modification end
+% D.G. modification begin - Aug. 1, 1997
+ \gdef\theslidesubheading{}%
+% D.G. modification end
+}
+
+\def\slide@subheading[#1]#2{%
+% D.G. modification begin - Oct. 15, 1997
+% \stepcounter{slidesection}%
+ \refstepcounter{slidesubsection}%
+% D.G. modification end
+ \addtocontents{los}{\protect\l@subslide
+ {\the\c@slidesubsection}{\ignorespaces#1}{\@SCTR}}%
+% D.G. modification begin - May 30, 1997
+% \gdef\theslidesubheading{#1}%
+% D.G. modification end
+ \def\@tempa{#2}%
+ \ifx\@tempa\@empty\else
+ {\edef\@currentlabel{\csname p@slidesubsection\endcsname
+% D.G. modification begin - Jul. 18, 1995
+% \theslidesubsection}\makeslideheading{#2}}%
+ \theslidesubsection}\makeslidesubheading{#2}}%
+% D.G. modification end
+ \fi
+% D.G. modification begin - May 30, 1997
+ \gdef\theslidesubheading{#1}%
+% D.G. modification end
+}
+
+
+% 3 - To correct a bug in the \slidecontents macro
+% (reported by Denis Roegel (LORIA) <Denis.Roegel@loria.fr> - Sep. 22, 1996)
+
+\long\def\@gobblethree #1#2#3{}
+
+\def\slide@contents{%
+ \def\l@slide##1##2##3{%
+% Modification Denis Roegel begin - Sep. 22, 1996
+% \slide@cline{\slidenumberline{$\bullet$}{##2}}{##3}}%
+% \let\l@subslide\@gobbletwo
+% Modification Denis Roegel end
+ \slide@cline{\slidenumberline{##1}{##2}}{##3}}%
+ \let\l@subslide\@gobblethree
+ \@startlos}
+
+
+% 4 - To solve incompatibility between the `graphicx' package and Seminar.
+% The \espfslidesize Seminar macro work only with the old version of
+% the `epsfig' package, so with \includegraphics the PostScript files are
+% always scaled without the possibility to leave them to there natural
+% size. And also these files are not correctly scaled when we switch
+% from normal to article mode under Seminar. So, we must redefined the
+% \epsfslidesize macro of Seminar and modify few internal macros of
+% `graphicx'.
+% (Note: I consider only the `graphicX' package, not the 'graphicS' one)
+% (reported by Karl Tombre (LORIA) <Karl.Tombre@loria.fr> and
+% Denis Roegel (LORIA) <Denis.Roegel@loria.fr> - Jan. 16, 1997)
+
+\def\GraphicsNotScaled{%
+\ifx\Gin@viewport\undefined
+\else % Graphicx package detected
+\def\Gin@i{%
+ \def\Gin@req@sizes{%
+% D.G. modification begin - May 16, 1997
+ \Gin@nat@height=\inverseslidesmag\Gin@nat@height
+ \Gin@nat@width=\inverseslidesmag\Gin@nat@width
+% D.G. modification end
+ \Gin@req@height\Gin@nat@height
+ \Gin@req@width\Gin@nat@width}%
+ \@ifnextchar[\Gin@ii{\Gin@ii[]}}
+% D.G. modification begin - Feb. 19, 1997
+%\define@key{Gin}{width}{\def\Gin@ewidth{#1}}
+%\define@key{Gin}{height}{\def\Gin@eheight{#1}}
+%\define@key{Gin}{totalheight}{%
+%\def\Gin@eresize{\totalheight}\def\Gin@eheight{#1}}
+\define@key{Gin}{width}{%
+\@tempdima=##1\@tempdima=\inverseslidesmag\@tempdima\def\Gin@ewidth{\@tempdima}}
+\define@key{Gin}{height}{%
+\@tempdima=##1\@tempdima=\inverseslidesmag\@tempdima\def\Gin@eheight{\@tempdima}}
+\define@key{Gin}{totalheight}{%
+\def\Gin@eresize{\totalheight}%
+\@tempdima=##1\@tempdima=\inverseslidesmag\@tempdima\def\Gin@eheight{\@tempdima}}
+% D.G. modification end
+\fi}
+
+\def\epsfslidesize{%
+\let\epsfsize\slide@epsfsize
+% D.G. modification begin - Feb. 19, 1997
+\GraphicsNotScaled}
+% D.G. modification end
+
+
+% 5 - To solve incompatibily between the LongTable package and Seminar
+% (reported by Bhaskar Manda (UIUC) <bhaskar@or4.me.uiuc.edu> - May 7, 1997)
+% - Problem in article format seen later
+% (reported by Axel Thimm <thimm@physik.fu-berlin.de> - June 5, 1997)
+
+% From seminar.cls
+\def\slide@outputLT{% (from \slide@output)
+ \@makeslide
+ \@testfalse
+ \ifnotesonly\else
+ \iflandscape
+ \ifnum\@landscapeonly>-1 \os@test\fi
+ \else
+ \ifnum\@landscapeonly<1 \os@test\fi
+ \fi
+ \fi
+ \if@test
+ \reset@slideoutput
+% D.G. modification begin - May 13, 1997
+% \@@makeslide
+ \@@makeslideLT
+% D.G. modification end
+ \process@slide
+ \fi
+ \refstepcounter{slide}}
+\def\@@makeslideLT{% (from \@@makeslide)
+ \overfullslide@warning
+ \setbox\@slidebox\hbox{%
+ \vfuzz=\slidefuzz\relax
+ \vbox to\slide@vsize{%
+% D.G. modification begin - May 13, 1997
+ \box\@outputbox
+% D.G. modification end
+ \ifcenterslides\vskip\z@ plus .0001fil \fi
+ \unvbox\@slidebox
+ \vskip\z@ plus .0001fil}%
+ \the\after@slidepage}%
+ \wd\@slidebox\textwidth}
+
+% From LongTable
+\def\LT@output{%
+ \ifnum\outputpenalty <-\@Mi
+ \ifnum\outputpenalty > -\LT@end@pen
+ \LT@err{floats and marginpars not allowed in a longtable}\@ehc
+ \else
+ \setbox\z@\vbox{\unvbox\@cclv}%
+ \ifdim \ht\LT@lastfoot>\ht\LT@foot
+ \dimen@\pagegoal
+ \advance\dimen@-\ht\LT@lastfoot
+ \ifdim\dimen@<\ht\z@
+ \setbox\@cclv\vbox{\unvbox\z@\copy\LT@foot\vss}%
+ \@makecol
+% D.G. modification begin - May 13, 1997
+% \@outputpage
+ \slide@outputLT
+% D.G. modification end
+ \setbox\z@\vbox{\box\LT@head}%
+ \fi
+ \fi
+ \global\@colroom\@colht
+ \global\vsize\@colht
+ \vbox
+ {\unvbox\z@\box\ifvoid\LT@lastfoot\LT@foot\else\LT@lastfoot\fi}%
+ \fi
+ \else
+ \setbox\@cclv\vbox{\unvbox\@cclv\copy\LT@foot\vss}%
+ \@makecol
+% D.G. modification begin - May 13, 1997
+% \@outputpage
+% \global\vsize\@colroom % Work for slides, but not for notes...
+ \slide@outputLT
+% D.G. modification end
+ \copy\LT@head
+ \fi}
+
+% We must adjust \textheight. Sometimes, you must increase it a little by
+% something like \addtolength{\textheight}{5mm}
+% But if you use slides like \begin{slide*}[15cm,10cm]
+% you must define locally \textheight=15cm
+\addtolength{\textheight}{-\headheight}
+
+
+% 6 - To allow automatic changes of language dependent labels,
+% for instance by loading the `french' package after Seminar
+% (suggested by Bernard Gaulle (IDRIS) <gaulle@idris.fr> - Nov. 20, 1997)
+% D.G. modification begin - Nov. 20, 1997
+% From seminar.cls
+\def\slidename{Slide}
+\def\slidelabel{\bf\slidename{} \theslide}
+% From slidesec.sty
+\def\listslidename{List of Slides}%
+\def\listofslides{\section*{\listslidename%
+\@mkboth{\expandafter\MakeUppercase\listslidename}%
+ {\expandafter\MakeUppercase\listslidename}}%
+ \def\l@slide##1##2##3{%
+ \slide@undottedcline{\slidenumberline{##3}{##2}}{}}%
+ \let\l@subslide\l@slide
+ \@startlos}
+% D.G. modification end
+
+
+% 7 - There were several problems when doing a global change of color
+% outside the "slide"environment (using the \color{ColorName} macro
+% of the `color' package) if this change was not done globally
+% (that is to say before the "\begin{document}") but inside the document,
+% for a part of the slides.
+% These problems can be seen specially for screen presentations,
+% when we want to use a dark background, so a light foreground color
+% for the text.
+% First, the header (defining for instance with the `fancyhdr' package)
+% changed of color one slide later and was restored one slide later too
+% if the change of the color was mas inside a group for some slides,
+% and second, the black color was forced by the footer.
+% We solve the first problem by usage of the same technique than the one
+% used by Seminar for global changes based on \special macros and made
+% before the "\begin{document}". We save the \specials in the
+% \saved@specials box and insert it at the beginning of the \@slidebox box
+% with the \insert@specials macro, as for the first slide.
+% And we solve the second problem by suppression of the command in the
+% hook which force the black color (defined in the `semcolor' package).
+% (reported by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - 1999-2002)
+
+% Built from \save@srlidespecials (for all slides excepted the first one)
+\def\save@slidespecials@ii{%
+ \begingroup
+ \output{%
+ \global\setbox\saved@specials=\box\@cclv
+ \global\wd\saved@specials=\z@
+ \global\dp\saved@specials=\z@
+ \global\ht\saved@specials=\z@}%
+ \hbox{}\penalty-\@M
+ \endgroup}%
+
+% The first slide is already managed, so we will define \save@slidespecials@i
+% started to the second one only...
+\def\save@slidespecials@i{}%
+
+\ifarticle\else
+ \def\insert@specials{%
+ \ifvoid\saved@specials\else
+ \setbox\@slidebox\hbox{\box\saved@specials\box\@slidebox}%
+ \fi
+% D.G. modification begin - Mar. 28, 2002
+% \global\let\insert@specials\relax}
+ \global\let\save@slidespecials@i\save@slidespecials@ii}
+% D.G. modification end
+\fi
+
+\addto@hook{\before@newslide}{\save@slidespecials@i}
+
+% D.G. modification begin - 1999
+% \addto@hook\after@slidepage{\pstVerb{0 setgray}}
+\after@slidepage={}
+% D.G. modification end
+
+
+% 7 - To vertically correctly center the footer, if defined
+% (this is mainly visible when using the `fancyhdr' package, and specially
+% when a footer rule line is defined)
+% (reported by Denis Girou (CNRS/IDRIS) - <Denis.Girou@idris.fr> - April 1998)
+
+% 8 - Add-on to allow "full screen" backgrounds.
+% Seminar originally support only partial backgrounds, which doesn't cover
+% the full page but only the place of the text. It cannot be easily
+% modified, as there are dependancies between the header and the text.
+% So, we choose to define new macros \SeminarNewSlideFrameBackground
+% and \SeminarSlideFrameBackground to manage the full screen backgrounds,
+% designed on the model of the \newslideframe and \slideframe ones.
+% (added by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - Jun. 30, 1999)
+
+% D.G. modification begin - Jun. 30, 1999
+\newbox\Seminar@SlideBoxBackground
+% D.G. modification end
+\ifarticle
+\else
+ \def\output@slide{%
+ \begingroup
+ \hoffset=-\inverseslidesmag in
+ \voffset=-\inverseslidesmag in
+ \setslidelength\@tempdima{%
+ \ifportrait\paperwidth\else\paperheight\fi}%
+ \setslidelength\@tempdimb{%
+ \ifportrait\paperheight\else\paperwidth\fi}%
+ \ifrotateheaders
+ \@ifrotateslide{%
+ \dimen@=\@tempdima
+ \@tempdima=\@tempdimb
+ \@tempdimb=\dimen@}
+ \fi
+ % \oddsidemargin, \evensidemargin, \headheight, \footheight
+ % used for scratch:
+ % Some page styles like to know \textwidth:
+ \setslidelength\headheight\slidetopmargin
+ \setslidelength\footheight\slidebottommargin
+ \ifautoslidemargins
+ \textwidth=\wd\@slidebox
+ \oddsidemargin=\@tempdima
+ \advance\oddsidemargin-\textwidth
+ \divide\oddsidemargin 2
+ \else
+ \setslidelength\oddsidemargin\slideleftmargin
+ \setslidelength\evensidemargin\sliderightmargin
+ \textwidth=\@tempdima
+ \advance\textwidth-\oddsidemargin
+ \advance\textwidth-\evensidemargin
+ \fi
+ \setbox\@slidebox=\hbox to \@tempdima{%
+% D.G. modification begin - Jun. 30, 1999
+ \box\Seminar@SlideBoxBackground
+% D.G. modification end
+ \kern\oddsidemargin
+ \vbox to\@tempdimb{%
+ \ifnum\fancyput@flag>-1
+ \hbox{\kern-\oddsidemargin\do@fancyput}%
+ \fi
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \vbox to\headheight{%
+ \vfill
+ \hbox{%
+ \slideheadfont\relax\strut
+ \hbox to\textwidth{\@oddhead}}%
+ \kern\z@}%
+ \vfill
+ \hbox to\textwidth{\hss\box\@slidebox\hss}%
+ \vfill
+ \vbox to\footheight{%
+% PM modification begin December 6, 2003
+% le test footervcenter active ou supprime le \vfill ajouté par DG
+ \iffootervcenter
+% D.G. modification begin - May 15, 1998
+ \vfill
+% D.G. modification end
+ \fi
+% PM modification end
+ \hbox{%
+ \slidefootfont\relax\strut
+ \hbox to\textwidth{\@oddfoot}}%
+ \vfill}}%
+ \hss}%
+ \ifrotateheaders\@ifrotateslide\rotate@slide\fi
+ \insert@specials
+% D.G. modification begin - Jun. 24, 1999
+ \let\protect\noexpand
+% D.G. modification end
+ \shipout\box\@slidebox
+ \endgroup
+ \let\firstmark\botmark}
+ \@ifundefined{fancyput@flag}{\def\fancyput@flag{-1}}{}
+\fi
+
+
+\def\finish@slide{%
+% D.G. modification begin - Jun. 30, 1999
+ \theSlideFrameBackground
+% D.G. modification end
+ \theslideframe
+ \add@slidelabel\slidelabel}
+
+% D.G. modification begin - Jun. 30, 1999
+% Built according \newslideframe, \slideframe, etc.
+
+\def\SeminarNewSlideFrameBackground#1{%
+ \@ifnextchar[{\@SeminarNewSlideFrameBackground{#1}}%
+ {\@SeminarNewSlideFrameBackground{#1}[]}}
+\def\@SeminarNewSlideFrameBackground#1[#2]{%
+ \@namedef{semsfbops@#1}{#2}%
+ \@namedef{semsfb@#1}##1}
+
+\def\SeminarSlideFrameBackground{\Seminar@SlideFrameBackground{Slide}}
+\def\Seminar@SlideFrameBackground#1{%
+ \@ifstar{\@testtrue\Seminar@@SlideFrameBackground{#1}}%
+ {\@testfalse\Seminar@@SlideFrameBackground{#1}}}
+\def\Seminar@@SlideFrameBackground#1{%
+ \@ifnextchar[{\Seminar@@@SlideFrameBackground{#1}}%
+ {\Seminar@@@SlideFrameBackground{#1}[]}}
+\def\Seminar@@@SlideFrameBackground#1[#2]#3{%
+ \def\@tempa{none}%
+ \def\@tempb{#3}%
+ \ifx\@tempa\@tempb
+ \@namedef{the#1FrameBackground}{\relax}%
+ \else
+ \ifx\@tempb\@empty
+ \@namedef{the#1FrameBackground}{}%
+ \else
+ \@ifundefined{semsfb@#3}%
+ {\@seminarerr{Background slide frame `#3' undefined}\@eha}%
+ {\if@test
+ \Seminar@@@@SlideFrameBackground{#1}[#2]{#3}%
+ \else
+ \@namedef{the#1FrameBackground}{%
+ \setbox\Seminar@SlideBoxBackground=\hbox{{%
+ \@nameuse{semsfbops@#3}#2%
+ \@nameuse{semsfb@#3}{\box\Seminar@SlideBoxBackground}}}}%
+ \fi}%
+ \fi
+ \fi}
+\def\Seminar@@@@SlideFrameBackground#1[#2]#3{%
+ \expandafter\let\expandafter\@tempa\csname the#1FrameBackground\endcsname
+ \edef\next{%
+ \noexpand\def\expandafter\noexpand\csname the#1FrameBackground\endcsname}%
+ \expandafter\next\expandafter{\@tempa
+ \setbox\Seminar@SlideBoxBackground=\hbox{{%
+ \@nameuse{semsfbops@#3}%
+ #2%
+ \@nameuse{semsfb@#3}{\box\Seminar@SlideBoxBackground}}}}}%
+
+\SeminarSlideFrameBackground{none}
+
+
+% 9 - For screen presentations, and specially animated graphics,
+% we need more than 10 overlays. We increase the limit to 676 (26^2).
+% (added by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - Dec. 5, 2001)
+
+\def\overlay#1{%
+% D.G. modification end
+ \ifoverlays\ifx\@overlay\relax\nooverlays@err\fi\fi
+ \ifslide
+ \@tempcnta=#1
+ \@testfalse
+% D.G. modification begin - Dec. 5, 2001
+% \ifnum\@tempcnta>-1 \ifnum\@tempcnta<10 \@testtrue\fi\fi
+ \ifnum\@tempcnta>-2 \ifnum\@tempcnta<677 \@testtrue\fi\fi
+% D.G. modification end
+ \if@test
+ \c@overlay=\@tempcnta
+ \ifnum\c@overlay=0
+ \advance\c@slide by -1
+ \refstepcounter{slide}%
+ \else
+ \advance\c@overlay by -1
+ \refstepcounter{overlay}%
+ \ifoverlays
+ \xdef\overlay@list{\overlay@list,\the\c@overlay}%
+ \fi
+ \fi
+ \ifoverlays
+ \@overlay{\the\c@overlay}%
+ \fi
+ \else
+% D.G. modification begin - Dec. 5, 2001
+% \@seminarerr{\string\overlay\space argument must be
+% an integer between 0 and 9}\@eha
+ \@seminarerr{\string\overlay\space argument must be
+ an integer between 0 and 676}\@eha
+% D.G. modification end
+ \fi
+ \else
+ \@seminarerr{\string\overlay\space can only be used
+ in slide environments}\@eha
+ \fi
+ \ignorespaces}
+
+\def\overlay@loop{%
+ \begingroup
+ \overlay@prep
+ \c@overlay=1
+% D.G. modification begin - Dec. 5, 2001
+% \@whilenum\c@overlay<10
+ \@whilenum\c@overlay<677
+% D.G. modification end
+ \do{%
+ \test@member{\the\c@overlay}{\overlay@list}%
+ \if@test
+ \make@overlay{\the\c@overlay}%
+ \finish@slide
+ \output@slide
+ \fi
+ \layer@loop{\the\c@overlay}%
+ \advance\c@overlay by 1}%
+ \endgroup}
+
+% D.G. modification begin - Dec. 5, 2001
+% \def\theoverlay{\theslide-\alph{overlay}}
+\def\theoverlay{{%
+\ifnum\c@overlay>26
+ \@tempcnta=\c@overlay
+ \advance\@tempcnta\m@ne
+ \divide\@tempcnta by 26
+ \multiply\@tempcnta by 26
+ \@tempcntb=\c@overlay
+ \advance\@tempcntb-\@tempcnta
+ \@tempcnta=\c@overlay
+ \advance\@tempcnta\m@ne
+ \divide\@tempcnta by 26
+ \theslide-\@alph{\@tempcnta}\@alph{\@tempcntb}%
+\else
+ \theslide-\alph{overlay}%
+\fi}}
+% D.G. modification end
+
+
+% 10 - Addition for management of cumulative and progressive overlays.
+% Due to PSTricks, Seminar had since the beginning the required
+% capabilities to manage overlays in various ways. The only thing
+% to do is to redefine the PSTricks \pst@initoverlay macro in the
+% relevant way.
+% (added by Denis Girou (CNRS/IDRIS) <Denis.Girou@idris.fr> - 1999-2001)
+
+% From `semcolor'
+\def\make@overlay#1{%
+ \setbox\@slidebox=\hbox{%
+ \pst@initoverlay{#1}%
+% D.G. modification begin - Dec. 5, 2001
+% \pst@Verb{(0) BOL}%
+ \pst@Verb{0 BOL}%
+% D.G. modification end
+ \copy\@@slidebox
+% D.G. modification begin - Dec. 5, 2001
+% \pst@Verb{(all) BOL}}}
+ \pst@Verb{-1 BOL}}}
+% D.G. modification end
+
+% D.G. modification begin - Feb. 15, 2002
+% We must redefine too the /BeginOL macro form pstricks.pro, as "all" is now -1
+% \def\pst@initoverlay#1{\pst@Verb{\tx@InitOL /TheOL (#1) def}}
+\def\pst@initoverlay#1{%
+\pst@Verb{%
+/BeginOL {%
+ dup -1 eq exch TheOL eq or
+ {IfVisible not
+ {Visible /IfVisible true def}
+ if}
+ {IfVisible
+ {Invisible /IfVisible false def}
+ if}
+ ifelse} def
+\tx@InitOL
+/TheOL #1 def}}
+% D.G. modification end
+
+\def\pst@overlay#1{%
+\edef\curr@overlay{#1}%
+% D.G. modification begin - Dec. 5, 2001
+% \pst@Verb{(#1) BOL}%
+\pst@Verb{#1 BOL}%
+% D.G. modification end
+\aftergroup\pst@endoverlay}
+\def\pst@endoverlay{%
+% D.G. modification begin - Dec. 5, 2001
+% \pst@Verb{(\curr@overlay) BOL}}
+\pst@Verb{\curr@overlay\space BOL}}
+% D.G. modification end
+
+% Cumulative overlays
+% °°°°°°°°°°°°°°°°°°°
+
+% Cumulative overlays, to force to print all preceding ones
+\def\SeminarCumulativeOverlays{%
+\def\pst@initoverlay##1{%
+\pst@Verb{%
+/BeginOL {%
+ dup -1 eq exch TheOL le or
+ {IfVisible not
+ {Visible /IfVisible true def}
+ if}
+ {IfVisible
+ {Invisible /IfVisible false def}
+ if}
+ ifelse} def
+\tx@InitOL
+/TheOL ##1 def}}}
+
+% Alternative method for same goal (needed when PSTricks nodes are used)
+\def\SeminarAltCumulativeOverlays{%
+\def\pst@initoverlay##1{%
+\pst@Verb{%
+/BeginOL {%
+ dup -1 eq exch TheOL le or
+ {IfVisible not
+ {Visible /IfVisible true def}
+ if}
+ {IfVisible
+ {Invisible /IfVisible false def}
+ if}
+ ifelse} def
+\tx@InitOL
+/Visible {initclip} def
+/Invisible {CP newpath OLUnit itransform moveto clip newpath moveto} def
+/TheOL ##1 def}}}
+
+% Progressive overlays
+% °°°°°°°°°°°°°°°°°°°°
+
+% Progressive overlays (at step i, only overlays 0 and i are shown)
+\def\SeminarProgressiveOverlays{%
+\def\pst@initoverlay##1{%
+\pst@Verb{%
+/BeginOL {%
+ /NumOL ED
+ NumOL -1 eq NumOL 0 eq NumOL TheOL eq or or
+ {IfVisible not
+ {Visible /IfVisible true def}
+ if}
+ {IfVisible
+ {Invisible /IfVisible false def}
+ if}
+ ifelse} def
+\tx@InitOL
+/TheOL ##1 def}}}
+
+% Alternative method for the same goal (needed when PSTricks nodes are used)
+\def\SeminarAltProgressiveOverlays{%
+\def\pst@initoverlay##1{%
+\pst@Verb{%
+/BeginOL {%
+ /NumOL ED
+ NumOL -1 eq NumOL 0 eq NumOL TheOL eq or or
+ {IfVisible not
+ {Visible /IfVisible true def}
+ if}
+ {IfVisible
+ {Invisible /IfVisible false def}
+ if}
+ ifelse} def
+\tx@InitOL
+/Visible {initclip} def
+/Invisible {CP newpath OLUnit itransform moveto clip newpath moveto} def
+/TheOL ##1 def}}}
+
+% Generation of the next overlay (minor add-on)
+% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
+% (it increment automatically the number of the current overlay)
+\newcommand{\SeminarNextOverlay}[1]{%
+\addtocounter{overlay}{1}%
+\begin{overlay}{\the\c@overlay}#1\end{overlay}}
+
+% To force all items in the various list environments to appear
+% in their own overlay (minor add-on)
+% °°°°°°°°°°°°°°°°°°°°
+\let\itemORIG\item
+
+\def\SeminarItemInOverlay{%
+\def\item{%
+\addtocounter{overlay}{1}%
+\overlay{\the\c@overlay}%
+\itemORIG}}
+
+\catcode`\@=\TheAtCode\relax
+\endinput
+%% END seminar.bg3
diff --git a/Master/texmf-dist/doc/latex/seminar/seminar.con b/Master/texmf-dist/doc/latex/seminar/seminar.con
new file mode 100644
index 00000000000..6d0357d24be
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/seminar.con
@@ -0,0 +1,946 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% seminar.con --- Customization of the Seminar document class.
+%% We take care to do this for easy adaptations in other
+%% institutions and contexts.
+%%
+%% Author : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou@idris.fr>
+%% Created the : 1993
+%% Last mod. by : hv
+%% Last mod. the : 2005-12-25
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\FileVersion{3.2}
+\def\FileDate{2005/12/25}
+\typeout{seminar.con file: example of customization of the Seminar
+ document class^^J%
+ (Version \FileVersion\space of <\FileDate> (D.G.))}
+
+% Packages used
+% -------------
+
+% General packages (all are on CTAN)
+\PassOptionsToPackage{pdffitwindow=true,colorlinks=true,pdfpagemode=UseNone,bookmarks,setpagesize=false}{hyperref}
+\usepackage{calc} % Simple computations with LaTeX variables
+\usepackage[hang]{caption} % Improved captions
+\usepackage{fancybox} % To have several backgrounds
+ % (must be loaded before `fancyvrb')
+\usepackage{fancyhdr} % Headers and footers definitions
+\usepackage{fancyvrb} % Fancy verbatim environments
+\usepackage{pstricks} % PSTricks with the standard color package
+ % (before `graphicx' for the \scalebox macro)
+\usepackage{graphicx} % Standard graphics package
+\usepackage{multido} % General loop macro
+\usepackage{pifont} % Ding symbols (mainly for lists)
+\usepackage{pst-node} % PSTricks nodes
+\usepackage{semcolor} % Seminar colored slides
+\usepackage{semhelv} % Seminar helvetica fonts
+\usepackage{semlayer} % Seminar overlays
+\usepackage{slidesec} % Seminar sections and list of slides
+\usepackage{pst-grad} % PSTricks gradient mode
+\usepackage{pst-fr3d} % PSTricks 3D framed boxes
+\usepackage{pst-slpe} % Improved PSTricks gradients
+\usepackage{thumbpdf} % Thumbnails for PDF versions
+\usepackage[breakwords]{truncate}% To truncate a string at a specified length
+\usepackage{url} % Convenient URL typesetting
+
+
+\edef\SeminarAtCode{\the\catcode`\@}
+\catcode`\@=11\relax
+
+\ifx\VTeXversion\@undefined
+ \input{seminar.bug} % Official bugs corrections
+ \input{seminar.bg2} % Unofficial bugs corrections
+ % (warning: you must load `longtable' before
+ % if you use it)
+\else
+ \input{/usr/local/vtex/texmf/vtex/config/seminar.con}% Adjust this path%%%%%%%%%%%%%%%%%%%
+ % As VTeX does not support the HSB color model, we make it identical
+ % to the RGB one. This will obviously produce strange color results,
+ % but this will allow to compile the sources using here our
+ % \PstFrameBoxThreeD macro.
+ \def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
+ \def\c@lor@@hsb#1,#2,#3\@@#4{%
+ % From the VTeX \c@lor@@rgb definition
+ \vtexdef@checkarg{#1}{1}{rgb}%
+ \vtexdef@fixedhex{#1}\vtexdef@hex@a
+ \vtexdef@checkarg{#2}{1}{rgb}%
+ \vtexdef@fixedhex{#2}\vtexdef@hex@b
+ \vtexdef@checkarg{#3}{1}{rgb}%
+ \vtexdef@fixedhex{#3}\vtexdef@hex@c
+ \edef#4{c"\vtexdef@hex@a\vtexdef@hex@b\vtexdef@hex@c}}%
+\fi
+
+% Compatibility patch between `pst-key' and the \RequirePackage macro
+% to avoid later a LaTeX warning about the version of `keyval'
+% From pst-key.tex
+\def\next[#1]{\catcode`\@=11
+% D.G. modification begin - Apr. 25, 2002
+% \expandafter\let\csname ver@keyval.sty\endcsname\empty
+ \expandafter\xdef\csname ver@keyval.sty\endcsname{#1}%
+% D.G. modification end
+ \wlog{keyval: #1}}\next
+ [1998/07/23 v1.11 key=value parser (DPC)]
+
+%\usepackage{hyperref} % Hyperlinks for PDF versions
+ % (to load after `slidesec', seminar.bg2, etc.)
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Definition of new colors
+% ------------------------
+
+\definecolor{Apricot} {cmyk}{0,0.32,0.52,0}
+\definecolor{Aquamarine} {cmyk}{0.82,0,0.30,0}
+\definecolor{CadetBlue} {cmyk}{0.62,0.57,0.23,0}
+\definecolor{DarkGray} {gray}{0.2}
+\definecolor{DarkGreen} {rgb}{0,0.5,0}
+\definecolor{ForestGreen} {cmyk}{0.91,0,0.88,0.12}
+\definecolor{Gold} {rgb}{1.,0.84,0.}
+\definecolor{Goldenrod} {cmyk}{0,0.10,0.84,0}
+\definecolor{IndianRed} {rgb}{0.8,0.36,0.36}
+\definecolor{Lavender} {cmyk}{0,0.48,0,0}
+\definecolor{LemonChiffon}{rgb}{1.,0.98,0.8}
+\definecolor{LightBlue} {rgb}{0.68,0.85,0.9}
+\definecolor{LightCyan} {rgb}{0.88,1.,1.}
+\definecolor{LightGray} {gray}{0.92}
+\definecolor{LightYellow} {rgb}{1.,1.,0.88}
+\definecolor{Melon} {cmyk}{0,0.46,0.50,0}
+\definecolor{NavyBlue} {cmyk}{0.94,0.54,0,0}
+\definecolor{Orange} {rgb}{1.,0.65,0.}
+\definecolor{PaleGreen} {rgb}{0.6,0.98,0.6}
+\definecolor{PaleGreenB} {rgb}{0.9,1,0.9}
+\definecolor{Peach} {cmyk}{0,0.50,0.70,0}
+\definecolor{PeachPuff} {rgb}{1.0,0.85,0.73}
+\definecolor{PineGreen} {cmyk}{0.92,0,0.59,0.25}
+\definecolor{Pink} {rgb}{1.,0.75,0.8}
+\definecolor{RoyalBlue} {cmyk}{1,0.50,0,0}
+\definecolor{SeaGreen} {cmyk}{0.69,0,0.50,0}
+\definecolor{Salmon} {cmyk}{0,0.53,0.38,0}
+\definecolor{Sepia} {cmyk}{0,0.83,1,0.70}
+\definecolor{SlateBlue} {rgb}{0.42,0.35,0.8}
+\definecolor{Thistle} {rgb}{0.85,0.75,0.85}
+\definecolor{Turquoise} {cmyk}{0.85,0,0.20,0}
+\definecolor{Violet} {cmyk}{0.79,0.88,0,0}
+\definecolor{YellowOrange}{cmyk}{0,0.42,1,0}
+
+% Definition of the (La)TeX string
+\newcommand{\AllTeX}{%
+{\textrm{(L\kern-.36em\raise.3ex\hbox{\textsc{%
+a}}\kern-.05em)T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}}
+
+% "dinglist" environment
+% Redefinition of it to be able to use colored symbols
+\renewenvironment{dinglist}[2][black]
+{\begin{list}{\ding{#2}}{}}{\end{list}}
+% Symbol definitions for these lists
+\newcommand{\DingListSymbolA}{43}
+\newcommand{\DingListSymbolB}{243}
+\newcommand{\DingListSymbolC}{224}
+\newcommand{\DingListSymbolD}{219}
+
+% Captions customizations
+\setlength{\abovecaptionskip}{1.5mm}
+
+% Centered paragraph title
+\newcommand{\CenteredParagraphTitle}[2][LemonChiffon]{%
+\centerline{\psshadowbox[fillstyle=solid,fillcolor=#1]{\large\HLe{#2}}}}
+
+% Paragraph title
+\newcommand{\ParagraphTitle}[2][LemonChiffon]{%
+\noindent\psshadowbox[fillstyle=solid,fillcolor=#1]{\large\HLe{#2}}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% `fancyvrb' customizations
+% -------------------------
+
+% Customized "Verbatim" environment
+\RecustomVerbatimEnvironment{Verbatim}{Verbatim}
+{commandchars=§µ¶,fontfamily=tt,frame=single,numbersep=2pt,framerule=0.15mm}
+
+% "OutputResults" environment to emphasize program outputs
+\DefineVerbatimEnvironment{OutputResults}{Verbatim}
+{commandchars=§µ¶,fontfamily=tt,frame=single,numbers=none,
+rulecolor=\color{blue},framerule=1mm}
+
+% Not inside the preceding environments themselves, to allow
+% local redefinitions
+\fvset{baselinestretch=0.9,fontsize=\small,numbers=left}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Seminar macros redefinitions
+% ----------------------------
+
+% We redefine the format of entries of the list of slides
+\def\listofslides{%
+ \hfuzz=7pt % To avoid the "Overfull \hbox" messages
+ \def\l@slide##1##2##3##4{%
+ \slide@dottedcline{##1 -- \hyperlink{##4}{##2}}%
+ {\slidenumberline{##3}}}%
+ \def\l@subslide##1##2##3##4{%
+ \slide@dottedcline{\hspace{2mm}##1 -- \hyperlink{##4}{##2}}%
+ {\slidenumberline{##3}}}%
+ \@startlos}
+
+\def\slide@dottedcline{\@dottedtocline{1}{1.5em}{2.3em}}
+
+\def\slide@subheading[#1]#2{%
+ \H@refstepcounter{slidesubsection}%
+ \addtocontents{los}{%
+% D.G. modification begin - Jan. 2, 2002
+% \protect\l@subslide{\the\c@slidesubsection}{\ignorespaces#1}%
+ \protect\l@subslide{\the\c@slidesection.\the\c@slidesubsection}%
+ {\ignorespaces#1}%
+% D.G. modification end
+ {\@SCTR}{slideheading.\theslidesubsection}%
+ }%
+ \def\Hy@tempa{#2}%
+ \ifx\Hy@tempa\@empty
+ \else
+ {%
+ \edef\@currentlabel{%
+ \csname p@slidesubsection\endcsname\theslidesubsection
+ }%
+ \makeslidesubheading{#2}%
+ }%
+ \fi
+ \gdef\theslidesubheading{#1}%
+ \ifHy@hypertexnames
+ \ifHy@naturalnames
+ \hyper@@anchor{slideheading.\theslidesubsection}{\relax}%
+ \Hy@writebookmark
+ {\theslidesubsection}%
+ {#1}%
+ {slideheading.\theslidesubsection}%
+ {2}%
+ {toc}%
+ \else
+ \hyper@@anchor{slideheading.\theHslidesubsection}{\relax}%
+ \Hy@writebookmark
+ {\theslidesubsection}%
+ {#1}%
+ {slideheading.\theHslidesubsection}%
+ {2}%
+ {toc}%
+ \fi
+ \else
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \hyper@@anchor{slideheading.\the\Hy@linkcounter}{\relax}%
+ \Hy@writebookmark
+ {\theslidesubsection}%
+ {#1}%
+ {slideheading.\the\Hy@linkcounter}%
+ {1}%
+ {toc}%
+ \fi
+}%
+
+% We will need, for demonstration purposes, to define sections and subsections
+% without putting them in the list of slides
+\def\SlideHeadingsNoListOfSlides{%
+\def\slide@heading[##1]##2{%
+ \refstepcounter{slidesection}%
+ \@addtoreset{slidesubsection}{slidesection}
+% D.G. modification begin - Feb. 22, 2002
+% \addtocontents{los}{\protect\l@slide
+% {\the\c@slidesection}{\ignorespaces##1}{\@SCTR}}%
+% D.G. modification end
+ \def\@tempa{##2}%
+ \ifx\@tempa\@empty\else
+ {\edef\@currentlabel{\csname p@slidesection\endcsname\theslidesection}%
+ \makeslideheading{##2}}%
+ \fi
+ \gdef\theslideheading{##1}%
+ \gdef\theslidesubheading{}}
+%
+\def\slide@subheading[##1]##2{%
+ \refstepcounter{slidesubsection}%
+% D.G. modification begin - Feb. 22, 2002
+% \addtocontents{los}{\protect\l@subslide
+% {\the\c@slidesubsection}{\ignorespaces##1}{\@SCTR}}%
+% D.G. modification end
+ \def\@tempa{##2}%
+ \ifx\@tempa\@empty\else
+ {\edef\@currentlabel{\csname p@slidesubsection\endcsname
+ \theslidesubsection}\makeslidesubheading{##2}}%
+ \fi
+ \gdef\theslidesubheading{##1}}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Seminar customizations
+% ----------------------
+
+% No default frame (really useful for old plastic slides only)
+\slideframe{none}
+
+% To center horizontally the headers and footers (see seminar.bug)
+\renewcommand{\headwidth}{\textwidth}
+
+% To adjust the frame length to the header and footer ones
+% \autoslidemarginstrue
+
+% Headers and footers, using the `fancyhdr' package
+
+\slidepagestyle{fancy}
+
+\newcommand{\SeminarHeader}[1]{\fancyhead[C]{\Large\textbf{\HLe{#1}}}}
+
+\newcommand{\SeminarStandardHeaderFooter}[4]{%
+\fancyhf{}%
+\fancyhead[R]{\theslide}
+\SeminarHeader{#1}
+\fancyfoot[L]{\raisebox{2.5mm}{\textbf{#2}}}
+\fancyfoot[R]{\raisebox{3mm}{\scriptsize#3 \@date}\\[-4.5mm]
+ {\tiny\textbf{#4}}}%
+% Change of the width of header and footer rules
+\def\headrulewidth{0.15mm}%
+\def\footrulewidth{0.15mm}%
+% Redefinition of the head line separator to have a double one
+\def\headrule{%
+\if@fancyplain\headrulewidth\plainheadrulewidth\fi
+\hrule\@height\headrulewidth\@width\headwidth \vskip 0.5mm
+\hrule\@height\headrulewidth\@width\headwidth \vskip -1mm}}
+
+% Customization of the headings and subheadings
+\renewcommand{\makeslideheading}[1]{%
+\CenteredParagraphTitle[red]{%
+\textcolor{white}{\textbf{\theslidesection{} -- #1}}}}
+\renewcommand{\makeslidesubheading}[1]{%
+\CenteredParagraphTitle{\theslidesubsection{} -- #1}}
+
+% For automatic definition of headers
+% ("Number - chapter : sub-chapter" or "Number - chapter" if no sub-chapter)
+% (we also suppress the first uppercase letter of the sub-chapter name,
+% if the optional "AsIs" keyword is not specified)
+\def\AsIs{AsIs}
+\def\SeminarStandardHeader@Separator{: }
+\newcommand{\SeminarStandardHeader}[1][]{%
+\SeminarHeader{%
+\ifx\theslidesubheading\empty
+ \theslidesection{} -- \theslideheading%
+\else
+ \edef\@tempa{#1}%
+ \ifx\@tempa\AsIs
+ \theslidesection{} -- \theslideheading{}\SeminarStandardHeader@Separator
+ \theslidesubheading%
+ \else
+ \theslidesection{} -- \theslideheading{}\SeminarStandardHeader@Separator %
+ \SeminarStandardHeader@i{\theslidesubheading}%
+ \fi
+\fi}}
+
+\def\SeminarStandardHeader@i#1{\expandafter\SeminarStandardHeader@ii#1\@nil}
+\def\SeminarStandardHeader@ii#1#2\@nil{\MakeLowercase{#1}#2}
+
+% Outline of the presentation
+\newcommand{\SeminarOutlinePresentation}[4]{%
+\ifx\SeminarColorVersion\AnswerYes
+ \begingroup
+ \SeminarHeader{#1}%
+ \def\SeminarOutlinePresentationBoolean{true}%
+ \renewcommand{\SeminarBackgroundCompositeColorFirst}{#2}%
+ \renewcommand{\SeminarBackgroundCompositeColorSecond}{#3}%
+ \SeminarSlideFrameBackground{SeminarBackgroundCompositeE}%
+ \pst@dimh=\slideleftmargin
+ \advance\pst@dimh by 35mm
+ \renewcommand{\slideleftmargin}{\the\pst@dimh}%
+ \setlength{\slidewidth}{289mm}%
+ \addtolength{\slidewidth}{-\slideleftmargin}%
+ \addtolength{\slidewidth}{-\sliderightmargin}%
+ \renewcommand{\slidestretch}{0}% To compact the list
+ \begin{slide}
+ \begingroup
+ \hypersetup{linkcolor=#4}%
+ \Slidecontents
+ \endgroup
+ \end{slide}
+ \endgroup
+\fi}
+
+% Backgrounds
+% -----------
+
+% Solid backgrounds
+% °°°°°°°°°°°°°°°°°
+
+% Default color
+\newcommand{\SeminarBackgroundSolidColor}{PeachPuff}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundSolid}{%
+\psframe[linestyle=none,fillstyle=solid,fillcolor=\SeminarBackgroundSolidColor]
+ (\SeminarPaperHeight,\SeminarPaperWidth)}
+
+% Gradient backgrounds
+% °°°°°°°°°°°°°°°°°°°°
+
+% Default begin color, end color, angle and middle point
+\newcommand{\SeminarBackgroundGradientColorBegin}{LightYellow}
+\newcommand{\SeminarBackgroundGradientColorEnd}{Gold}
+\newcommand{\SeminarBackgroundGradientAngle}{0}
+\newcommand{\SeminarBackgroundGradientMidPoint}{0}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundGradient}{%
+\psframe[linestyle=none,fillstyle=gradient,
+ gradangle=\SeminarBackgroundGradientAngle,
+ gradmidpoint=\SeminarBackgroundGradientMidPoint,
+ gradbegin=\SeminarBackgroundGradientColorBegin,
+ gradend=\SeminarBackgroundGradientColorEnd]
+ (\SeminarPaperHeight,\SeminarPaperWidth)}
+
+% Default slope style, steps and center
+\newcommand{\SeminarBackgroundGradientSlopeStyle}{radslope}
+\newcommand{\SeminarBackgroundGradientSlopeSteps}{300}
+\newcommand{\SeminarBackgroundGradientSlopeCenter}{0.5 0.5}
+\newcommand{\SeminarBackgroundGradientSlopeAngle}{0}
+\newcommand{\SeminarBackgroundGradientSlopeRadius}{0}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundGradientSlope}{%
+\psframe[linestyle=none,fillstyle=\SeminarBackgroundGradientSlopeStyle,
+ slopebegin=\SeminarBackgroundGradientColorBegin,
+ slopeend=\SeminarBackgroundGradientColorEnd,
+ slopesteps=\SeminarBackgroundGradientSlopeSteps,
+ slopecenter=\SeminarBackgroundGradientSlopeCenter,
+ slopeangle=\SeminarBackgroundGradientSlopeAngle,
+ sloperadius=\SeminarBackgroundGradientSlopeRadius]
+ (\SeminarPaperHeight,\SeminarPaperWidth)}
+
+% Composite backgrounds
+% °°°°°°°°°°°°°°°°°°°°°
+
+% Default colors
+\newcommand{\SeminarBackgroundCompositeColorFirst}{LightBlue}
+\newcommand{\SeminarBackgroundCompositeColorSecond}{NavyBlue}
+\newcommand{\SeminarBackgroundCompositeColorThird}{RoyalBlue}
+
+% Utility macros for the composite backgrounds
+
+\newcount\PstFractal@DeepRecursion
+
+% The recursion macro used (from David Carlisle)
+\def\Recursion #1{%
+#1\relax
+ \expandafter\@firstoftwo
+\else
+ \expandafter\@secondoftwo
+\fi}
+
+% General definition of a fractal
+\def\PstFractal#1{%
+\ifx\PstFractalBegin\undefined
+\else
+ \PstFractalBegin
+\fi
+\Recursion
+ {\ifnum#1>\@ne\relax}
+ {\PstFractal@DeepRecursion=#1%
+ \advance\PstFractal@DeepRecursion\m@ne
+ \PstFractalRepeat{\PstFractal@DeepRecursion}}
+ {\PstFractalDefinition}}
+
+\def\PstSpiralSquare#1{%
+\def\PstFractalDefinition{\psframe(1,1)}%
+\def\PstFractalBegin{\PstFractalDefinition}%
+\def\PstFractalRepeat##1{%
+ % sqrt(0.2^2 + (1-0.2)^2)=0.824621
+ % arcsin(0.2/0.824621)=14.036246
+ \rput{-14.036246}(0,0.2){\psset{unit=0.824621}\PstFractal{##1}}}%
+\pspicture(1,1)
+ \PstFractal{#1}
+\endpspicture}
+
+% Composite background A
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeA}{{%
+\psframe[linestyle=none,
+ fillstyle=solid,fillcolor=\SeminarBackgroundCompositeColorFirst]
+ (\SeminarPaperHeight,\SeminarPaperWidth)%
+\rput(4truemm,190truemm){%
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,gradangle=90,
+ gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst](8,0.2)}}
+\rput(293truemm,14truemm){%
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,gradangle=90,
+ gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond](-8,0.2)}}
+
+% Composite background B
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeB}{{%
+\psframe[linestyle=none,
+ fillstyle=solid,fillcolor=\SeminarBackgroundCompositeColorFirst]
+ (\SeminarPaperHeight,\SeminarPaperWidth)%
+\rput(4truemm,190truemm){%
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,gradangle=90,
+ gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst](-0.1,0)(5,0.2)
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,
+ gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst](-0.1,0.03)(0.1,-5)}}
+\rput(293truemm,14truemm){%
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,gradangle=90,
+ gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond](-5,0.2)(0.1,0)
+ \psframe[linestyle=none,fillstyle=gradient,gradmidpoint=1,
+ gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond](-0.1,5)(0.1,0)}}
+
+% Composite background C
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeC}{{%
+\psframe[linestyle=none,
+ fillstyle=solid,fillcolor=\SeminarBackgroundCompositeColorFirst]
+ (\SeminarPaperHeight,\SeminarPaperWidth)}
+\psset{xunit=1.3333,linecolor=\SeminarBackgroundCompositeColorSecond}%
+\@tempdima=\SeminarPaperHeight
+\divide\@tempdima\tw@
+\@tempdimb=\SeminarPaperWidth
+\divide\@tempdimb\tw@
+\multido{\nLength=5.5+-0.2,\iAngle=0+1}{30}{%
+ \rput{\iAngle}(\@tempdima,\@tempdimb){%
+ \psframe(-\nLength,-\nLength)(\nLength,\nLength)}}}
+
+% Composite background D
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeD}{{%
+\psset{linestyle=none,fillstyle=gradient,gradmidpoint=0}%
+\psframe[gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (\SeminarPaperHeight,\SeminarPaperWidth)
+\multips(4truemm,50truemm)(10truemm,30truemm){3}{%
+ \psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (5truemm,180truemm)}
+\@tempdima=\SeminarPaperHeight
+\advance\@tempdima -29truemm
+\multips(\@tempdima,0)(10truemm,-30truemm){3}{%
+ \psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (5truemm,160truemm)}}}
+
+% Composite background E
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeE}{{%
+\psset{linestyle=none,fillstyle=gradient,gradmidpoint=0.5}%
+\psframe[gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (\SeminarPaperHeight,\SeminarPaperWidth)
+\psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (5truemm,0)(35truemm,\SeminarPaperWidth)
+\multips(10truemm,10truemm)(0,20truemm){11}{%
+ \psframe[gradangle=90,
+ gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (20truemm,10truemm)}}}
+
+% Composite background F
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeF}{{%
+\psset{linestyle=none,fillstyle=gradient,gradmidpoint=1,gradangle=90}%
+\psframe[gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (\SeminarPaperHeight,\SeminarPaperWidth)
+\@tempdima=\SeminarPaperWidth
+\advance\@tempdima -15truemm
+\psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (0,\@tempdima)(\SeminarPaperHeight,\SeminarPaperWidth)
+\psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (0,0)(\SeminarPaperHeight,15truemm)}}
+
+% Composite background G
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeG}{{%
+\psset{linestyle=none,fillstyle=gradient,gradmidpoint=0,gradangle=30}%
+\psframe[gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (\SeminarPaperHeight,\SeminarPaperWidth)
+\@tempdima=\SeminarPaperWidth
+\advance\@tempdima -15truemm
+\psframe[gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst]
+ (15truemm,-15truemm)(\SeminarPaperHeight,\@tempdima)
+\psframe[gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (15truemm,0)(\SeminarPaperHeight,15truemm)}}
+
+% Composite background H
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeH}{{%
+\psset{linestyle=none,fillstyle=gradient,gradmidpoint=1}%
+\psframe[gradangle=0,gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (17mm,\SeminarPaperWidth)
+\@tempdima=\SeminarPaperWidth
+\advance\@tempdima -15mm
+\psframe[gradangle=90,gradbegin=\SeminarBackgroundCompositeColorFirst,
+ gradend=\SeminarBackgroundCompositeColorSecond]
+ (0,\@tempdima)(\SeminarPaperHeight,\SeminarPaperWidth)
+\advance\@tempdima 5mm
+\psframe*[linecolor=white,framearc=0.3](12mm,-20mm)(300mm,\@tempdima)
+\advance\@tempdima -5mm
+\psline[linestyle=solid,linewidth=0.3]{c-c}(4mm,\@tempdima)(90mm,\@tempdima)}}
+
+% Composite background I
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeI}{{%
+\psset{linestyle=none,unit=15,fillstyle=gradient,gradmidpoint=0,
+ gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst}%
+\@tempdima=\SeminarPaperHeight
+\divide\@tempdima\tw@
+\@tempdimb=\SeminarPaperWidth
+\divide\@tempdimb\tw@
+\rput(\@tempdima,\@tempdimb){\PstSpiralSquare{15}}}}
+
+% Composite background J
+
+% Sierpinski carpet
+\newcommand{\PstSierpinskiCarpet}[1]{{%
+\def\PstFractalDefinition{%
+ \psframe(1,1)
+ \psframe[fillstyle=solid,fillcolor=white](0.3333,0.3333)(0.6667,0.6667)}%
+\def\PstFractalBegin{\PstFractalDefinition}%
+\def\PstFractalRepeat##1{%
+ \rput(0,0){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0.3333,0){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0.6667,0){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0,0.3333){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0.6667,0.3333){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0,0.6667){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0.3333,0.6667){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}
+ \rput(0.6667,0.6667){\psset{xunit=0.3333,yunit=0.3333}\PstFractal{##1}}}%
+\psset{dimen=middle}%
+\pspicture(1,1)
+ \PstFractal{#1}
+\endpspicture}}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeJ}{{%
+\psset{linestyle=none,xunit=\SeminarPaperHeight,yunit=\SeminarPaperWidth,
+ fillstyle=solid,fillcolor=\SeminarBackgroundCompositeColorFirst}%
+\@tempdima=\SeminarPaperHeight
+\divide\@tempdima\tw@
+\@tempdimb=\SeminarPaperWidth
+\divide\@tempdimb\tw@
+\rput(\@tempdima,\@tempdimb){\PstSierpinskiCarpet{3}}}}
+
+% Composite background K
+
+% Sierpinski triangle
+\newcommand{\PstSierpinskiTriangle}[1]{{%
+\def\PstFractalDefinition{%
+ \pspolygon(1;0)(1;1)(1;2)
+ \rput{-2}(0,0){\pspolygon(0.5;0.5)(0.5;1.5)(0.5;2.5)}}%
+\def\PstFractalBegin{\PstFractalDefinition}%
+\def\PstFractalRepeat##1{%
+ \rput(0.5;0){\psset{unit=0.5}\PstFractal{##1}}
+ \rput(0.5;1){\psset{unit=0.5}\PstFractal{##1}}
+ \rput(0.5;2){\psset{unit=0.5}\PstFractal{##1}}}%
+\rput{90}(0,0){%
+ \SpecialCoor
+ \degrees[3]
+ \psset{dimen=middle}%
+ \PstFractal{#1}}}}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundCompositeK}{{%
+\NormalCoor % Needed when \SpecialCoor is currently active
+\psset{linestyle=none,unit=6.8,fillstyle=gradient,gradmidpoint=0,
+ gradbegin=\SeminarBackgroundCompositeColorSecond,
+ gradend=\SeminarBackgroundCompositeColorFirst}%
+\@tempdima=\SeminarPaperHeight
+\divide\@tempdima\tw@
+\@tempdimb=\SeminarPaperWidth
+\divide\@tempdimb\tw@
+\advance\@tempdimb -35truemm
+\rput(\@tempdima,\@tempdimb){\PstSierpinskiTriangle{4}}}}
+
+% Backgrounds with external images
+% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
+
+% With image file name
+\newcommand{\SeminarBackgroundImageAngle}{0}
+\newcommand{\SeminarBackgroundImageFile}{Undefined}
+
+\SeminarNewSlideFrameBackground{SeminarBackgroundImage}{{%
+\@tempdima=\SeminarPaperHeight
+\divide\@tempdima\tw@
+\@tempdimb=\SeminarPaperWidth
+\divide\@tempdimb\tw@
+\rput(\@tempdima,\@tempdimb){%
+ \includegraphics[angle=\SeminarBackgroundImageAngle,
+ width=\SeminarPaperHeight,height=\SeminarPaperWidth]
+ {\SeminarBackgroundImageFile}}}}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% To choice color or black and white version
+% ------------------------------------------
+
+% Note: we do not use booleans because we want to manage three states:
+% true, false and undefined. We must be able to force the value in front
+% of the file, before the \documentclass macro. If this is not done,
+% a question will be asked interactively (this can be falsely interactivity,
+% using for instance a command like "echo y | latex ..." on Unix systems)
+
+\def\AnswerYes{y}
+\def\SeminarColorQuestion{y}
+\def\SeminarPaperQuestion{n}
+
+% Definition of the styles to enrich text (color or black and white version)
+\def\SeminarColorVersion{\SeminarColorQuestion}
+ \usepackage{hcolor}
+
+% Screen or paper version?
+\def\SeminarPaperVersion]{\SeminarPaperQuestion}
+ \def\special@paper{297mm,210mm}% A4 format
+
+% A4 format
+\usepackage{sem-a4}
+\setlength{\slidewidth}{281mm}
+\setlength{\slideheight}{170mm}
+\def\SeminarPaperWidth{210truemm}
+\def\SeminarPaperHeight{297truemm}
+
+% Letter format
+%\setlength{\slidewidth}{261mm}
+%\setlength{\slideheight}{176mm}
+%\def\SeminarPaperWidth{215.9truemm}
+%\def\SeminarPaperHeight{279.4truemm}
+
+% General size parameters for all formats
+\renewcommand{\slidetopmargin}{15.5mm}
+\renewcommand{\slidebottommargin}{13mm}
+\renewcommand{\slideleftmargin}{4mm}
+\renewcommand{\sliderightmargin}{4mm}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% Some general PSTricks useful add-ons
+% ------------------------------------
+
+% Initialization of PSTricks parameters
+% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
+
+% As \psset, but, opposite to it, this version allow the following syntax:
+% \def\MyPstFrame#1{{%
+% \def\Temp{#1}%
+% \ifx\Temp\empty
+% \else
+% \PstSet{#1}
+% \fi
+% \begin{pspicture}(2,2)
+% \psframe(2,2)
+% \end{pspicture}}}
+%
+% \def\PstParams{linecolor=red,fillstyle=solid,fillcolor=yellow}
+% \MyPstFrame{\PstParams}
+%
+% The syntax \MyPstFrame{linecolor=cyan,fillstyle=vlines} still work,
+% as with \psset
+
+\def\PstSet#1{\PstSet@i#1,\@nil\ignorespaces}
+
+\def\PstSet@i#1,{%
+\expandafter\PstSet@ii#1,\@nil
+\@ifnextchar\@nil{\@gobble}{\PstSet@i}}
+
+\def\PstSet@ii#1,{%
+\PstSet@iii#1=\@nil
+\@ifnextchar\@nil{\@gobble}{\PstSet@ii}}
+
+\def\PstSet@iii#1=#2\@nil{\psset{#1=#2}}
+
+% \DoPerChar macro from Juergen Schlegelmilch
+% °°°°°°°°°°°°°°°°
+% (<schlegel@Informatik.Uni-Rostock.de> - posted on c.t.t. Jan. 27, 1998)
+\def\DoPerChar#1#2#3\@nil{%
+#1#2%
+\edef\@tempa{#3}%
+\ifx\@tempa\@empty
+\else
+ \DoPerChar#1#3\@nil
+\fi}
+
+% To write a text vertically (but with letters horizontal)
+% °°°°°°°°°°°°°°°°°°°°°°°°°°
+\def\TextTurn#1{\DoPerChar\TextTurn@CharacterTurn#1\@nil}
+\def\TextTurn@CharacterTurn#1{\rotateleft{\,\hbox to 0mm{\hss#1\hss}}\,}
+
+% To print a string in a framebox of a specified length
+% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
+\def\PstTab{\@ifnextchar[{\PstTab@i}{\PstTab@i[]}}
+\def\PstTab@i[#1]#2#3{{%
+\psset{#1}%
+\psframebox[framesep=0.06,,framearc=0.8,
+ shadow=true,shadowangle=45,shadowsize=0.1]{%
+ \rule[-0.5mm]{0mm}{2.5mm}%
+ \truncate[.]{#3}{\hfil#2\hfil}}}}
+
+% To print tabs for the sections
+% °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
+\def\SeminarTabs#1#2#3#4{%
+% #1 = length for each tab, #2 = font specifications (if changed),
+% #3 = color of the current section,
+% #4 = color for all sections except the current one
+%
+% Temporary redefinition of the OvalFrame PostScript macro
+% for better look for a tab
+\pst@Verb{%
+/OvalFrame {
+ x1 x2 eq y1 y2 eq or
+ { pop pop x1 y1 moveto x2 y2 L }
+ { y1 y2 sub abs
+ x1 x2 sub abs
+ 2 copy gt { exch pop } { pop } ifelse
+ 2 div exch
+ { dup 3 1 roll mul exch } if
+ 2 copy lt { pop } { exch pop } ifelse
+ /b ED
+ x1 y1 y2 add 2 div moveto
+ x1 y2 x2 y2 b arcto
+ x2 y2 x2 y1 b arcto
+% D.G. modification begin - Mar. 20, 2002
+% x2 y1 x1 y1 b arcto
+% x1 y1 x1 y2 b arcto
+ x2 y1 x1 y1 0 arcto
+ x1 y1 x1 y2 0 arcto
+% D.G. modification end
+ 16 { pop } repeat
+ closepath }
+ ifelse } def}%
+%
+\def\l@slide##1##2##3##4{\l@slide@i##1##2\@nil##4\@@nil}%
+\def\l@slide@i##1\ignorespaces ##2\@nil##3\@@nil{%
+\pst@@killglue% To eat the end of line after the \l@slide macro
+\ifnum##1=\c@slidesection
+ \def\SeminarTabsCurrentSectionColor{#3}%
+\else
+ \def\SeminarTabsCurrentSectionColor{#4}%
+\fi
+#2% To be able to change the font size, serie, etc.
+\hyperlink{##3}{%
+ \PstTab[fillstyle=solid,fillcolor=\SeminarTabsCurrentSectionColor]
+ {##2}{#1}}}%
+\let\l@subslide\@gobblefour
+\@startlos}
+
+% General annotation macro
+% °°°°°°°°°°°°°°°°°°°°°°°°
+
+% To add annotations on a page (slide), specially when using overlays
+% This is specially useful to add comments on a set of equations
+% or on program lines on a listing
+
+\newdimen\PstAnnotation@BoxBaselineskipDim
+\define@key[psset]{}{AnnotationBoxBaselineskip}{%
+\pssetlength{\PstAnnotation@BoxBaselineskipDim}{#1}}
+
+\define@key[psset]{}{AnnotationBoxCommand}{%
+\def\PstAnnotation@BoxCommand{#1}}
+
+\define@key[psset]{}{AnnotationBoxJustification}{%
+\def\PstAnnotation@BoxJustification{#1}}
+
+\newdimen\PstAnnotation@BoxLengthDim
+\define@key[psset]{}{AnnotationBoxLength}{%
+\pssetlength{\PstAnnotation@BoxLengthDim}{#1}}
+
+\define@key[psset]{}{AnnotationBoxStyle}{%
+\def\PstAnnotation@BoxStyle{#1}}
+
+\define@key[psset]{}{AnnotationConnectionCommand}{%
+\def\PstAnnotation@ConnectionCommand{#1}}
+
+\define@key[psset]{}{AnnotationConnectionBasicStyle}{%
+\def\PstAnnotation@ConnectionBasicStyle{#1}}
+
+\define@key[psset]{}{AnnotationConnectionSpecialStyle}{%
+\def\PstAnnotation@ConnectionSpecialStyle{#1}}
+
+\define@key[psset]{}{AnnotationReferencePoint}{%
+\def\PstAnnotation@ReferencePoint{#1}}
+
+\define@key[psset]{}{AnnotationTextStyle}{%
+\def\PstAnnotation@TextStyle{#1}}
+
+\define@key[psset]{}{AnnotationPositionX}{%
+\def\PstAnnotation@PositionX{#1}}
+
+\define@key[psset]{}{AnnotationPositionY}{%
+\def\PstAnnotation@PositionY{#1}}
+
+% Default values
+\psset{%
+ AnnotationBoxBaselineskip=0.5mm,
+ AnnotationBoxCommand=\psframebox,
+ AnnotationBoxLength=4cm,
+ AnnotationBoxJustification=r,
+ AnnotationBoxStyle={linewidth=0.015,framesep=0.05},
+ AnnotationConnectionCommand=\ncline,
+ AnnotationConnectionBasicStyle={arrows=->,nodesep=0.1},
+ AnnotationConnectionSpecialStyle=,
+ AnnotationReferencePoint=l,
+ AnnotationTextStyle=\scriptsize,
+ AnnotationPositionX=13.45,
+ AnnotationPositionY=0}
+
+\SpecialCoor
+
+\def\PstAnnotation{\@ifnextchar[{\PstAnnotation@i}{\PstAnnotation@i[]}}
+\def\PstAnnotation@i[#1]#2#3{{%
+\psset{#1}%
+\PstAnnotation@TextStyle
+\rput(\PstAnnotation@PositionX,0 | #2){%
+ \rput[\PstAnnotation@BoxJustification](0,\PstAnnotation@PositionY){%
+ \rnode[\PstAnnotation@ReferencePoint]{AnnotationNodeTemp}{%
+ \ifx\PstAnnotation@BoxStyle\@empty
+ \else
+ \PstSet{\PstAnnotation@BoxStyle}
+ \fi
+ \PstAnnotation@BoxCommand{%
+ \normalbaselineskip=\PstAnnotation@BoxBaselineskipDim
+ \begin{minipage}{\PstAnnotation@BoxLengthDim}
+ #3
+ \end{minipage}}}}}
+\ifx\PstAnnotation@ConnectionBasicStyle\@empty
+\else
+ \PstSet{\PstAnnotation@ConnectionBasicStyle}
+\fi
+\ifx\PstAnnotation@ConnectionSpecialStyle\@empty
+\else
+ \PstSet{\PstAnnotation@ConnectionSpecialStyle}
+\fi
+\PstAnnotation@ConnectionCommand{AnnotationNodeTemp}{#2}}}
+
+% To put a right brace to point an annotation
+\newcommand{\RightBrace}[1]{{% #1 = number of lines to put the brace around
+\@tempdima=#1 pt
+\advance\@tempdima\m@ne pt
+\divide\@tempdima\tw@
+\ifx\BaseLineStretchBrace\@undefined
+ \@tempdimb=\normalbaselineskip
+\else
+ \@tempdimb=\BaseLineStretchBrace\normalbaselineskip
+\fi
+\@tempdimc=\strip@pt\@tempdima\@tempdimb
+\advance\@tempdimc-0.1\@tempdimb
+%
+\setbox\z@\hbox{A}%
+\ifdim\@tempdimc<0.5\ht\z@
+ \advance\@tempdimc0.75\ht\z@
+\fi
+%
+$\left \}\rule[-\@tempdimc]{0mm}{\@tempdimc}\right.$}}
+
+% Macros useful when using overlays with the `listings' package
+% -------------------------------------------------------------
+
+\def\pnodeLstDown#1{%
+\@tempdima=0.5\normalbaselineskip
+\setbox\z@\hbox{A}%
+\ifdim\@tempdima<0.5\ht\z@
+ \advance\@tempdima0.25\ht\z@
+\else
+ \advance\@tempdima-0.5\ht\z@
+\fi
+\pnode(0,-\@tempdima){#1}}
+\def\pnodeLstUp#1{\setbox\z@\hbox{A}\pnode(0,0.5\ht\z@){#1}}
+\def\rnodeLst#1#2#3{\rnode[#1]{#2}{#3}}
+
+\catcode`\@=\SeminarAtCode\relax
+\endinput
+% End seminar.con
diff --git a/Master/texmf-dist/doc/latex/seminar/seminar.doc b/Master/texmf-dist/doc/latex/seminar/seminar.doc
new file mode 100644
index 00000000000..5813afc3b84
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/seminar.doc
@@ -0,0 +1,2048 @@
+% BEGIN seminar.doc
+%%
+\def\fileversion{1.0}
+\def\filedate{93/04/01}
+%%
+%% LaTeX document style `seminar', for use with LaTeX v2.09.
+%% This is a style for typesetting notes and slides.
+%%
+%% 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 is `seminar.doc', the documented code for `seminar.sty'.
+% You can copy this to `seminar.sty' and use it as is.
+% You can also create a stripped input file `seminar.sty' using sem-make.tex.
+% You can print the documented code using sem-code.tex.
+% sem-make.tex and sem-code.tex are distributed with seminar.sty.
+% **************************************************************************
+%
+% \EndDocPreamble
+%
+% \CheckSum{3062}
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+%
+% \section{Overview}
+%
+% In principle, a slides style is a simple matter; just a question of
+% resetting the magnification and changing a few page parameters. However,
+% allowing notes and slides to be put in the same file but treated
+% differently, and allowing everything to be printed in various formats,
+% complicates things a bit.
+%
+% The code starts by checking that the file is not loaded, and announcing the
+% file on the terminal.
+% \begin{macrocode}
+\@ifundefined{@seminarerr}{}{\endinput}
+\typeout{%
+ Document Style: `seminar' v\fileversion \space <\filedate> (tvz)}
+% \end{macrocode}
+%
+%
+% \section{Useful hacks}
+%
+% \begin{macro}{\test@member}
+% The second argument to "\test@member" is a comma-separated list.
+% "\test@member" checks whether the first argument is a member of this list
+% (after expanding both the list and the first argument), setting "\if@test"
+% appropriately.
+% \begin{macrocode}
+\def\test@member#1#2{%
+ \edef\@tempg{,#2,#1,}%
+ \edef\@temph{####1,#1,}%
+ \expandafter\def\expandafter\@temph\@temph##2\@nil{%
+ \def\@tempg{##2}%
+ \ifx\@tempg\@empty\@testfalse\else\@testtrue\fi}%
+ \expandafter\@temph\@tempg\@nil}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\addto@hook}
+% The first argument of "\addto@hook" is a token register. "\addto@hook" adds
+% its second argument to this register. This is a standard macro in the Mainz
+% distribution,.
+% \begin{macrocode}
+\def\addto@hook#1#2{#1\expandafter{\the#1#2}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\reset@font}
+% "\reset@font" is part of later releases of \LaTeX.
+% \begin{macrocode}
+\@ifundefined{reset@font}{\def\reset@font{\normalsize\rm}}{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@seminarerr}
+% "\@seminarerr" is analogous to "\@latexerr".
+% \begin{macrocode}
+\def\@seminarerr#1#2{%
+ \edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
+ \typeout{^^JSeminar.sty error.\space\space\space
+ Type \space H <return> \space for immediate help.^^J}%
+ \errmessage{#1^^J}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\notslide@err}
+% \begin{macrocode}
+\def\notslide@err#1{Cannot use \string#1 in slide environments}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\new@slidebox}
+% Since "\newbox" is "\outer".
+% \begin{macrocode}
+\def\new@slidebox{\alloc@4\box\chardef\insc@unt}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidewidth,\slideheight}
+% \begin{macrocode}
+\newdimen\slidewidth \slidewidth 8.5in
+\newdimen\slideheight \slideheight 6.3in
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\paperwidth,\paperheight}
+% "\paperwidth" and "\paperheight" are used by "sem-page.sty" to set the page
+% parameters. "\twoup" also uses the values.
+% \begin{macrocode}
+\@ifundefined{paperwidth}{\def\paperwidth{8.5in}}{}
+\@ifundefined{paperheight}{\def\paperheight{11in}}{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\addto@preamblecmds}
+% Various commands used in this style are added to "\@preamblecmds". This
+% macros makes it easier to do this as we go along. Argument is a list of
+% commands separated by "\do".
+% \begin{macrocode}
+\def\addto@preamblecmds#1{%
+ \begingroup
+ \def\do{\noexpand\do\noexpand}%
+ \xdef\@preamblecmds{\@preamblecmds\do#1}%
+ \endgroup}
+\addto@preamblecmds{\addto@preamblecmds\do\@preamblecmds}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Auxilary files and style options}
+%
+% The formats and selections are specified using style options, but these do
+% not correspond to independent files.
+% It is possible to set the flags before inputting "seminar.sty".
+% \begin{macrocode}
+\def\sem@temp#1{\@ifundefined{if#1}%
+ {\def\@tempa{\csname newif\endcsname}
+ \expandafter\@tempa\csname if#1\endcsname}{}}
+\sem@temp{article}{}
+\sem@temp{slidesonly}{}
+\sem@temp{notes}{}
+\sem@temp{notesonly}{}
+\sem@temp{notesonlystar}{}
+\sem@temp{portrait}{}
+\def\ds@article{\articletrue}
+\def\ds@slidesonly{\slidesonlytrue\notesfalse\notesonlyfalse}
+\def\ds@notes{\notestrue\slidesonlyfalse\notesonlyfalse}
+\def\ds@notesonly{\notesonlytrue\slidesonlyfalse\notesfalse}
+\@namedef{ds@notesonly*}{\ds@notesonly\notesonlystartrue}
+\def\ds@portrait{\portraittrue}
+\@namedef{ds@a4}{%
+ \def\paperwidth{210mm}
+ \def\paperheight{297mm}
+ \slidewidth 222mm
+ \slideheight 152mm\relax}
+% \end{macrocode}
+% This style is based in part on the \LaTeX{} "article" style, which we now
+% input. "article.sty" takes care of executing the options.
+% \begin{macrocode}
+\@@input article.sty
+\ifnotesonly\else\notesonlystarfalse\fi
+\@@input sem-page.sty
+% \end{macrocode}
+%
+% \section{Document hooks}
+%
+% \begin{macro}{\document}
+% "\document" is redefined to incorporate hooks, in the following order:
+% \begin{LVerbatim}
+% \endgroup
+% \the\before@document
+% \begingroup
+% \document
+% \the\after@document
+% \xcomment@hook
+% \end{LVerbatim}
+% "\before@document" and "\after@document" are token registers that can be
+% added to using "\addto@hook". These will be used for things like invoking
+% "\landscape". "\xcomment@hook" is a command sequence that will be used to
+% invoke the "xcomment" macros for commenting out the notes in the
+% "slidesonly" selection.
+%
+% Messing with the definition of "\document" creates potential conflicts with
+% other optional style files that do the same. However, we add these commands
+% in a very friendly way: (i) it shouldn't cause problems even if "\document"
+% does not have its standard definition, and (ii) if some other macros
+% subsequently change the definition of "\document" in the same way,
+% "seminar.sty" should not break. Styles designed specifically for use with
+% "seminar.sty" should use "\before@document" and "\after@document" to add
+% their own modifications to the "\document" command. \codelabel{document}
+%
+% In the code below, "\before@document" and "\after@document" are used as
+% temporary token registers during the modification of "\document".
+% \begin{macrocode}
+\newtoks\before@document
+\newtoks\after@document
+\let\xcomment@hook\relax
+\before@document{\endgroup\the\before@document\begingroup}
+\after@document{\the\after@document\xcomment@hook}
+\expandafter\@temptokena\expandafter{\document}
+\edef\document{\the\before@document\the\@temptokena\the\after@document}
+\before@document{}
+\after@document{}
+% \end{macrocode}
+% \codelabel*{document*}
+% \end{macro}
+%
+% \begin{macro}{\enddocument}
+% Now we do something similar with "\end@document", adding the token register
+% "\before@enddocument" to the beginning of the definition of "\enddocument".
+% This might be used, for example, to warn the user to print in landscape
+% mode.
+% \begin{macrocode}
+\newtoks\before@enddocument
+\before@enddocument{\the\before@enddocument}
+\expandafter\@temptokena\expandafter{\enddocument}
+\edef\enddocument{\the\before@enddocument\the\@temptokena}
+\before@enddocument{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\landscape}
+% "\printlandscape" is invoked at the beginning of landscape documents. It is
+% defined here to warn the user to print in landscape mode.
+% \begin{macrocode}
+\newif\ifprintlandscape
+\ifportrait
+ \ifarticle\printlandscapetrue\fi
+\else
+ \ifarticle\else\printlandscapetrue\fi
+\fi
+\addto@hook\before@document{\ifprintlandscape\printlandscape\fi}
+\addto@preamblecmds{\printlandscape}
+\def\printlandscape{\addto@hook\before@enddocument{%
+ \typeout{^^J%
+ *******************************************************^^J%
+ ***** !! PRINT THIS DOCUMENT IN LANDSCAPE MODE !! *****^^J%
+ *******************************************************}}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Slide-making macros}
+%
+% \begin{macro}{\slide,\endslide,\slide*,\endslide*}
+% Let's start from the outside and move in.
+% \begin{macrocode}
+\def\slide{%
+ \NestedSlide@Error{slide}%
+ \landscapetrue
+ \@ifnextchar[{\begin@slide}{\begin@slide[\slidewidth,\slideheight]}}
+\def\endslide{\end@slide}
+\@namedef{slide*}{%
+ \NestedSlide@Error{slide*}%
+ \landscapefalse
+ \@ifnextchar[{\begin@slide}{\begin@slide[\slidewidth,\slideheight]}}%
+\@namedef{endslide*}{\end@slide}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\theslide}
+% "slide" is the counter for slides. "slide@count" keeps track of the number
+% of slides in the current slide environment.
+% \begin{macrocode}
+\newcounter{slide}
+\def\theslide{\arabic{slide}}
+\newcount\slide@count
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@slidebox}
+% Each slide is stored in the box "\@slidebox". The current page of notes
+% might be saved in "\not@slidebox".
+% \begin{macrocode}
+\newbox\@slidebox
+\newbox\not@slidebox
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ifslide,\iflandscape}
+% "\ifslide" is true in any slide environment. This allows commands to be
+% active only in slide environments (important for overlays, for example).
+% "\iflandscape" is true for landscape slides, and false for portrait slides.
+% This allows embellishments to customize their behavior, although it is not
+% actually used by any of the macros defined in "seminar.sty".
+% \begin{macrocode}
+\newif\ifslide
+\newif\iflandscape
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@landscapeonly,\landscapeonly,\portraitonly}
+% "\@landscapeonly" is defined to be "1" if only landscape slides should be
+% printed, "-1" if only portrait slides should be printed, and "0" if both
+% orientations should be printed.
+% \begin{macrocode}
+\def\@landscapeonly{0}
+\def\landscapeonly{\def\@landscapeonly{1}}
+\def\portraitonly{\def\@landscapeonly{-1}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\NestedSlide@Error}
+% We will check for nested slide environments, and attempt to recover the best
+% we can. Otherwise, forgetting the end of a slide environment could cause
+% \TeX{} to procede to the end of the document without generating any input,
+% and then give unlightening error messages.
+% \begin{macrocode}
+\def\NestedSlide@Error#1{%
+ \ifslide
+ \endgroup
+ \@seminarerr{Nested slide environments. Perhaps missing
+ \string\end{\@currenvir}. May be fatal}\@ehd
+ \expandafter\end\expandafter{\@currenvir}%
+ \ifslide\expandafter\end\expandafter{\@currenvir}\fi
+ \begingroup
+ \def\@currenvir{#1}%
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\begin@slide}
+% This is the meat of "\slide" and "\slide*".
+% \begin{macrocode}
+\def\begin@slide[#1,#2]{%
+ \slide@clearpage
+ \setlength\slidewidth{#1}%
+ \setlength\slideheight{#2}%
+% \end{macrocode}
+% The current contents of the page is saved in "\not@slidebox", and then the
+% output routine is set to "\slide@output".
+% \begin{macrocode}
+ \begingroup
+ \ifarticle
+ \output{%
+ \advance\count@ 1
+ \global\setbox\not@slidebox\box\@cclv}%
+ \par\@@par\penalty-\@M
+ \fi
+ \output{\slide@output}%
+% \end{macrocode}
+% The flag "\ifslide" is set, and the counter "\slide@count", which keeps
+% track of the number of slides in the current slide environment, is
+% initialized.
+% \begin{macrocode}
+ \slidetrue
+ \ifarticle\global\slide@count=\z@\fi
+ \refstepcounter{slide}%
+ \ifnotesonlystar\xdef\first@slidemarker{\the\c@slide}\fi
+ \def\do##1{\setcounter{##1}\z@}\slide@reset
+% \end{macrocode}
+% Save current "\textheight" and "\textwidth", to be used later by the output
+% routine in the "slides" format.
+% \begin{macrocode}
+ \ifarticle\else
+ \edef\page@textheight{\number\textheight sp}%
+ \edef\page@textwidth{\number\textwidth sp}%
+ \fi
+ \set@slidesize
+% \end{macrocode}
+% Now we finish customizing the slide environment.
+% \begin{macrocode}
+ \slidebox@restore
+ \the\slide@hook
+ \the\before@newslide
+ \everyslide}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\end@slide}
+% This is "\endslide" and "\endslide*". We first make sure that there are
+% balanced groups so that the normal output routine is restored.
+% \begin{macrocode}
+\def\end@slide{%
+ \par\penalty-\@M
+ \xdef\@tempg{\@currenvir}%
+ \endgroup
+ \ifslide
+ \@seminarerr{Perhaps missing `\string\end{\@tempg}',
+ \iffalse{\fi`\string}' or `\string\endgroup'}\@ehd
+ \def\next{\endgroup\ifslide\expandafter\next\fi}%
+ \next
+ \fi
+% \end{macrocode}
+% If there is anything on the page, it was inserted with "\aftergroup" and
+% should be discarded. (This can happen with color commands, for example.)
+% \begin{macrocode}
+ \begingroup
+ \output{\setbox\@tempboxa\box\@cclv}%
+ \@@par\penalty-\@M
+ \endgroup
+% \end{macrocode}
+% The slide counter was stepped when the last slide was output. Now we need to
+% set it back one. With the "article" format, we now have to output all the
+% acculumulated slides.
+% \begin{macrocode}
+ \global\advance\c@slide-1
+ \def\do##1{\setcounter{##1}{\@nameuse{saved@c@##1}}}%
+ \slide@reset
+ \ifarticle\outputloop@savedslides\fi
+ \the\after@slide}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slideclearpagetrue,\slideclearpagefalse,\slide@clearpage}
+% \begin{macrocode}
+\let\slideclearpagetrue\relax
+\let\slideclearpagefalse\relax
+\ifarticle
+ \def\slide@clearpage{\par\penalty\z@}
+ \ifnotes
+ \def\slideclearpagetrue{\def\slide@clearpage{\clearpage}}
+ \def\slideclearpagefalse{\def\slide@clearpage{\par\penalty\z@}}
+ \else
+ \ifnotesonly
+ \def\slideclearpagetrue{\def\slide@clearpage{\clearpage}}
+ \def\slideclearpagefalse{\def\slide@clearpage{\par\penalty\z@}}
+ \fi
+ \fi
+\else
+ \def\slide@clearpage{\clearpage}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@hook,\everyslide,\after@slide}
+% "\slide@hook" and "\everyslide" are hooks for modifying the slide
+% environments. "\slide@hook" is a token register. Commands can be added to it
+% without destroying previously added commands using the "\addto@hook"
+% command.
+% "\everyslide" is an ordinary command sequence to be used by users.
+% "\after@slide" can be used to initialize things for notes.
+% \begin{macrocode}
+\newtoks\slide@hook
+\def\everyslide{}
+\newtoks\after@slide
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{$\setminus$slidebox@restore\label{everyslide}}
+%
+% \begin{macro}{\slidebox@restore}
+% "\slidebox@restore" sets up the spacing parameters at the beginning of every
+% slide. The component commands are defined following this macro.
+% \begin{macrocode}
+\def\slidebox@restore{%
+ \def\thepage{\theslide}%
+ \def\newpage{\newslide}%
+ \def\clearpage{\newslide}%
+ \def\thispagestyle{\notslide@err{\thispagestyle}}%
+ \pagestyle{\slide@pagestyle}%
+ \@twocolumnfalse
+ \def\twocolumn{\notslide@err{\twocolumn}}%
+ \def\onecolumn{\notslide@err{\onecolumn}}%
+ \def\marginpar{\notslide@err{\marginpar}}%
+ \def\thanks{\slidethanks}%
+ \def\maketitle{\slidemaketitle}%
+ \fix@floats
+ \fix@whatsits
+ \slide@footnotes
+ \def\do##1{\expandafter\xdef\csname
+ saved@c@##1\endcsname{\the\@nameuse{c@##1}}}%
+ \slide@reset
+ \topskip\z@ \maxdepth\z@
+ \slide@listparameters
+ \slidefonts
+ \def\baselinestretch{\slidestretch}%
+ \def\arraystretch{\slidearraystretch}%
+ \sem@ptsize{\slide@ptsize}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\thedate,\theauthor,\thetitle,\thethanks}
+% The "\date", "\author" and "\title" commands are redefined so that they save
+% their information in accessible command sequences, "\thedate", "\theauthor"
+% and "\thetitle". "\thanks" is saved so that it can be restored during slide
+% environments. "\thethanks" is set to "\@thanks" so that it is easier to
+% redefine "\slidemaketitle" in the preamble.
+% \begin{macrocode}
+\def\date#1{\gdef\@date{#1}\gdef\thedate{#1}}
+\def\author#1{\gdef\@author{#1}\gdef\theauthor{#1}}
+\def\title#1{\gdef\@title{#1}\gdef\thetitle{#1}}
+\date{\today}
+\let\slidethanks\thanks
+\def\thethanks{\@thanks}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidemaketitle}
+% \begin{macrocode}
+\def\slidemaketitle{%
+ \par
+ \begin{center}\bf
+ {\large \thetitle}\par\vskip 1ex
+ \begin{tabular}[t]{c} \theauthor \end{tabular}\par\vskip 1ex
+ \thedate
+ \end{center}%
+ \thethanks\par}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\fix@floats}
+% Floats are neutralized, but the captions work as usual. This makes it easier
+% to just transfer a float from some other document to a slide. This only
+% works if end of floating environment is "\def"ined to be "\end@float",
+% rather than "\let" to be "\end@float", or if "\@float{foo}" is ended by
+% "\endfoo". This should get 99\% of the cases.
+% \begin{macrocode}
+\def\fix@floats{%
+ \def\@xfloat##1[##2]{%
+ \expandafter\let\csname end##1\endcsname\end@float
+ \par\medskip\vbox\bgroup\def\@captype{##1}\parindent\z@
+ \ignorespaces}%
+ \def\end@float{\par\vskip\z@\egroup\medskip}%
+ \def\@dblfloat{\@float}\def\end@dblfloat{\end@float}%
+ \def\endfigure{\end@float}\def\endtable{\end@float}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\fix@whatsits}
+% The whatsits "\write", "\openout" and "\closeout" are problematic in slides
+% for two reasons:
+% \begin{enumerate}
+% \item First, an otherwise empty vertical list with a whatsit is not empty.
+% Thus, if a slide begins with a "\write" command, followed by a line a text,
+% "\parskip" is inserted before the text. This can be quite noticable in a
+% slide environment, since by default "\parskip" is about 2.5\% of the height
+% of a slide. This problem is likely to arise because it is convenient to put
+% a slide's "\label" command first.
+% \item Second, the slides are omitted in the "notesonly" selection, but we
+% want to preserve cross-referencing.
+% \end{enumerate}
+% We solve both problems by making the three whatsits mentioned above
+% "\immediate" within the slide environments. This might cause unforeseen
+% problems for some macros. It also introduces a known problem: slide
+% cross-references may not be accurate if \TeX\ is doing the page breaking
+% automatically.
+% \begin{macrocode}
+\let\normal@write\write
+\let\normal@read\read
+\let\normal@openout\openout
+\let\normal@closeout\closeout
+\def\fix@whatsits{%
+ \def\write{\immediate\normal@write}%
+ \def\read{\immediate\normal@read}%
+ \def\openout{\immediate\normal@openout}%
+ \def\closeout{\immediate\normal@closeout}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@footins,\theslidefootnote,\slide@footnotes}
+% We want to set up a parallel footnote system for slides. It acts just like
+% regular footnotes, but
+% \begin{LVerbatim}
+% \interfootnotelinepenalty\@M
+% \end{LVerbatim}
+% means that footnotes will not be split across pages.
+% \begin{macrocode}
+\newinsert\slide@footins
+\skip\slide@footins=\bigskipamount
+\count\slide@footins=1000
+\dimen\slide@footins=4in
+\def\theslidefootnote{\alph{footnote}}
+\def\slide@footnotes{%
+ \def\thefootnote{\theslidefootnote}%
+ \let\footins\slide@footins
+ \interfootnotelinepenalty\@M}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidefonts,\ifslidefonts}
+% "\slidefonts" should set up any special fonts for the slides.
+% \begin{macrocode}
+\def\slidefonts{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidestretch,\slidearraystretch}
+% \begin{macrocode}
+\def\slidestretch{1.18}
+\def\slidearraystretch{1.2}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\raggedslides}
+% "\ragggedslides[0pt]" means justified, "\raggedslides[1fil]" means
+% "\raggedright". Ideally, we would also like a version that breaks lines the
+% same way as with justified text, but then doesn't stretch any glue to
+% justify the margin. This is impossible, but "\raggedslides[1em]", e.g., is
+% meant to be an intermediate case.
+% \begin{macrocode}
+\def\raggedslides{\@ifnextchar[{\@raggedslides}{\@raggedslides[1fil]}}
+\def\@raggedslides[#1]{%
+ \edef\slide@@rightskip{#1}%
+ \ifslide\slide@rightskip\fi}
+\def\slide@rightskip{%
+ \@rightskip\z@ plus \slide@@rightskip\relax \rightskip\@rightskip}
+\def\slide@@rightskip{1fil}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\slide@listparameters}
+% The list parameters are generally tightened up, compared to the usual
+% spacing in "article.sty", to compensate for the large "\parskip" and
+% "\baselinestretch".
+% \begin{macrocode}
+\newcount\slide@listdepth
+\def\slide@listparameters{%
+ \let\@listdepth\slide@listdepth
+ \slide@listdepth\z@
+ \def\@listi{\slide@listi}%
+ \def\@listii{\slide@listii}%
+ \def\@listiii{\slide@listiii}%
+ \let\@listiv\relax\let\@listv\relax\let\@listvi\relax}
+\def\slide@listi{%
+ \leftmargin\leftmargini
+ \labelwidth\leftmargini \advance\labelwidth-\labelsep
+ \parsep\parskip \divide\parsep2
+ \partopsep\slidepartopsep\relax
+ \advance\partopsep-\parskip
+ \ifdim\partopsep<\z@\partopsep\z@\fi
+ \itemsep\slideitemsep\relax
+ \ifdim\parsep<\itemsep
+ \topsep\itemsep \advance\topsep-\parsep
+ \else
+ \itemsep\parsep \topsep\z@
+ \fi}
+\def\slide@listii{%
+ \leftmargin\leftmarginii
+ \labelwidth\leftmarginii \advance\labelwidth-\labelsep
+ \divide\itemsep2 \divide\parsep2
+ \divide\topsep2 \divide\partopsep2\relax}%
+\def\slide@listiii{%
+ \leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
+ \itemsep \z@ \parsep\z@ \topsep\z@}%
+\def\slideleftmargini{1.8em}
+\def\slideleftmarginii{1.4em}
+\def\slideleftmarginiii{1em}
+\def\slidelabelsep{.5em}
+\def\slideitemsep{.8ex minus .2ex}
+\def\slidepartopsep{1ex minus .2ex}
+% \end{macrocode}
+% \codelabel{defaultpar*}%
+% \end{macro}
+%
+% \section{Slide output routines: $\setminus$output}
+%
+% \begin{macro}{\save@slidespecials}
+% First, a trick to make sure that "\special"'s in the preamble end up on the
+% first page of the document, even if the first slide is omitted, or if the
+% first item in the document is a float (in which case \LaTeX\ discards
+% "\special"'s). "\@textop" is used to insert the specials if the first page
+% is processed by \LaTeX's usual output routines, and "\insert@specials" is
+% used to insert the specials if the first page is a slide in the "slides"
+% format (see the definition of "\output@slide" below).
+% \begin{macrocode}
+\newbox\saved@specials
+\def\save@slidespecials{%
+ \begingroup
+ \output{%
+ \global\setbox\saved@specials=\box\@cclv
+ \global\wd\saved@specials=\z@
+ \global\dp\saved@specials=\z@
+ \global\ht\saved@specials=\z@}%
+ \hbox{}\penalty-\@M
+ \global\let\saved@texttop\@texttop
+ \gdef\@texttop{%
+ \ifvoid\saved@specials\else\box\saved@specials\nointerlineskip\fi
+ \saved@texttop
+ \global\let\@texttop\saved@texttop}%
+ \endgroup}
+\addto@hook\after@document{\save@slidespecials}
+\ifarticle\else
+ \def\insert@specials{%
+ \ifvoid\saved@specials\else
+ \setbox\@slidebox\hbox{\box\saved@specials\box\@slidebox}%
+ \fi
+ \global\let\insert@specials\relax}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\extraslideheight}
+% This increases the height of a slide for the purpose of page-breaking. We
+% use unscaled dimensions so that \TeX's warnings about overfull "\vbox"'s
+% will be comparable.
+% \begin{macrocode}
+\def\extraslideheight#1{%
+ \@tempdima #1\relax
+ \edef\X@SlideHeight{\number\@tempdima sp}
+ \ifslide\set@slidesize\fi}
+\extraslideheight{6pt}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\set@slidesize}
+% In addition to setting "\hsize" and "\vsize", this sets the \LaTeX\
+% parameters such as "\textheight" and "\textwidth" so that slides seem like a
+% regular page, whatever format is being used.
+% \begin{macrocode}
+\def\set@slidesize{%
+ \iflandscape
+ \hsize=\inverseslidesmag\slidewidth
+ \vsize=\inverseslidesmag\slideheight
+ \else
+ \hsize=\inverseslidesmag\slideheight
+ \vsize=\inverseslidesmag\slidewidth
+ \fi
+ \edef\slide@vsize{\number\vsize sp}%
+ \textheight\vsize
+ \advance\vsize\X@SlideHeight\relax
+ \textwidth\hsize\columnwidth\hsize\linewidth\hsize}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newslide}
+% This includes things you want to initialize whenever a new page is started
+% \begin{macrocode}
+\def\newslide{%
+ \par\penalty-\@M
+ \def\do##1{\setcounter{##1}\z@}\slide@reset
+ \the\before@newslide
+ \set@slidesize}
+\newtoks\before@newslide
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidereset,\addtoslidereset}
+% "\addto@slidereset{foo,bar}" sets "\slide@reset" to
+% \begin{quote}
+% "\slide@reset\do{foo}\do{bar}"
+% \end{quote}
+% \begin{macrocode}
+\def\slide@reset{\do{footnote}}
+\def\slidereset#1{\def\slide@reset{}\addtoslidereset{#1}}
+\def\addtoslidereset#1{%
+ \edef\@tempa{#1}\expandafter\addto@slidereset\@tempa,\@nil,}
+\def\addto@slidereset#1,{%
+ \ifx\@nil#1\else
+ \@ifundefined{c@#1}%
+ {\@seminarerr{Counter `#1' not defined}\@ehd}%
+ {\expandafter\def\expandafter\slide@reset\expandafter{%
+ \slide@reset\do{#1}}}%
+ \expandafter\addto@slidereset
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@output}
+% "\os@test" checks whether according to some "\onlyslides" or "\notslides"
+% command, this slide should not be output; "\os@test" is defined in Section
+% \ref{os}.
+% \begin{macrocode}
+\def\slide@output{%
+ \@makeslide
+ \@testfalse
+ \ifnotesonly\else
+ \iflandscape
+ \ifnum\@landscapeonly>-1 \os@test\fi
+ \else
+ \ifnum\@landscapeonly<1 \os@test\fi
+ \fi
+ \fi
+ \if@test
+ \reset@slideoutput
+ \@@makeslide
+ \process@slide
+ \fi
+ \refstepcounter{slide}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\reset@slideoutput}
+% Some things should be reset for the slide embellishments. E.g., you don't
+% want slide labels or headers and footers to be affected by the current font.
+% \begin{macrocode}
+\def\reset@slideoutput{%
+ \let\par\@@par
+ \reset@font
+ \def\baselinestretch{1}%
+ \@nameuse{1\@ptsize @semptsize}%
+ \catcode`\ =10
+ \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ifcenterslides}
+% This is the flag for vertically centering slides.
+% \begin{macrocode}
+\newif\ifcenterslides
+\centerslidestrue
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@makeslide,\@@makeslide}
+% Take care of footnotes and verticle positioning.
+% \begin{macrocode}
+\def\@makeslide{%
+ \setbox\@slidebox\vbox{%
+ \unvbox\@cclv
+ \ifvoid\slide@footins\else
+ \vskip\skip\slide@footins
+ \footnoterule
+ \unvbox\slide@footins
+ \fi
+ \vskip\z@}}
+\def\@@makeslide{%
+ \overfullslide@warning
+ \setbox\@slidebox\hbox{%
+ \vfuzz=\slidefuzz\relax
+ \vbox to\slide@vsize{%
+ \ifcenterslides\vskip\z@ plus .0001fil \fi
+ \unvbox\@slidebox
+ \vskip\z@ plus .0001fil}%
+ \the\after@slidepage}%
+ \wd\@slidebox\textwidth}
+\def\overfullslide@warning{%
+ \dimen@\ht\@slidebox
+ \advance\dimen@-\slide@vsize\relax
+ \ifdim\dimen@>\slidefuzz\relax
+ \@warning{Slide \theslide\space overfull by \the\dimen@}%
+ \fi}
+\def\slidefuzz{2pt}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\after@slidepage}
+% "\after@slidepage" is executed at the end of each page of a slide
+% environment during the slide output routine. It is meant to reset things
+% that might have been set by "\special"'s within the slide.
+% \begin{macrocode}
+\newtoks\after@slidepage
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Rotation}
+%
+% Rotation macros must be implemented by "\special"'s, such as in
+% "semcolor.sty". The interface for rotation is built into "seminar.sty",
+% however.
+%
+% \begin{macro}{\ifrotateheaders}
+% In the "slides" format, the slides can either be rotated before being placed
+% on the page, or the whole page can be rotated, including headers.
+% "\ifrotateheaders" controls which procedure is used.
+% \begin{macrocode}
+\newif\ifrotateheaders
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\sliderotation}
+% \begin{macrocode}
+\def\sliderotation#1{\@ifundefined{semsr@#1}%
+ {\@latexerr{Slide rotation `#1' not defined.}\@eha}%
+ {\@nameuse{semsr@#1}}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\semsr@none,\semsr@left,\semsr@right}
+% A slide rotation should define "\rotate@slide" to rotate "\@slidebox"..
+% \begin{macrocode}
+\def\semsr@left{%
+ \def\rotate@slide{%
+ \setbox\@slidebox\hbox{\leftsliderotation{\box\@slidebox}}}}
+\def\semsr@right{%
+ \def\rotate@slide{%
+ \setbox\@slidebox\hbox{\rightsliderotation{\box\@slidebox}}}}
+\def\semsr@none{\let\rotate@slide\relax}
+\sliderotation{none}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\leftsliderotation,\rightsliderotation}
+% \begin{macrocode}
+\def\leftsliderotation#1{%
+ \@seminarerr{\string\leftsliderotation\space has not been defined}%
+ \@ehd}
+\let\rightsliderotation\leftsliderotation
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\@ifrotateslide}
+% \begin{macrocode}
+\def\@ifrotateslide#1{%
+ \ifx\rotate@slide\relax\else
+ \iflandscape\ifportrait#1\fi\else\ifportrait\else#1\fi\fi
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Slide output routines: $\setminus$process@slide\label{slideoutput}}
+%
+% This is the version-dependent stuff, where we decide what to do with the
+% slide.
+%
+% \begin{macro}{\process@slide}
+% "\process@@slide" is kept separate because it can be redefined for doing
+% overlays.
+% \begin{macrocode}
+\def\process@slide{%
+ \slideframewidth=\inverseslidesmag\slideframewidth
+ \slideframesep=\inverseslidesmag\slideframesep
+ \fboxrule\slideframewidth
+ \fboxsep\slideframesep
+ \ifarticle
+ \@ifrotateslide\rotate@slide
+ \else
+ \ifrotateheaders\else\@ifrotateslide\rotate@slide\fi
+ \fi
+ \process@@slide}
+\def\process@@slide{\finish@slide\output@slide}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\finish@slide}
+% \begin{macrocode}
+\def\finish@slide{%
+ \theslideframe
+ \add@slidelabel\slidelabel}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\output@slide}
+% In the "article" format, the slides are saved until the end of the slide
+% environment.
+% \begin{macrocode}
+\ifarticle
+ \def\output@slide{%
+ \global\advance\slide@count1
+ \@ifundefined{slidebox@\the\slide@count}%
+ {{\globaldefs=1\expandafter
+ \new@slidebox\csname slidebox@\the\slide@count\endcsname}}{}%
+ \expandafter\global\expandafter\setbox\csname
+ slidebox@\the\slide@count\endcsname\box\@slidebox}
+% \end{macrocode}
+% In the "slides" format, we use a modification of \LaTeX's "\@outputpage".
+% "\do@fancyput" is stuck in here in case "fancybox.sty" is being used.
+% "\fancyput@flag" is initialized in case it is not
+% \begin{macrocode}
+\else
+ \def\output@slide{%
+ \begingroup
+ \hoffset=-\inverseslidesmag in
+ \voffset=-\inverseslidesmag in
+ \setslidelength\@tempdima{%
+ \ifportrait\paperwidth\else\paperheight\fi}
+ \setslidelength\@tempdimb{%
+ \ifportrait\paperheight\else\paperwidth\fi}
+ \ifrotateheaders
+ \@ifrotateslide{%
+ \dimen@=\@tempdima
+ \@tempdima=\@tempdimb
+ \@tempdimb=\dimen@}
+ \fi
+ % \oddsidemargin, \evensidemargin, \headheight, \footheight
+ % used for scratch:
+ \setslidelength\oddsidemargin\slideleftmargin
+ \setslidelength\evensidemargin\sliderightmargin
+ \setslidelength\headheight\slidetopmargin
+ \setslidelength\footheight\slidebottommargin
+ % Some page styles like to know \textwidth:
+ \textwidth=\@tempdima
+ \advance\textwidth-\oddsidemargin
+ \advance\textwidth-\evensidemargin
+ \setbox\@slidebox=\hbox to \@tempdima{%
+ \kern\oddsidemargin
+ \vbox to\@tempdimb{%
+ \ifnum\fancyput@flag>-1
+ \hbox{\kern-\oddsidemargin\do@fancyput}%
+ \fi
+ \let\label\@gobble
+ \let\index\@gobble
+ \let\glossary\@gobble
+ \vbox to\headheight{%
+ \vfill
+ \hbox{%
+ \slideheadfont\relax\strut
+ \hbox to\textwidth{\@oddhead}}%
+ \kern\z@}%
+ \vfill
+ \hbox to\textwidth{\hss\box\@slidebox\hss}%
+ \vfill
+ \vbox to\footheight{%
+ \hbox{%
+ \slidefootfont\relax\strut
+ \hbox to\textwidth{\@oddfoot}}%
+ \vfill}}%
+ \hss}%
+ \ifrotateheaders\@ifrotateslide\rotate@slide\fi
+ \insert@specials
+ \shipout\box\@slidebox
+ \endgroup
+ \let\firstmark\botmark}
+ \@ifundefined{fancyput@flag}{\def\fancyput@flag{-1}}{}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\output@savedslide}
+% Now we take care of the saved slides in the "article" format. Lots of things
+% can happen.
+% \begin{macrocode}
+\newskip\slidesep
+\slidesep\intextsep
+\ifarticle
+ \def\fps@fslide{htbp}
+ \def\ftype@fslide{32}
+ \def\float@savedslide{%
+ \begingroup\@float{fslide}%
+ \centerline{\box\@slidebox}%
+ \end@float\endgroup}%
+ \@namedef{float*@savedslide}{%
+ \begingroup\@dblfloat{fslide}%
+ \centerline{\box\@slidebox}%
+ \end@dblfloat\endgroup}%
+ \def\center@slide{\hbox{%
+ \kern-\@totalleftmargin
+ \hbox to \columnwidth{\hss\box\@slidebox\hss}}}%
+ \def\onepercol@savedslide{%
+ \vbox to .996\textheight{\vss\center@slide\vss}\goodbreak}%
+ \def\twopercol@savedslide{%
+ \dimen@.5\textheight
+ \advance\dimen@-\slidesep
+ \ifdim\ht\@slidebox>\dimen@
+ \onepercol@savedslide
+ \else
+ \vbox to .498\textheight{\vss\center@slide\vss}\goodbreak
+ \fi}
+ \def\here@savedslide{%
+ \addvspace\slidesep\center@slide\addvspace\slidesep}
+ \@namedef{here*@savedslide}{%
+ \goodbreak \hrule \@height\z@ \nobreak \vskip\slidesep \nobreak
+ \center@slide
+ \nobreak \vskip\slidesep \nobreak \hrule\@height\z@ \goodbreak}
+\fi
+\ifarticle
+ \def\slideplacement#1{\@ifundefined{#1@savedslide}%
+ {\@seminarerr{Slide placement `#1' undefined}\@ehd}%
+ {\expandafter\let\expandafter\output@savedslide
+ \csname #1@savedslide\endcsname}}
+\else
+ \def\slideplacement#1{}
+\fi
+\ifarticle
+ \ifnotes
+ \ifportrait
+ \slideplacement{float}
+ \else
+ \slideplacement{float*}
+ \fi
+ \else
+ \ifportrait
+ \slideplacement{onepercol}
+ \else
+ \slideplacement{twopercol}
+ \fi
+ \fi
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\outputloop@savedslides}
+% This is the loop that spits out each of the saved slides. We start by
+% reinserting whatever was on the current page when the slide environment
+% started.
+% \begin{macrocode}
+\ifarticle
+ \def\outputloop@savedslides{%
+ \global\maxdepth\@maxdepth
+ \ifvoid\not@slidebox\else
+ \dimen@=\dp\not@slidebox
+ \unvbox\not@slidebox
+ \hrule height\z@
+ \prevdepth\dimen@
+ \penalty\z@
+ \fi
+ \edef\slide@@count{\the\slide@count\relax}%
+ \slide@count\z@
+ \loop
+ \ifnum\slide@count<\slide@@count
+ \advance\slide@count1
+ \expandafter\setbox\expandafter\@slidebox\expandafter\box
+ \csname slidebox@\the\slide@count\endcsname
+ \output@savedslide
+ \repeat
+ \ifnotesonlystar\make@slidemarker\fi}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\make@slidemarker}
+% \begin{macrocode}
+\def\make@slidemarker{%
+ \addvspace\slidesep
+ \moveleft\@totalleftmargin
+ \vbox{%
+ \hsize\columnwidth
+ \hrule height 1pt
+ \kern 8pt
+ \hbox to \columnwidth{%
+ \hss
+ \LARGE\bf\the@slidemarker
+ \hss}%
+ \kern 8pt
+ \hrule height 1pt}%
+ \addvspace\slidesep}
+\def\the@slidemarker{%
+ Slide%
+ \ifnum\c@slide=\first@slidemarker\else
+ s {\c@slide\first@slidemarker\relax\theslide} --\fi
+ { }\theslide}%
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Page numbering in the {\tt slides} format}
+%
+% In the "slides" format, we let the "page" counter be stepped as usual by the
+% output routine, but we don't use it for anything except perhaps to keep
+% track of the absolute page number. Instead, we have a counter "note" to keep
+% track of the pages of notes, and "\thepage" is set to "\thenote" for notes
+% and "\theslide" for slides (and "\theoverlay" for overlays and "\thelayer"
+% for layers).
+%
+% \begin{macro}{\c@note}
+% The "note" counter has to be stepped by the output routine, and reset by the
+% slide environments. In the "article" format, we just make the "note" counter
+% the same as the "page" counter.
+% \begin{macrocode}
+\ifarticle
+ \let\c@note\c@page
+ \def\p@note{\p@page}
+ \def\thenote{\thepage}
+\else
+ \newcounter{note}
+ \def\thenote{\theslide-\arabic{note}}
+ \def\thepage{\thenote}
+ \addto@hook\after@slide{\setcounter{note}{1}}
+ \expandafter\def\expandafter\@outputpage\expandafter{%
+ \@outputpage\stepcounter{note}}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% Which counter should the dvi driver pay attention to when numbering the
+% pages in the "slides" format? This makes a difference when using the dvi
+% driver to select pages. If the driver numbers pages by the slide number,
+% then it is easier to use the driver to print selected slides.
+% However, this can be cumbersome when there are many pages of notes or
+% overlays, especially if the driver cannot pick out the $n^{th}$ occurence of
+% a page, because many pages will have the same page number. In this case,
+% keeping track of physical page numbers may be preferred. We allow both
+% options.
+%
+% By default, the dvi driver pays attention to the slide counter; i.e., this
+% counter is assigned register 0
+% \begin{macrocode}
+\ifarticle\else
+ \let\c@page\c@slide
+ \countdef\c@slide=0
+ \c@slide=0
+ \c@page=1
+\fi
+% \end{macrocode}
+%
+% \begin{macro}{\truepagenumbers}
+% This switches back to having the driver recognize physical page numbers.
+% \begin{macrocode}
+\ifarticle
+ \let\truepagenumbers\relax
+\else
+ \def\truepagenumbers{%
+ \let\c@slide\c@page
+ \countdef\c@page=0
+ \c@page=1
+ \c@slide=0
+ \let\truepagenumbers\relax}
+\fi
+\addto@preamblecmds{\truepagenumbers}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Slide frames}
+%
+% \begin{macro}{\slideframewidth,\slideframesep}
+% \begin{macrocode}
+\newdimen\slideframewidth \slideframewidth 4pt
+\newdimen\slideframesep \slideframesep .3in
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newslideframe,\slideframe}
+% \begin{macrocode}
+\def\newslideframe#1{%
+ \@ifnextchar[{\@newslideframe{#1}}{\@newslideframe{#1}[]}}
+\def\@newslideframe#1[#2]{%
+ \@namedef{semsfops@#1}{#2}%
+ \@namedef{semsf@#1}##1}
+\newslideframe{plain}{\fbox{#1}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slideframe,\@slideframe}
+% \begin{macrocode}
+\def\slideframe{\@slideframe{slide}}
+\def\@slideframe#1{%
+ \@ifstar{\@testtrue\@@slideframe{#1}}{\@testfalse\@@slideframe{#1}}}
+\def\@@slideframe#1{%
+ \@ifnextchar[{\@@@slideframe{#1}}{\@@@slideframe{#1}[]}}
+\def\@@@slideframe#1[#2]#3{%
+ \def\@tempa{none}%
+ \def\@tempb{#3}%
+ \ifx\@tempa\@tempb
+ \@namedef{the#1frame}{\relax}%
+ \else
+ \ifx\@tempb\@empty
+ \@namedef{the#1frame}{}%
+ \else
+ \@ifundefined{semsf@#3}%
+ {\@seminarerr{Slide frame `#3' undefined}\@eha}%
+ {\if@test
+ \@@@@slideframe{#1}[#2]{#3}%
+ \else
+ \@namedef{the#1frame}{\setbox\@slidebox=\hbox{{%
+ \@nameuse{semsfops@#3}#2\@nameuse{semsf@#3}{\box\@slidebox}}}}%
+ \fi}%
+ \fi
+ \fi}
+\def\@@@@slideframe#1[#2]#3{%
+ \expandafter\let\expandafter\@tempa\csname the#1frame\endcsname
+ \edef\next{%
+ \noexpand\def\expandafter\noexpand\csname the#1frame\endcsname}%
+ \expandafter\next\expandafter{\@tempa
+ \setbox\@slidebox=\hbox{{%
+ \@nameuse{semsfops@#3}%
+ #2%
+ \@nameuse{semsf@#3}{\box\@slidebox}}}}}%
+\slideframe{plain}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Slide styles\label{slidestyles}}
+%
+% \begin{macro}{\slidestyle}
+% \begin{macrocode}
+\def\slidestyle#1{\@ifundefined{ss@#1}%
+ {\@seminarerr{Slide style `#1' undefined}\@eha}%
+ {\@nameuse{ss@#1}}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ss@empty,\ss@plain,\ss@plainbottom}
+% The "plain" slide style places the slide label on the left side of the
+% framed slide, centered vertically. The caption is set in a box with zero
+% width so that it does not affect the centering of the slide on the page. In
+% the "plainbottom" style, the label is centered at the bottom of the slide.
+% \begin{macrocode}
+\def\ss@empty{\let\add@slidelabel\@gobble}
+\def\ss@left{\def\add@slidelabel##1{%
+ \setbox\@slidebox=\hbox{%
+ \vbox to \ht\@slidebox{\vss
+ \hbox to 0pt{\hss##1\hskip 15pt}%
+ \vss}\box\@slidebox}}}
+\def\ss@bottom{\def\add@slidelabel##1{%
+ \setbox\@slidebox=\vbox{\copy\@slidebox\vskip 9pt
+ \hbox to\wd\@slidebox{\hss##1\hss}}}}%
+\ifarticle
+ \ifportrait\slidestyle{bottom}\else\slidestyle{left}\fi
+\else
+ \slidestyle{empty}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidelabel}
+% \begin{macrocode}
+\def\slidelabel{\bf Slide \theslide}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Page styles}
+%
+% \begin{macro}{\newpagestyle,\renewpagestyle}
+% The next two commands allow one to define new pages styles in the preamble
+% of a document without playing around with the catcode of "@".
+% \begin{macrocode}
+\def\newpagestyle#1#2#3{%
+ \expandafter\newcommand\csname ps@#1\endcsname{%
+ \def\@oddhead{#2}\let\@evenhead\@oddhead
+ \def\@oddfoot{#3}\let\@evenfoot\@oddfoot}}
+\def\renewpagestyle#1#2#3{%
+ \expandafter\renewcommand\csname ps@#1\endcsname{%
+ \def\@oddhead{#2}\let\@evenhead\@oddhead
+ \def\@oddfoot{#3}\let\@evenfoot\@oddfoot}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidepagestyle}
+% \begin{macrocode}
+\def\@ifgoodps#1{%
+ \@ifundefined{ps@#1}{\@seminarerr{Page style `#1' undefined}\@eha}}
+\def\slidepagestyle#1{%
+ \@ifgoodps{#1}%
+ {\ifslide\pagestyle{#1}\else\edef\slide@pagestyle{#1}\fi}}
+\def\ps@{}
+\slidepagestyle{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ps@align}
+% \begin{macrocode}
+\ifarticle
+ \def\ps@align{}
+\else
+ \def\ps@align{%
+ \def\@oddhead{\thepage\hfil+}\let\@evenhead\@oddhead
+ \def\@oddfoot{+\hfil+}\let\@evenfoot\@oddfoot}
+\fi
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slideheadfont,\slidefootfont}
+% \begin{macrocode}
+\def\slideheadfont{\scriptsize}
+\def\slidefootfont{\scriptsize}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Magnification}
+%
+% \begin{macro}{\magstep,\magstepminus}
+% We extend the definition of "\magstep"$n$ to $n=0,\ldots,9$, and define an
+% analogous macro for reduction. The argument of "\@magstep" {\em must be a
+% count register}.
+% \begin{macrocode}
+\def\magstep#1{\ifcase#1 \@m\or 1200\or 1440\or 1728\or
+ 2074\or 2488\or 2986\or 3583\or 4300\or 5160\fi\relax}
+\def\magstepminus#1{%
+ \ifcase#1 \@m\or 833\or 694\or 579\or 482\or 401\fi\relax}
+\def\@magstep#1{%
+ \ifnum#1<\z@\magstepminus{-#1}\else\magstep#1\fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\invert@mag}
+% If "\cs" is a command sequence (not a count register) that expands to an
+% integer $n>0$, then "\invert@mag\cs" sets "\cs" to $1000 n^{-1}$. E.g.,
+% after the commands
+% \begin{Ex}
+% "\def\mymag{\magstep2}"
+% "\invert@mag\mymag"
+% \end{Ex}
+% the meaning of "\mymag" is ".694444". We use dimension registers to access
+% \TeX's internal arithmetic routines.
+% \begin{macrocode}
+{\catcode`\p=12\catcode`\t=12
+ \gdef\@@inv@@mag#1pt#2{\def#2{#1}}}
+\def\invert@mag#1{\@tempdima=1000pt
+ \divide\@tempdima by #1\relax
+ \expandafter\@@inv@@mag\the\@tempdima#1}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@slidesmag,\@articlemag}
+% "\@slidesmag" and "\@articlemag" define "\inverseslidesmag" and
+% "\inverseartmag" for use by "\setslidelength", etc., using the "\invert@mag"
+% routine defined above. They also set the magnification of the document in
+% the "slides" or "article" format. Their arguments can be any magnification.
+% \begin{macrocode}
+\def\@slidesmag#1{%
+ \@tempcnta=#1\relax%
+ \ifnum\@tempcnta>0
+ \edef\inverseslidesmag{\the\@tempcnta}%
+ \invert@mag\inverseslidesmag
+ \ifarticle\else\mag\@tempcnta\fi
+ \else
+ \@seminarerr{\string\@slidesmag\space argument must be an
+ integer equal to 1000 times the magnification}\@eha
+ \fi}
+\def\@articlemag#1{%
+ \@tempcnta=#1\relax%
+ \ifnum\@tempcnta>0
+ \edef\inverseartmag{\the\@tempcnta}%
+ \invert@mag\inverseartmag
+ \ifarticle\mag\@tempcnta\fi
+ \else
+ \@seminarerr{\string\articlemag\space argument must be an
+ integer equal to 1000 times the magnification}\@eha
+ \fi}
+\addto@preamblecmds{\@slidesmag\do\@articlemag}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidesmag,\articlemag}
+% "\slidesmag" and "\articlemag" are an interface to "\@slidesmag" and
+% "\@articlemag", and allow only "\magstep" type magnifications.
+% \begin{macrocode}
+\newdimen\semin
+\newdimen\semcm
+\def\@semmagerr#1{%
+ \@seminarerr{\string#1 argument must be an integer
+ between -5 and 9}\@eha}
+\def\slidesmag#1{%
+ \@tempcnta=#1\relax
+ \ifnum\@tempcnta>-6
+ \ifnum\@tempcnta<10
+ \edef\the@slidesmag{\the\@tempcnta}%
+ \@slidesmag{\@magstep\@tempcnta}%
+ \else
+ \@semmagerr\slidesmag
+ \fi
+ \else
+ \@semmagerr\slidesmag
+ \fi
+ \setslidelength\semin\seminlength
+ \setslidelength\semcm\semcmlength}
+\def\seminlength{1in}
+\def\semcmlength{1cm}
+\def\articlemag#1{%
+ \@tempcnta=#1\relax
+ \ifnum\@tempcnta>-6
+ \ifnum\@tempcnta<10
+ \edef\the@articlemag{\the\@tempcnta}%
+ \@articlemag{\@magstep\@tempcnta}%
+ \else
+ \@semmagerr\articlemag
+ \fi
+ \else
+ \@semmagerr\articlemag
+ \fi}
+\addto@preamblecmds{\slidesmag\do\articlemag}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\setslidelength,\addtoslidelength}
+% \begin{macrocode}
+\def\setslidelength#1#2{%
+ #1=#2\relax
+ #1=\inverseslidesmag#1}%
+\def\addtoslidelength#1#2{%
+ \dimen@=#2\relax
+ \advance#1 by \inverseslidesmag\dimen@}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\setartlength,\addtoartlength}
+% \begin{macrocode}
+\def\setartlength#1#2{%
+ #1=#2\relax
+ #1=\inverseartmag#1}
+\def\addtoartlength#1#2{%
+ \dimen@=#2\relax
+ \advance#1 by \inverseartmag\dimen@}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@epsfsize,\epsfslidesize}
+% \begin{macrocode}
+\def\slide@epsfsize#1#2{%
+ \ifdim\epsfxsize=0pt
+ \ifdim\epsfysize=0pt
+ \inverseslidesmag#1%
+ \else
+ 0pt
+ \fi
+ \else
+ \inverseslidesmag\epsfxsize
+ \fi
+ \epsfysize
+ \ifdim\epsfysize=0pt
+ \ifdim\epsfxsize=0pt
+ \inverseslidesmag#2%
+ \else
+ 0pt
+ \fi
+ \else
+ \inverseslidesmag\epsfysize
+ \fi}
+\def\epsfslidesize{\let\epsfsize\slide@epsfsize}
+% \end{macrocode}
+% \end{macro}
+%
+% Now the default magnifications are set:
+% \begin{macrocode}
+\slidesmag{4}
+\articlemag{0}
+% \end{macrocode}
+%
+%
+% \section{Page parameters\label{pageparameters}}
+%
+% When the the document begins, the page parameters are scaled depending on
+% the format and the magnification for that format, so that it is as if the
+% parameters were set with "true" dimensions. This allows a user to change the
+% magnification in the preamble without having to go back and rescale the page
+% parameters.
+%
+% \begin{macro}{\do@pageparameters}
+% First, we define "\do@pageparameters" like "\do@specials", but with all the
+% page parameters listed on page 163 of Lamport's \LaTeX{} User's Guide and
+% Reference Manual. Parameters can be added the same way commands are added to
+% "\@preamblecmds".
+% \begin{macrocode}
+\def\do@pageparameters{%
+ \do\oddsidemargin
+ \do\evensidemargin
+ \do\marginparwidth
+ \do\marginparsep
+ \do\topmargin
+ \do\headheight
+ \do\headsep
+ \do\textheight
+ \do\textwidth
+ \do\topskip
+ \do\footskip
+ \do\footheight}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\scale@pageparameters}
+% Now we define "\scale@pageparameters", which is invoked at the beginning of
+% the document, to scale the page parameters.
+% \begin{macrocode}
+\ifarticle
+ \def\scale@pageparameters{%
+ \begingroup
+ \def\do##1{\global##1=\inverseartmag##1\relax}%
+ \do@pageparameters
+ \endgroup}
+\else
+ \def\scale@pageparameters{%
+ \begingroup
+ \def\do##1{\global##1=\inverseslidesmag##1\relax}%
+ \do@pageparameters
+ \endgroup}
+\fi
+\addto@hook\before@document{\scale@pageparameters}
+\addto@preamblecmds{\scale@pageparameters\do\do@pageparameters}
+% \end{macrocode}
+% \end{macro}
+%
+% \section{Omitting and including notes}
+%
+% \begin{macro}{\allversions,\endallversions,\allversions*,\endallversions*}
+% The "allversions" environments are processed in any version.
+% \begin{macrocode}
+\def\allversions{}
+\let\endallversions\relax
+\@namedef{allversions*}{\@bsphack\globaldefs=1}
+\@namedef{endallversions*}{\@esphack}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@list,\addtoslidelist}
+% "\slide@list" stores the list of environments that are to be included with
+% the "slidesonly" selection. Environments are added to it using the
+% "\addtoslidelist" command.
+% \begin{macrocode}
+\def\slide@list{slide,slide*,allversions,allversions*}
+\def\addtoslidelist#1{\xdef\slide@list{\slide@list,#1}}
+\addto@preamblecmds{\addtoslidelist}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\xcomment@hook}
+% The macro "\@xcomment", defined in "xcomment.sty", does the actual omitting
+% of notes in the "slidesonly" format. Only environments in "\slide@list" are
+% processed.
+% \begin{macrocode}
+\ifslidesonly
+ \@ifundefined{xcomment@@@}{\@@input xcomment.sty }{}
+ \def\xcomment@hook{\@xcomment{@@@}{\slide@list}}
+ \newxcomment[]{note}
+\else
+ \def\note{\@bsphack}%
+ \def\endnote{\@esphack}%
+\fi
+\def\noxcomment{\def\xcomment@hook{}}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Omitting and including slides\label{os}}
+%
+% This is pretty bad code, but it works.
+%
+% \begin{macro}{\onlyslides,\notslides}
+% "\onlyslides" and "\notslides" store their arguments, which should expand to
+% a comma separated list of numbers and ranges, in the command sequence
+% "\os@list". It is not immediately expanded, because the argument may contain
+% references that are not yet defined; recall that the ".aux" file is
+% processed at the beginning of the document.
+% \begin{macrocode}
+\def\os@list{}
+\newif\if@os
+\def\onlyslides#1{\def\os@list{#1}\@ostrue
+ \def\os@warning{\@warning{\string\onlyslides\space argument
+ contains undefined references}}}
+\def\notslides#1{\def\os@list{#1}\@osfalse
+ \def\os@warning{\@warning{\string\notslides\space argument
+ contains undefined references}}}
+\addto@preamblecmds{\onlyslides\do\notslides}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\os@expandlist}
+% "\os@expandlist" is invoked at the beginning of the document, after the
+% ".aux" files has been processed.
+% \begin{macrocode}
+\addto@hook\after@document{%
+ \ifx\os@list\@empty\else\os@expandlist\fi}
+% \end{macrocode}
+% "\os@expandlist" first expands the list, and then processes each
+% comma-separated entry with "\os@expandrange".
+% \begin{macrocode}
+\def\os@expandlist{%
+ \let\os@@warning\relax
+ \begingroup
+ \def\ref##1{\@ifundefined{r@##1}{?}%
+ {\noexpand\@car\@nameuse{r@##1}\noexpand\@nil}}%
+ \edef\@tempd{\os@list}%
+ \xdef\os@list{}%
+ \@for\@tempc:=\@tempd
+ \do{\expandafter\os@expandrange\@tempc-:-:\@nil}%
+ \os@@warning
+ \endgroup
+ \let\os@expandrange\relax
+ \let\os@checknum\relax
+ \let\os@expandlist\relax}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\os@expandrange}
+% "\os@expandrange" expands entries of the form $m$-$n$ to $(m-1)$+$(n+1)$,
+% which will simplify checking slide numbers against the list ("+" is used as
+% a separator instead of "-" to allow for negative numbers). Entries that
+% consist of a single number $n$ are treated like a range $n$-$n$.
+% \begin{macrocode}
+\def\os@expandrange#1-#2-#3\@nil{%
+ \def\@tempa{?}\def\@tempb{#1}%
+ \ifx\@tempa\@tempb
+ \let\os@@warning\os@warning
+ \else
+ \@tempcnta=#1\relax
+ \def\@tempb{#2}%
+ \ifx\@tempa\@tempb
+ \let\os@@warning\os@warning
+ \else
+ \def\@tempa{:}%
+ \ifx\@tempa\@tempb
+ \@tempcntb=\@tempcnta
+ \else
+ \@tempcntb=#2\relax
+ \fi
+ \advance\@tempcnta by -1
+ \advance\@tempcntb by 1
+ \ifx\os@list\@empty
+ \xdef\os@list{\the\@tempcnta+\the\@tempcntb}%
+ \else
+ \xdef\os@list{\os@list,\the\@tempcnta+\the\@tempcntb}%
+ \fi
+ \fi
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\os@test}
+% "\os@test" checks whether a slide should be processed. For each entry
+% $m$-$n$ in the list "\os@list", if the slide number is greater than $m$ and
+% less than $n$, "\if@test" is set to "\if@os". Recall that "\if@os" is
+% "\iftrue" is "\os@list" is a list of slides to be included, and is
+% "\iffalse" if "\os@list" is a list of slides to be excluded.
+% \begin{macrocode}
+\def\os@test{%
+ \@testtrue
+ \iflandscape
+ \ifnum\@landscapeonly=-1 \@testfalse\fi
+ \else
+ \ifnum\@landscapeonly=1 \@testfalse\fi
+ \fi
+ \if@test
+ \ifx\os@list\@empty\else
+ \if@os\@testfalse\fi
+ \@for\@tempa:=\os@list\do{\expandafter\os@testrange\@tempa\@nil}%
+ \fi
+ \fi}
+\def\os@testrange#1+#2\@nil{%
+ \ifnum\c@slide>#1
+ \ifnum\c@slide<#2
+ \if@os\@testtrue\else\@testfalse\fi
+ \fi
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\onlynotestoo}
+% \begin{macrocode}
+\def\onlynotestoo{%
+ \ifnotes\@testtrue\else\ifnotesonly\@testtrue\else\@testfalse\fi\fi
+ \if@test
+ \@ifundefined{xcomment@@@}{%
+ \edef\sem@temp{\the\catcode`\@}%
+ \catcode`\@=11
+ \@@input xcomment.sty
+ \catcode`\@=\sem@temp\relax}{}%
+ \def\xcomment@hook{\@xcomment{@@@}{\slide@list}}%
+ \addto@hook\after@slide\onlynotes@too
+ \fi}
+\def\onlynotes@too{%
+ \os@test
+ \if@test\gdef\do@end{}\else\gdef\do@end{\xc@begin}\fi}
+\addto@preamblecmds\onlynotestoo
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Font size declarations\label{fontsize}}
+%
+% \begin{macro}{\ptsize}
+% The "\ptsize{"$n$"}" command invokes a macro so that the font size
+% declarations are defined as in "art"$n$".sty", except that the font size
+% declarations only affect the sizes of fonts, and not the list or display
+% parameters. These parameters are set at the beginning of each slide
+% environment. "\ptsize" should only be used in slide environments.
+% \begin{macrocode}
+\def\ptsize#1{%
+ \@ifundefined{#1@semptsize}%
+ {\@seminarerr{\string\ptsize\space `#1' not valid.}\@eha}%
+ {\ifslide
+ \sem@ptsize{#1}\large\normalsize
+ \else
+ \edef\slide@ptsize{#1}%
+ \fi}}
+\edef\slide@ptsize{1\@ptsize}%
+\def\slidefontsizes{\ptsize} %For backwards compatibility??
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slide@setsize}
+% This is a variant of "\@setsize" that makes the minimum space between lines
+% be "\slideskip" times the extra space between lines.
+% \begin{macrocode}
+\def\slide@setsize#1#2#3#4{%
+ \@setsize{#1}{#2}{#3}{#4}%
+ \set@slideskip{#2}}
+\def\slide@@setsize#1#2#3#4{%
+ \slide@setsize{#1}{#2}{#3}{#4}\slidedisplayskips}
+\def\set@slideskip#1{%
+ \normallineskiplimit=#1
+ \advance\normallineskiplimit-\normalbaselineskip
+ \multiply\normallineskiplimit-1
+ \normallineskiplimit\slideskip\normallineskiplimit
+ \ifdim\normallineskiplimit<1pt\normallineskiplimit=1pt\fi
+ \normallineskip=\normallineskiplimit
+ minus \slideshrink\normallineskiplimit
+ \dimen@=\normalbaselineskip
+ \normalbaselineskip=\dimen@ minus \slideshrink\normallineskiplimit
+ \normalbaselines}
+\def\slideskip{.75}
+\def\slideshrink{.25}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\slidedisplayskips}
+% "\slidedisplayskips" sets the displays skips to smaller values than they
+% would usually have in the "article" document style.
+% \begin{macrocode}
+\def\slidedisplayskips{%
+ \abovedisplayskip 1.75ex minus .35ex
+ \belowdisplayskip \abovedisplayskip
+ \abovedisplayshortskip .2ex minus .2ex
+ \belowdisplayshortskip 1ex minus .2ex}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\sem@ptsize}
+% \begin{macrocode}
+\def\sem@ptsize#1{%
+ \@nameuse{#1@semptsize}%
+ \large\normalsize
+ \leftmargini\slideleftmargini\relax
+ \leftmarginii\slideleftmarginii\relax
+ \leftmarginiii\slideleftmarginiii\relax
+ \labelsep\slidelabelsep\relax
+ \parskip\slideparskip\relax
+ \parindent\slideparindent\relax
+ \slide@rightskip
+ \slide@listi
+ \skip\footins\slidefootins\relax
+ \footnotesep\slidefootnotesep\relax}
+\def\slidefootins{2ex minus .8ex}
+\def\slidefootnotesep{1.2ex}
+\def\slideparindent{\z@}
+\def\slideparskip{1ex minus .2ex}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\8@semptsize}
+% \begin{macrocode}
+\@namedef{8@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{9.5pt}\viiipt\@viiipt}%
+ \def\small{\slide@@setsize\small{8pt}\viipt\@viipt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{8pt}\vipt\@vipt}%
+ \def\scriptsize{\slide@setsize\scriptsize{7pt}\vipt\@vipt}%
+ \def\tiny{\slide@setsize\tiny{6pt}\vpt\@vpt}%
+ \def\large{\slide@setsize\large{12pt}\xpt\@xpt}%
+ \def\Large{\slide@setsize\Large{14pt}\xiipt\@xiipt}%
+ \def\LARGE{\slide@setsize\LARGE{17pt}\xivpt\@xivpt}%
+ \def\huge{\slide@setsize\huge{20pt}\xviipt\@xviipt}%
+ \def\Huge{\slide@setsize\Huge{25pt}\xxpt\@xxpt}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\9@semptsize}
+% \begin{macrocode}
+\@namedef{9@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{11pt}\ixpt\@ixpt}%
+ \def\small{\slide@@setsize\small{9.5pt}\viiipt\@viiipt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{8pt}\viipt\@viipt}%
+ \def\scriptsize{\slide@setsize\scriptsize{7pt}\vipt\@vipt}%
+ \def\tiny{\slide@setsize\tiny{6pt}\vpt\@vpt}%
+ \def\large{\slide@setsize\large{12pt}\xpt\@xpt}%
+ \def\Large{\slide@setsize\Large{14pt}\xiipt\@xiipt}%
+ \def\LARGE{\slide@setsize\LARGE{17pt}\xivpt\@xivpt}%
+ \def\huge{\slide@setsize\huge{20pt}\xviipt\@xviipt}%
+ \def\Huge{\slide@setsize\Huge{25pt}\xxpt\@xxpt}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\10@semptsize}
+% \begin{macrocode}
+\@namedef{10@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{12pt}\xpt\@xpt}%
+ \def\small{\slide@@setsize\small{11pt}\ixpt\@ixpt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{9.5pt}\viiipt\@viiipt}%
+ \def\scriptsize{\slide@setsize\scriptsize{8pt}\viipt\@viipt}%
+ \def\tiny{\slide@setsize\tiny{6pt}\vpt\@vpt}%
+ \def\large{\slide@setsize\large{14pt}\xiipt\@xiipt}%
+ \def\Large{\slide@setsize\Large{18pt}\xivpt\@xivpt}%
+ \def\LARGE{\slide@setsize\LARGE{22pt}\xviipt\@xviipt}%
+ \def\huge{\slide@setsize\huge{25pt}\xxpt\@xxpt}%
+ \def\Huge{\slide@setsize\Huge{30pt}\xxvpt\@xxvpt}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\11@semptsize}
+% \begin{macrocode}
+\@namedef{11@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{13.6pt}\xipt\@xipt}%
+ \def\small{\slide@@setsize\small{12pt}\xpt\@xpt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{11pt}\ixpt\@ixpt}%
+ \def\scriptsize{\slide@setsize\scriptsize{9.5pt}\viiipt\@viiipt}%
+ \def\tiny{\slide@setsize\tiny{7pt}\vipt\@vipt}%
+ \def\large{\slide@setsize\large{14pt}\xiipt\@xiipt}%
+ \def\Large{\slide@setsize\Large{18pt}\xivpt\@xivpt}%
+ \def\LARGE{\slide@setsize\LARGE{22pt}\xviipt\@xviipt}%
+ \def\huge{\slide@setsize\huge{25pt}\xxpt\@xxpt}%
+ \def\Huge{\slide@setsize\Huge{30pt}\xxvpt\@xxvpt}}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\12@semptsize}
+% \begin{macrocode}
+\@namedef{12@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{14.5pt}\xiipt\@xiipt}%
+ \def\small{\slide@@setsize\small{13.6pt}\xipt\@xipt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{12pt}\xpt\@xpt}%
+ \def\scriptsize{\slide@setsize\scriptsize{9.5pt}\viiipt\@viiipt}%
+ \def\tiny{\slide@setsize\tiny{7pt}\vipt\@vipt}%
+ \def\large{\slide@setsize\large{18pt}\xivpt\@xivpt}%
+ \def\Large{\slide@setsize\Large{22pt}\xviipt\@xviipt}%
+ \def\LARGE{\slide@setsize\LARGE{25pt}\xxpt\@xxpt}%
+ \def\huge{\slide@setsize\huge{30pt}\xxvpt\@xxvpt}%
+ \let\Huge\huge}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\14@semptsize}
+% \begin{macrocode}
+\@namedef{14@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{18pt}\xivpt\@xivpt}%
+ \def\small{\slide@@setsize\small{14.5pt}\xiipt\@xiipt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{13.6pt}\xipt\@xipt}%
+ \def\scriptsize{\slide@setsize\scriptsize{12pt}\xpt\@xpt}%
+ \def\tiny{\slide@setsize\tiny{9.5pt}\viiipt\@viiipt}%
+ \def\large{\slide@setsize\large{22pt}\xviipt\@xviipt}%
+ \def\Large{\slide@setsize\Large{25pt}\xxpt\@xxpt}%
+ \def\LARGE{\slide@setsize\LARGE{30pt}\xxvpt\@xxvpt}%
+ \let\huge\LARGE
+ \let\Huge\LARGE}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\17@semptsize}
+% \begin{macrocode}
+\@namedef{17@semptsize}{%
+ \def\@normalsize{\slide@@setsize\normalsize{22pt}\xviipt\@xviipt}%
+ \def\small{\slide@@setsize\small{18pt}\xivpt\@xivpt}%
+ \def\footnotesize{\slide@@setsize\footnotesize{14.5pt}\xiipt\@xiipt}%
+ \def\scriptsize{\slide@setsize\scriptsize{13.6pt}\xipt\@xipt}%
+ \def\tiny{\slide@setsize\tiny{12pt}\xpt\@xpt}%
+ \def\large{\slide@setsize\large{25pt}\xxpt\@xxpt}%
+ \def\Large{\slide@setsize\Large{30pt}\xxvpt\@xxvpt}%
+ \let\LARGE\Large
+ \let\huge\Large
+ \let\Huge\Large}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{The $\setminus$twoup macro}
+%
+% \begin{macro}{\twoup}
+% See "2up.sty" for details.
+% \begin{macrocode}
+\def\twoup{\@ifnextchar[{\@twoup}{\@twoup[0]}}
+\ifarticle
+ \ifportrait
+ \def\@twoup[#1]{%
+ \@tempcnta=\the@articlemag\relax
+ \@tempcntb=\@tempcnta
+ \advance\@tempcntb by #1\relax
+ \advance\@tempcntb by -2\relax
+ \ifnum\@tempcntb>-6\relax
+ \@@input 2up.tex
+ \source{\@magstep\@tempcnta}{\paperheight}{\paperwidth}%
+ \target{\@magstep\@tempcntb}{\paperwidth}{\paperheight}%
+ \targetlayout{topbottom}%
+ \printlandscapefalse
+ \else
+ \@seminarerr{Article magnification is too low for
+ \string\twoup\space to handle}\@eha
+ \fi
+ \def\articlemag##1{\@semtwoupmagerr\articlemag}}
+ \else
+ \def\@twoup[#1]{%
+ \@tempcnta=\the@articlemag\relax
+ \@tempcntb=\@tempcnta
+ \advance\@tempcntb by #1\relax
+ \advance\@tempcntb by -2\relax
+ \ifnum\@tempcntb>-6\relax
+ \@@input 2up.tex
+ \source{\@magstep\@tempcnta}{\paperwidth}{\paperheight}%
+ \target{\@magstep\@tempcntb}{\paperheight}{\paperwidth}%
+ \if@twoside
+ \targetlayout{twosided}%
+ \fi
+ \printlandscapetrue
+ \else
+ \@seminarerr{Article magnification is too low for
+ \string\twoup\space to handle}\@eha
+ \fi
+ \def\articlemag##1{\@semtwoupmagerr\articlemag}}
+ \fi
+\else
+ \ifportrait
+ \def\@twoup[#1]{%
+ \@tempcnta=\the@slidesmag\relax
+ \@tempcntb=\@tempcnta
+ \advance\@tempcntb by #1\relax
+ \advance\@tempcntb by -3\relax
+ \ifnum\@tempcntb>-6\relax
+ \@@input 2up.tex
+ \source{\@magstep\@tempcnta}{\paperwidth}{\paperheight}%
+ \advance\@tempcnta by -3
+ \target{\@magstep\@tempcnta}{\paperheight}{\paperwidth}%
+ \printlandscapetrue
+ \else
+ \@seminarerr{Slides magnification is too low for
+ \string\twoup\space to handle}\@eha
+ \fi
+ \def\slidesmag##1{\@semtwoupmagerr\slidesmag}}
+ \else
+ \def\@twoup[#1]{%
+ \@tempcnta=\the@slidesmag\relax
+ \@tempcntb=\@tempcnta
+ \advance\@tempcntb by #1\relax
+ \advance\@tempcntb by -3\relax
+ \ifnum\@tempcntb>-6\relax
+ \@@input 2up.tex
+ \source{\@magstep\@tempcnta}{\paperheight}{\paperwidth}%
+ \target{\@magstep\@tempcntb}{\paperwidth}{\paperheight}%
+ \targetlayout{topbottom}%
+ \printlandscapefalse
+ \else
+ \@seminarerr{Slides magnification is too low for
+ \string\twoup\space to handle}\@eha
+ \fi
+ \def\slidesmag##1{\@semtwoupmargerr\slidesmag}}%
+ \fi
+\fi
+\def\@semtwoupmagerr#1{%
+ \@seminarerr{\string#1 must come before \string\twoup}\@eha}
+\addto@preamblecmds{\twoup\do\@twoup}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \section{Configuration file}
+%
+% \begin{macrocode}
+\openin1 seminar.con
+\ifeof1\else\closein1 \relax\@@input seminar.con\fi
+% \end{macrocode}
+%
+\endinput
+% END: seminar.doc
diff --git a/Master/texmf-dist/doc/latex/seminar/semlayer.doc b/Master/texmf-dist/doc/latex/seminar/semlayer.doc
new file mode 100644
index 00000000000..6cb020b8ea2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/semlayer.doc
@@ -0,0 +1,271 @@
+% BEGIN semlayer.doc
+%%
+\def\fileversion{1.0}
+\def\filedate{93/04/01}
+%%
+%% LaTeX style option `semlayer.sty'.
+%% For use with LaTeX v2.09 and the `seminar' document style.
+%%
+%% 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 is `semlayer.doc', which contains the documented code for
+% `semlayer.sty'. You can use it in this form as the input file
+% `semlayer.sty'. You can also create a stripped input file using
+% sem-make.tex. You can print the documented code using sem-code.tex.
+% sem-make.tex and sem-code.tex are distributed with seminar.sty.
+% **************************************************************************
+%
+% \EndDocPreamble
+%
+% \CheckSum{276}
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+%
+% \section{Overlays}
+%
+% The main thing that the "\process@slide" macro does is successively send the
+% main slide and then each overlay and layer to a slide output routine. In
+% order to make the definition of that macro easier to understand, we first
+% set up the overlays interface.
+%
+% Overlays must be implemented by some extra macros, such as in
+% "semcolor.sty". Specifically, the commands "\@overlay" and "\make@overlay"
+% should be defined.
+%
+% The reason for including the interface in "seminar.sty" is to encourage
+% those who implement overlays to use a uniform interface, and to illustrate
+% how overlays work. To be honest, though, it may not be possible to implement
+% overlays without PostScript or a graphics language with similar capabilities
+% using the interface that is defined here and without rewriting the basic
+% slides macros.
+%
+% This system of overlays is so good and the system using invisible fonts is
+% so lousy, that no special provisions have been made for supporting the
+% latter. Actually, overlay should (and could easily) be implemented as \TeX{}
+% primitives, saving everyone a lot of trouble.
+%
+% The system for overlays is not explained here in great detail. See
+% "semcolor.sty" and "pstricks.tex" for an example of how overlays can be
+% implemented.
+%
+% \begin{macrocode}
+\addto@hook\before@newslide{%
+ \global\def\overlay@list{}%
+ \setcounter{overlay}{0}}
+% \end{macrocode}
+%
+% \begin{macro}{\process@slide,\overlay@loop,\layer@loop}
+% "\process@slide" is the beginning of the ``output'' routine for slides.
+% "\@slidebox" is copied to "\@@slidebox". The "\make@overlay#1" macro should
+% set "\@slidebox" to the contents of "\@@slidebox", but with only the
+% material for overlay "#1" visible.
+% \begin{macrocode}
+\newbox\@@slidebox
+\def\process@@slide{%
+ \ifx\overlay@list\@empty
+ \finish@slide
+ \output@slide
+ \else
+ \setbox\@@slidebox\box\@slidebox
+ \make@overlay{0}%
+ \finish@slide
+ \output@slide
+ {\let\theoverlay\theslide\layer@loop{0}}%
+ \overlay@loop
+ \fi}
+\def\overlay@loop{%
+ \begingroup
+ \overlay@prep
+ \c@overlay=1
+ \@whilenum\c@overlay<10
+ \do{%
+ \test@member{\the\c@overlay}{\overlay@list}%
+ \if@test
+ \make@overlay{\the\c@overlay}%
+ \finish@slide
+ \output@slide
+ \fi
+ \layer@loop{\the\c@overlay}%
+ \advance\c@overlay by 1}%
+ \endgroup}
+\def\layer@loop#1{%
+ \begingroup
+ \layer@prep
+ \@for\currlayer:=\layer@list\do{%
+ \test@member{#1-\currlayer}{\overlay@list}%
+ \if@test
+ \make@overlay{#1-\currlayer}%
+ \finish@slide
+ \output@slide
+ \fi}%
+ \endgroup}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\layer@prep,\overlay@prep}
+% \begin{macrocode}
+\def\layer@prep{%
+ \ifarticle\pagestyle{\layer@pagestyle}\fi
+ \let\thepage\thelayer
+ \ifx\thelayerframe\@empty\else\let\theslideframe\thelayerframe\fi
+ \let\slidelabel\layerlabel}
+\def\overlay@prep{%
+ \ifarticle\pagestyle{\overlay@pagestyle}\fi
+ \let\thepage\theoverlay
+ \ifx\theoverlayframe\@empty\else\let\theslideframe\theoverlayframe\fi
+ \let\slidelabel\overlaylabel}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\layerframe,\overlayframe}
+% \begin{macrocode}
+\def\layerframe{\@slideframe{layer}}
+\def\overlayframe{\@slideframe{overlay}}
+\def\thelayerframe{}
+\def\theoverlayframe{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\overlaylabel,\layerlabel}
+% \begin{macrocode}
+\def\overlaylabel{\bf Overlay \theoverlay}
+\def\layerlabel{\bf Layer \thelayer}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\theoverlay,\thelayer}
+% \begin{macrocode}
+\newcounter{overlay}
+\def\theoverlay{\theslide-\alph{overlay}}
+\def\currlayer{}
+\def\thelayer{\theoverlay-\currlayer}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\ifoverlays,\iflayers}
+% Overlays and layers can be turned on and off independently.
+% \begin{macrocode}
+\newif\ifoverlays
+\newif\iflayers
+\@ifundefined{@overlay}%
+ {\let\@overlay\relax}%
+ {\ifarticle\else\overlaystrue\layerstrue\fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\nooverlays@err,\@overlay}
+% "\@overlay" is set to "\relax" if it is not defined, for easy error
+% detection.
+% \begin{macrocode}
+\def\nooverlays@err{%
+ \@seminarerr{You need to use additional macros for overlays,
+ e.g., semcolor.sty}\@ehd
+ \global\overlaysfalse
+ \global\layersfalse}
+\@ifundefined{@overlay}{}{}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\overlay}
+% The "\overlay" command starts by checking that the argument is a number
+% between 0 and 9. If so, "\@overlay" is invoked. Except for overlay 0, the
+% counter for cross-references is set to "overlay", and its value is set to
+% the argument of "\overlay".
+% \begin{macrocode}
+\def\overlay#1{%
+ \ifoverlays\ifx\@overlay\relax\nooverlays@err\fi\fi
+ \ifslide
+ \@tempcnta=#1
+ \@testfalse
+ \ifnum\@tempcnta>-1 \ifnum\@tempcnta<10 \@testtrue\fi\fi
+ \if@test
+ \c@overlay=\@tempcnta
+ \ifnum\c@overlay=0
+ \advance\c@slide by -1
+ \refstepcounter{slide}%
+ \else
+ \advance\c@overlay by -1
+ \refstepcounter{overlay}%
+ \ifoverlays
+ \xdef\overlay@list{\overlay@list,\the\c@overlay}%
+ \fi
+ \fi
+ \ifoverlays
+ \@overlay{\the\c@overlay}%
+ \fi
+ \else
+ \@seminarerr{\string\overlay\space argument must be
+ an integer between 0 and 9}\@eha
+ \fi
+ \else
+ \@seminarerr{\string\overlay\space can only be used
+ in slide environments}\@eha
+ \fi
+ \ignorespaces}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\colorlayers}
+% Color layers use the same mechanism as overlays; only the interface differs.
+% \begin{macrocode}
+\def\colorlayers#1{%
+ \edef\@tempc{#1}%
+ \edef\layer@list{\layer@list,#1}%
+ \def\@tempa##1{%
+ \@namedef{##1}{%
+ \iflayers\ifx\@overlay\relax\nooverlays@err\fi\fi
+ \ifslide
+ \iflayers
+ \xdef\overlay@list{\overlay@list,\the\c@overlay-##1}%
+ \@overlay{\the\c@overlay-##1}%
+ \fi
+ \else
+ \@seminarerr{Color layer `##1' can only be used in
+ slide environments}\@eha
+ \fi}}
+ \@for\@tempb:=\@tempc\do{%
+ \expandafter\@tempa\expandafter{\@tempb}}}
+\def\layer@list{}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\layerpagestyle,\overlaypagestyle}
+% \begin{macrocode}
+\def\overlaypagestyle#1{\@ifgoodps{#1}{\edef\overlay@pagestyle{#1}}}
+\def\layerpagestyle#1{\@ifgoodps{#1}{\edef\layer@pagestyle{#1}}}
+\overlaypagestyle{}
+\layerpagestyle{}
+% \end{macrocode}
+% \end{macro}
+%
+\endinput
+% END semlayer.doc
diff --git a/Master/texmf-dist/doc/latex/seminar/semsamp1.pdf b/Master/texmf-dist/doc/latex/seminar/semsamp1.pdf
new file mode 100644
index 00000000000..e548df3311c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/semsamp1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/seminar/semsamp2.pdf b/Master/texmf-dist/doc/latex/seminar/semsamp2.pdf
new file mode 100644
index 00000000000..75af2fe6fc8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/seminar/semsamp2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/seminar/semsamp2.tex b/Master/texmf-dist/doc/latex/seminar/semsamp2.tex
index 0cb70611611..b332a31414a 100644
--- a/Master/texmf-dist/doc/latex/seminar/semsamp2.tex
+++ b/Master/texmf-dist/doc/latex/seminar/semsamp2.tex
@@ -26,8 +26,8 @@
slidesonly,% Try notes or notesonly instead.
%notes,% Use instead of slidesonly to typeset the notes.
%notesonly,% Use instead of slidesonly to typeset notes and slides.
- %semcolor,% Try me if using PSTricks.
- %semrot,% Try me if using Rokicki's dvips.
+ semcolor,% Try me if using PSTricks.
+ semrot,% Try me if using Rokicki's dvips.
%semhelv,% Try me if using a PostScript printer.
%article,% Try me.
%portrait,% Try me.
@@ -47,7 +47,7 @@
%\onlyslides{\ref{questions}-7,1} %Try me: Only these slides are included.
%\onlynotestoo %Try me: For selecting notes as well.
-\colorlayers{red,blue} % Try deleting this if using the semcolor option,
+%\colorlayers{red,blue} % Try deleting this if using the semcolor option,
% to get \blue and \red to use PostScript color.
%\overlaysfalse % Suppress overlays with semcolor option.
@@ -60,8 +60,8 @@
\author{Policarpa Salabarrieta}
\date{July 21, 1991}
-\newcommand{\sref}[1]{SLIDE \ref{#1}}
-\newcommand{\heading}[1]{\begin{center}\large\bf #1\end{center}}
+\newcommand\sref[1]{SLIDE \ref{#1}}
+\newcommand\heading[1]{\begin{center}\large\bf #1\end{center}}
\newpagestyle{MH}%
{University of Guaduas, March 13, 1998\hfil\thepage}{}
@@ -157,7 +157,7 @@ and ruffling through the papers.
\heading{Questions}
\begin{itemize}
- {\overlay1\item When could {\blue there be overload} in networks?}
+ {\overlay1 \item When could {\blue there be overload} in networks?}
\item What mechanims make the receivers and senders better off?
\item How does the welfare {\red of the senders} and receivers depend on the
cost of communication?
diff --git a/Master/texmf-dist/doc/latex/seminar/tvz-code.sty b/Master/texmf-dist/doc/latex/seminar/tvz-code.sty
deleted file mode 100644
index 68a52701aa9..00000000000
--- a/Master/texmf-dist/doc/latex/seminar/tvz-code.sty
+++ /dev/null
@@ -1,291 +0,0 @@
-%% BEGIN tvz-code.sty
-%% 93/04/01
-%% Tim Van Zandt Timothy.VAN-ZANDT@insead.edu
-%%
-%% Lousy hacks for typesetting the documented code for the
-%%
-%% 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.
-%%
-%% seminar.sty and PSTricks packages.
-
-\input tvz-hax.sty
-\input doc.sty % Tested with v1.7k
-\input art11.sty
-
-
-%%%%%%%%%%%%%%%%%%% PAGE PARAMETERS %%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Paragraphs are marked by space rather than indentation:
-\parindent 0pt
-\parskip 4pt plus 1pt minus 1pt
-
-% Textwidth just wide enough for 78 characters of code.
-\setbox\@tempboxa=\hbox{\small\tt f}
-\textwidth 78\wd\@tempboxa
-\oddsidemargin\paperwidth\relax
-\advance\oddsidemargin -\textwidth
-\divide\oddsidemargin 2
-\advance\oddsidemargin -1in
-\setbox\@tempboxa=\hbox{\tiny 999\ }
-\advance\oddsidemargin\wd\@tempboxa
-\evensidemargin\oddsidemargin
-
-\if@twoside
- \advance\oddsidemargin .3in
- \advance\evensidemargin -.3in
-\fi
-
-% No headers, 1in top margin
-\topmargin 0pt
-\headheight 0pt
-\headsep 0pt
-
-% Total bottom margin 1in, text height 9in
-\textheight 9in
-\footskip .625in
-
-% Now adjust for different paper size:
-\@tempdima=\paperheight
-\advance\@tempdima-11in
-\divide\@tempdima 2
-\advance\topmargin \@tempdima
-
-% Marginal notes always on left.
-\marginparwidth 3.5cm
-\marginparsep .5cm
-\reversemarginpar
-
-
-%%%%%%%%%%%%%%%%%%% MACROCODE PATCH FOR SHORT META %%%%%%%%%%%
-
-\expandafter\def\expandafter\macrocode\expandafter{%
- \expandafter\DeleteShortMeta
- \macrocode}
-
-%%%%%%%%%%%%%%%%%%%% DOC PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\newbox\junkbox
-\def\DocInput#1{%
- \MakePercentIgnore
- \setbox\junkbox=\hbox\bgroup
- \input{#1}%
- \MakePercentComment}
-\let\EndDocPreamble\egroup
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%% VERBATIM %%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Use fancybox.sty's LVerbatim environment. Each line should contain
-% percent plus three spaces (or other char), including blank lines. E.g.,
-% \begin{LVerbatim}
-% foo
-% bar
-% \end{LVerbatim}
-
-\def\EveryVerbatimLine#1#2#3#4{}
-\begingroup
- \catcode`\%=12
- \catcode`\ =\active
- \global\EndVerbatimTokens{% }
-\endgroup
-\AltGetVerbatim
-
-
-%%%%%%%%%%%%%%%%%% INDEXING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Things are faster without \MakeIndex
-
-\def\MakeIndex{\makeindex\EnableCrossrefs}
-\DisableCrossrefs
-
-% Use \codelabel[int]{foo} to label last line of code plus int.
-% E.g., to label first and then last line of some code:
-% \codelabel[1]{foo}
-% \begin{macrocode}
-% foo
-% bar
-% \end{macrocode}
-% \codelabel{foo}
-
-\def\codelabel{\@ifnextchar[{\@codelabel}{\@codelabel[0]}}
-\def\@codelabel[#1]#2{%
- \@bsphack
- \begingroup
- \advance\c@CodelineNo #1
- \def\@currentlabel{\the\c@CodelineNo}%
- \label{#2}%
- \endgroup
- \@esphack}
-
-% Definitions in code are indexed by page number, but other occurences
-% are indexed by the line of code.
-
-\CodelineIndex
-\def\SpecialMainPageIndex#1{%
- {\let\special@index\index\SpecialMainIndex{#1}}}
-\renewcommand{\theCodelineNo}{{\rm\tiny\arabic{CodelineNo}}}
-
-% Index numbers for main definitions are set in bold rather than underlined.
-
-\def\main#1{{\bf #1}}
-
-% two column index
-
-\setcounter{IndexColumns}{2}
-
-% Customize index prologue:
-
-\def\index@prologue{%
- \section*{Index}\markboth{Index}{Index}%
- \addcontentsline{toc}{section}{Index}%
- The {\bf bold} numbers denote the pages where the entries are defined,
- and all other numbers indicate the {\em lines of code} where
- the entries are used.}
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%% MACRO %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% A change to the macro environment; prints macro names within the margins
-% of the text, instead of as marginal notes. Use one \macro command,
-% with comma separated macro names.
-
-\newif\iffirst@macroname
-\newif\ifnestedmacro
-
-\def\macro{%
- \ifnum\macro@level=\z@
- \def\next{\MakePrivateLetters \m@cro@}%
- \else
- \def\next{\@latexerr{Nested \string\begin{macro}}\@eha
- \endgroup\end{macro}\macro@level=\z@\begin{macro}}
- \fi
- \next}
-\def\m@cro@#1{%
- \first@macronametrue
- \m@@cro@@#1,\@nil,}
-\def\m@@cro@@#1,{%
- \def\@tempa{#1}\def\@tempb{\@nil}%
- \ifx\@tempa\@tempb
- \let\next\finishm@@cro@@
- \else
- {\advance\c@CodelineNo\@ne\SpecialMainPageIndex{#1}\nobreak}%
- \DoNotIndex{#1}%
- \iffirst@macroname
- \edef\saved@macronames{\string#1}%
- \first@macronamefalse
- \else
- \def\comma{\noexpand\comma}%
- \edef\saved@macronames{\saved@macronames\comma\string#1}%
- \fi
- \let\next\m@@cro@@
- \fi
- \next}
-\def\finishm@@cro@@{%
- \advance\macro@level\@ne
- \def\comma{{\rm, }}%
- \ListMacroNames{\saved@macronames}}
-
-\let\endmacro\relax
-
-\def\ListMacroNames{%
- \@startsection{subsubsection}{3}{\z@}{-2.25ex plus -.5ex minus-.2ex}%
- {1.3ex plus.2ex}{\csname reset@font\endcsname\large\tt}*}
-
-\MacroIndent 0pt
-
-\def\MacroFont{\small\tt}
-
-
-%%%%%%%%%%%%%%%%%%%%% DoNot Index %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\DoNotIndex{\ ,\!,\[,\\,\],\^,\`,\{,\},\~}
-\DoNotIndex{\@warning,\active}
-\DoNotIndex{\begingroup,\catcode,\char,\csname,\def,\do}
-\DoNotIndex{\docdate,\dospecials,\edef,\else,\endcsname,\endgroup}
-\DoNotIndex{\expandafter,\fi,\filedate,\fileversion}
-\DoNotIndex{\gdef,\if,\ifcat}
-\DoNotIndex{\ifx,\immediate,\lccode,\let}
-\DoNotIndex{\lowercase,\next,\noexpand}
-\DoNotIndex{\relax,\space,\the}
-\DoNotIndex{\toks@,\typeout,\write}
-\DoNotIndex{\@M,\@arabic,\@author,\@auxout,\@bsphack,\@car,\@date}
-\DoNotIndex{\@dblarg,\@dblfloat,\@eha,\@empty,\@esphack,\@evenfoot}
-\DoNotIndex{\@evenhead,\@float,\@gobble,\@gobbletwo,\@gtempa,\@ifnextchar}
-\DoNotIndex{\@ifundefined,\@ixpt,\@latexerr,\@listI,\@listi,\@listii}
-\DoNotIndex{\@listiii,\@listiv,\@listv,\@listvi,\@makefnmark,\@mkboth}
-\DoNotIndex{\@namedef,\@nameuse,\@mne,\@nil,\@normalsize,\@oddfoot}
-\DoNotIndex{\@oddhead,\@tempa,\@tempb,\@tempc,\@tempd}
-\DoNotIndex{\@tempdima,\@testfalse,\@testtrue,\test@member}
-\DoNotIndex{\@thanks,\@thefnmark,\@title}
-\DoNotIndex{\@topnum,\@viiipt,\@viipt,\@vipt,\@vpt,\@xiipt}
-\DoNotIndex{\@xipt,\@xpt,\@xivpt,\@xviipt,\@xxpt,\@xxvpt}
-\DoNotIndex{\addcontentsline}
-\DoNotIndex{\advance,\aftergroup,\baselinestretch,\begin}
-\DoNotIndex{\belowdisplayshortskip,\belowdisplayskip,\bf,\bgroup}
-\DoNotIndex{\box,\c@@page,\c@page,\c@secnumdepth,\clearpage,\columnsep}
-\DoNotIndex{\columnwidth,\copy,\dimen@,\dimen@i,\dimen@ii,\divide}
-\DoNotIndex{\dp,\ds@article,\ds@notes,\ds@notesonly}
-\DoNotIndex{\ds@slidesonly,\egrou,\end,\end@dblfoloat,\end@float}
-\DoNotIndex{\endinput,\fnsymbol,\footheight,\footnotesep,\footskip}
-\DoNotIndex{\global,\globaldefs,\hbox,\headheight,\headsep,\hfil}
-\DoNotIndex{\hrule,\hskip,\hss,\ht,\Huge,\huge}
-\DoNotIndex{\if@filesw,\if@test,\if@twocolumn,\if@twoside}
-\DoNotIndex{\ifcase,\ifdim,\ifvmode,\ignorespaces}
-\DoNotIndex{\input,\interlinepenalty,\itemsep,\ixpt,\label}
-\DoNotIndex{\labelsep,\labelwidth,\LARGE,\large,\Large}
-\DoNotIndex{\leavevmode,\leftmargin,\leftmargini,\leftmarginii}
-\DoNotIndex{\leftmarginiii,\leftmarginiv,\leftmarginv}
-\DoNotIndex{\leftmarginvi,\leftmark,\leftskip,\lineskip}
-\DoNotIndex{\magstep,\marginparsep,\marginparwidth,\markboth}
-\DoNotIndex{\markright,\medbreak,\multiply,\newbox,\newcount}
-\DoNotIndex{\newcounter,\newdimen,\newif,\newlabel,\newpage}
-\DoNotIndex{\newtoks,\nobreak,\nointerlineskip,\normallineskip}
-\DoNotIndex{\normalsize,\null,\number,\numberline,\oddsidemargin}
-\DoNotIndex{\offinterlineskip,\or,\par,\parbox,\parskip,\partopsep}
-\DoNotIndex{\prevdepth,\protect,\ref,\refstepcounter,\rightmrk}
-\DoNotIndex{\rm,\scriptsize,\section,\sectionmark,\setbox,\setcounter}
-\DoNotIndex{\sl,\small,\stepcounter,\string,\textheight,\textwidth}
-\DoNotIndex{\thefootnote,\thepage,\thesection,\thesubsection}
-\DoNotIndex{\thispagestyle,\tiny,\topmargin,\topsep,\uppercase}
-\DoNotIndex{\vbox,\vfill,\viiipt,\viipt,\vipt,\vpt,\vskip,\vss}
-\DoNotIndex{\wd,\xcommentloaded@,\xdef,\xiipt,\xipt,\xivpt,\xpt}
-\DoNotIndex{\xviipt,\xxpt,\xxvpt,\z@}
-\DoNotIndex{\abovedisplayskip,\abovedisplayshortskip,\@currentlabel}
-\DoNotIndex{\@dottedtocline,\@ne\@setsize,\@starttoc,\@tempboxa,\@}
-\DoNotIndex{\arraystretch,\centerline,\egroup,\end@dblfloat}
-\DoNotIndex{\evensidemargin,\footnotesize,\ifnum,\parindent,\parsep}
-\DoNotIndex{\rightmark,\@afterindenttrue,\@ne,\if@specialpage.\long}
-\DoNotIndex{\fboxrule,\fboxsep,\@for,\vfil}
-\DoNotIndex{\@@fortmp,\@@tempa,\@@tempb,\@ehd,\@for,\@fortmp,\@m}
-\DoNotIndex{\@mparswitchfalse,\@mparswitchtrue,\@nnil,\@spaces}
-\DoNotIndex{\@specialstyle,\@temptokena,\@twosidefalse,\@twosidetrue}
-\DoNotIndex{\@whilenum,\alph,\arabic,\count@,\errhelp,\errmessage}
-\DoNotIndex{\fbox,\index,\minipage,\newcommand,\overfullrule}
-\DoNotIndex{\pagestyle,\raggedright,\ref@stepcounter,renewcommand}
-\DoNotIndex{\semcolor@loaded,today,\@tempcnta,\@tempcntb,\trivlist,\t,\p}
-\DoNotIndex{\today,\item,\@colht,\@currenvir,\@thefoot,\@thehead}
-\DoNotIndex{\@totalleftmargin,\allowbreak,\@captype,\@footnotetext}
-\DoNotIndex{\@listdepth,\@minipagefalse,\@minipagetrue,\@mpfn,\@mpfootins}
-\DoNotIndex{\endtrivlist,\everypar,\hsize,\ifvoid,\lastskip}
-\DoNotIndex{\linewidth,\skip,\thempfn,\thempfootnote,\topskip,\unvbox}
-\DoNotIndex{\@@input,\@@par,\@acci,\@accii,\@acciii,\@cclv,\@height}
-\DoNotIndex{\@maxdepth,\@tempdimb,\@tempg,\@temph,\@texttop,\@twocolumnfalse}
-\DoNotIndex{\@xfloat,\addvspace,\alloc@,\bigskipamount,\botmark,\chardef}
-\DoNotIndex{\closein,\closeout,\count,\countdef,\dimen,\glossary,\goodbreak}
-\DoNotIndex{\insc@unt,\intextsep,\kern,\mag,\marginpar,\maxdepth,\medskip}
-\DoNotIndex{\moveleft,\newinsert,\newskip,\onecolumn,\openin,\openout}
-\DoNotIndex{\read,\renewcommand,\repeat,\rightskip,\strut,\vfuzz,\voffset}
-\DoNotIndex{\vsize}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\endinput
-
-%% END tvz-code.sty
diff --git a/Master/texmf-dist/doc/latex/seminar/tvz-hax.sty b/Master/texmf-dist/doc/latex/seminar/tvz-hax.sty
deleted file mode 100644
index f8a4798fccb..00000000000
--- a/Master/texmf-dist/doc/latex/seminar/tvz-hax.sty
+++ /dev/null
@@ -1,266 +0,0 @@
-%% BEGIN tvz-hax.sty
-%% 93/04/01
-%% Tim Van Zandt Timothy.VAN-ZANDT@insead.edu
-%%
-%% These are some lousy hacks for typesetting the code
-%% and User's Guide in the Seminar and PSTricks packages.
-%%
-%% 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.
-%%
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%% PAPER SIZES %%%%%%%%%%%%%%%%%%%%%%
-
-% Default paper size is 8.5in by 11in.
-% Just include the `a4' style option for A4 paper size.
-% For other paper sizes, define \paperwidth and \paperheight
-% before the \documentstyle command.
-
-\@ifundefined{paperwidth}{\def\paperwidth{8.5in}}{}
-\@ifundefined{paperheight}{\def\paperheight{11in}}{}
-\@namedef{ds@a4}{\def\paperwidth{210mm}\def\paperheight{297mm}}
-
-
-%%%%%%%%%%%%%%%%%%%% INPUTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\newif\iftwoup
-\@namedef{ds@2up}{\input 2up.tex \twouptrue}
-
-\input article.sty
-\input fancybox.sty % Version 0.93 or later.
-
-\iftwoup
- \if@twoside
- \targetlayout{twosided}
- \fi
-\fi
-
-\if@twoside
- \def\twosideclearpage{%
- \clearpage
- \ifodd\c@page\else
- \thispagestyle{empty}%
- \null\leavevmode
- \clearpage
- \fi}
-\else
- \let\twosideclearpage\clearpage
-\fi
-
-
-%%%%%%%%%%%%%%%%%%%%% MISC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\def\arraystretch{1.2}
-
-\hfuzz 1pt
-
-% Just in case I'm using AmS-LaTeX.
-\def\makeatother{\catcode`\@=12\relax}
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%% SHORT META %%%%%%%%%%%%%%%%%%%%%%%%
-
-% Works in verbatim environments, unless specially designed.
-\begingroup
- \catcode`\<=\active
- \gdef\ShortMeta{%
- \catcode`\<=\active
- \def<##1>{{\MetaFont ##1\/}}}
-\endgroup
-\def\DeleteShortMeta{\catcode`\<=12\relax}
-\def\MetaFont{\sl} % For meta arguments.
-
-%%%%%%%%%%%%%%%%%%%%%%%%%% FILE VERSIONS %%%%%%%%%%%%%%%%%%%%%
-
-% \GetVersion{file} scans first ten lines of <file> for
-% \filedate and \fileversion definitions.
-%
-% \CheckVersion{file} scans <scans> file for \filedate and \fileversion
-% and then compares these witha \FileDate and \FileVersion.
-%
-\def\GetVersion#1{%
- \immediate\openin1=#1
- \count@=0
- \let\fileversion\relax
- \let\filedate\relax
- \@testtrue
- \loop
- \if@test
- \advance\count@1
- \immediate\read1 to \@tempa
- \@tempa
- \ifnum\count@=10
- \@latexerr{Couldn't find fileversion}\@eha
- \@testfalse
- \else
- \ifx\fileversion\relax
- \@testtrue
- \else
- \ifx\filedate\relax
- \@testtrue
- \else
- \@testfalse
- \fi
- \fi
- \fi
- \repeat}
-
-\def\CheckVersion#1{%
- \GetVersion{#1}
- \ifx\FileVersion\fileversion
- \ifx\FileDate\filedate\else
- \@latexerr{Doc date (\FileDate) and file date (\filedate)
- do not match}\@eha
- \fi
- \else
- \@latexerr{Doc version (\FileVersion) and file version (\fileversion)
- do not match}\@eha
- \fi}
-
-% This expands the date, as defined in \filedate.
-
-\def\expanddate#1/#2/#3/{%
- \number#3{}
- \month=#2
- \ifcase\month\or
- January \or February \or March \or April \or May \or June \or
- July \or August \or September \or October \or November \or December
- \fi
- 19#1}
-\def\thefiledate{\expandafter\expanddate\filedate/}
-\date{\thefiledate}
-
-
-%%%%%%%%%%%%%%%%% LOGOS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\def\AmS{{\protect\the\textfont\tw@
- A\kern-.1667em\lower.5ex\hbox{M}\kern-.125em S}}
-
-\def\b@LaTeX{%
- \begingroup
- \csname reset@font\endcsname
- \rm\bf
- L\kern-.32em
- \raise.36ex\hbox{%
- \ifx\@currsize\Huge\LARGE\else
- \ifx\@currsize\huge\Large\else
- \ifx\@currsize\LARGE\large\else
- \ifx\@currsize\Large\normalsize\else
- \ifx\@currsize\large\small\else
- \ifx\@currsize\normalsize\footnotesize\else
- \ifx\@currsize\small\scriptsize\else
- \ifx\@currsize\footnotesize\scriptscriptsize
- \fi\fi\fi\fi\fi\fi\fi\fi
- \bf A}%
- \kern-.15em
- T\kern-.1667em
- \lower.7ex\hbox{E}\kern-.125em
- X%
- \endgroup}
-\def\bLaTeX{\b@LaTeX}
-
-
-%%%%%%%%%%%%%%% PAGE STYLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% The `docheadings' page style uses footers rather than headers.
-
-\def\ps@docheadings{%
- \let\@mkboth\markboth
- \def\@oddhead{}%
- \let\@evenhead\@oddhead%
- \def\@oddfoot{%
- \small\sf
- \rightmark
- \hfil
- \thepage}%
- \def\@evenfoot{%
- \small\sf
- \thepage
- \hfil
- \theheadertitle}%
- \def\sectionmark##1{\markright {##1}}}%
-\pagestyle{docheadings}
-
-
-%%%%%%%%%%%%%%%%%%%%%%%% Table of Contents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% Tighten up spacing in TOC:
-
-\newskip\tempskip
-\def\TOCshrink{.5}
-\def\TableOfContents{%
- \begin{quote}
- \begin{center} \Large\bf Contents \end{center}
- \def\numberline##1{\hbox to 0pt{\hss##1\hskip 1em}}%
- \let\oldaddvspace\addvspace
- \def\addvspace##1{%
- \tempskip##1\relax
- \oldaddvspace{\TOCshrink\tempskip}}
- \@starttoc{toc}%
- \end{quote}}
-\def\tableofcontents{%
- \clearpage
- \markright{Table of contents}%
- \TableOfContents
- \clearpage}
-
-
-%%%%%%%%%%%%%%%%%%%%%%%% code and examples %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-% `Ex' is an environment for putting samples of code.
-% It is a variant of
-% \begin{quote}\tt ... \end{quote}.
-% It is NOT verbatim.
-
-\def\NotNested{%
- \def\begin##1{%
- \@latexerr{Bad nesting of environments.
- Perhaps missing \end{\@currenvir}}\@eha
- \end{\@currenvir}%
- \begin{##1}}}
-
-\def\Ex{%
- \NotNested
- \list{}{}\item[]%
- \if@minipage\else\vskip\parskip\fi
- \leftskip\@totalleftmargin
- \rightskip\z@
- \parindent\z@
- \parskip\z@
- \parfillskip\@flushglue
- \hfuzz 1pt
- \@@par
- \global\@inlabelfalse}
-\def\endEx{\endlist}
-
-% Various things to make it easier to write code and examples:
-
-\begingroup
- \catcode`\{=12 \catcode`\}=12
- \catcode`\(=1 \catcode`\)=2
- \catcode`\+=0 \catcode`\\=12
- +gdef+|(\) % \| = character \
- +gdef+{({) % \{ = character {
- +gdef+}(}) % \} = character }
-+endgroup
-\def\Backslash{\protect\|}
-
-% Define some functional font commands:
-
-\def\MainFont{\tt} % For macro definitions.
-\def\UsageFont{\tt} % For in-line macro names.
-\def\InlineFont{\tt} % For other in-line snipets of code.
-\def\DisplayFont{\tt} % For displayed code.
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\endinput
-%% END tvz-hax.sty
diff --git a/Master/texmf-dist/doc/latex/seminar/tvz-user.sty b/Master/texmf-dist/doc/latex/seminar/tvz-user.sty
deleted file mode 100644
index f203fa2cf30..00000000000
--- a/Master/texmf-dist/doc/latex/seminar/tvz-user.sty
+++ /dev/null
@@ -1,215 +0,0 @@
-%%
-%% 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.
-%%
-%% BEGIN tvz-user.sty
-%% 93/04/01
-
-\input tvz-hax.sty
-
-\def\papersizeadjust{%
- \@tempdima=\paperwidth\relax
- \advance\@tempdima-8.5in
- \divide\@tempdima 2
- \advance\oddsidemargin\@tempdima
- \advance\evensidemargin\@tempdima
- \@tempdima=\paperheight
- \advance\@tempdima-11in
- \divide\@tempdima 2
- \advance\topmargin\@tempdima}
-
-\begingroup
- \catcode`\"=\active
- \gdef\ShortVerb{%
- \catcode`\"=\active
- \def"{\Verb"}}%
- \gdef\DeleteShortVerb{\catcode`\"=12\relax}
-\endgroup
-
-% Paragraphs are marked by large space rather than indentation:
-\setlength{\parindent}{0pt}
-\setlength{\parskip}{7pt plus 1pt minus 1pt}
-
-% Reduce \topsep:
-\def\@listI{%
- \leftmargin\leftmargini
- \parsep 5\p@ plus2.5\p@ minus\p@
- %\topsep 10\p@ plus4\p@ minus6\p@
- \topsep 5\p@ plus2\p@ minus2\p@
- \itemsep 5\p@ plus2.5\p@ minus\p@}
-\let\@listi\@listI
-\@listi
-\def\@listii{%
- \leftmargin\leftmarginii
- \labelwidth\leftmarginii
- \advance\labelwidth-\labelsep
- %\topsep 5\p@ plus2.5\p@ minus\p@
- \topsep 2\p@ plus.5\p@ minus\p@
- \parsep 2.5\p@ plus\p@ minus\p@
- \itemsep \parsep}
-\def\@listiii{%
- \leftmargin\leftmarginiii
- \labelwidth\leftmarginiii
- \advance\labelwidth-\labelsep
- %\topsep 2.5\p@ plus\p@ minus\p@
- \topsep 1\p@ plus.2\p@ minus.2\p@
- \parsep \z@
- \partopsep \p@ plus\z@ minus\p@
- \itemsep \topsep}
-
-\skip\footins 20pt plus 4pt minus 2pt
-
-%%%%%%%%%%%%%%%%%%%%%%% Special hacks for User's Guides %%%%%%%%%%%%%%%%%%%%%
-%%
-%% Listing questions
-\newcounter{faq}[section]
-\def\thefaq{\arabic{faq}}
-\let\l@faq\@gobbletwo
-\def\faq{\@startsection{faq}{2}{\z@}%
- {3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}{\faqfont}}
-\def\faqfont{\normalsize\sf}
-\def\faqmark#1{}
-%%
-%% Listing errors
-\def\error{\vskip 2ex\noindent}
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\@ifundefined{AmSTeX}
- {\def\AmSTeX{\leavevmode\hbox{$\cal A\kern-.2em\lower.376ex%
- \hbox{$\cal M$}\kern-.2em\cal S$-\TeX}}}{}
-\@ifundefined{BibTeX}
- {\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em%
- T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}}{}
-\@ifundefined{SliTeX}
- {\def\SliTeX{{\rm S\kern-.06emL\kern-.18em\raise.32ex\hbox
- {\sc i}\kern -.03em\TeX}}}{}
-\@ifundefined{PlainTeX}{\def\PlainTeX{{\sc Plain}\kern2pt\TeX}}{}
-
-%%%%%%%%%%%%%%% Special indexing for User's Guides %%%%%%%%%%%%%%%%%%%%%%%%%
-%%
-%%
-\@ifundefined{actualchar}{\def\actualchar{@}}{}
-\@ifundefined{quotechar}{\def\quotechar{"}}{}
-\@ifundefined{levelchar}{\def\levelchar{!}}{}
-\@ifundefined{encapchar}{\def\encapchar{|}}{}
-\@ifundefined{verbatimchar}{\def\verbatimchar{+}}{}
-%%
-%% These are the indexing commands:
-%%
-%% Commands: \MainIndex \UsageIndex
-%% Environments: \MainEnvIndex \UsageEnvIndex
-%% Style options: \MainOptionIndex \UsageOptionIndex
-%% Counters: \MainCntIndex \UsageCntIndex
-\def\@Index#1{\@bsphack\index{#1}\@esphack}
-\def\Index#1#2{%
- \@bsphack
- \index{\expandafter\@gobble\string#2\actualchar\string
- \verb\quotechar*\verbatimchar\string#2\verbatimchar
- \encapchar #1}}
-{\catcode`\!=0 !catcode`!\=12!gdef!special@gobble#1{!if\#1!else#1!fi}}
-\def\MainIndex{\Index{main}}
-\def\UsageIndex{\Index{usage}}
-\def\SpecialIndex#1#2#3{%
- \@Index{#3\actualchar{\tt #3} (#1)\encapchar #2}%
- \@Index{#1s:\levelchar{\tt #3}\encapchar #2}}
-\def\MainEnvIndex{\SpecialIndex{environment}{main}}
-\def\UsageEnvIndex{\SpecialIndex{environment}{usage}}
-\def\MainOptionIndex{\SpecialIndex{option}{main}}
-\def\UsageOptionIndex{\SpecialIndex{option}{usage}}
-\def\MainCntIndex{\SpecialIndex{counter}{main}}
-\def\UsageCntIndex{\SpecialIndex{counter}{usage}}
-%%
-%% Font for index page numbers:
-\def\main#1{{\bf #1}}
-\def\usage#1{{#1}}
-%%
-%% These combine various functions:
-%%
-%% Commands: \Main \Usage
-%% Environments: \MainEnv \UsageEnv
-%% Style options: \MainOption \UsageOption
-%% Counters: \MainCnt \UsageCnt
-%%
-%% The "Main" ones
-%% * Index argument.
-%% * Print argument with \MainFont
-%% * Create label +foo, e+foo or o+foo.
-%%
-%% The "Usage" ones
-%% * Index argument.
-%% * Print argument with \UsageFont.
-%%
-\def\SpecialLabel#1#2+{\label{+#2}}
-\def\LabelIndex#1{\MainIndex{#1}\expandafter\SpecialLabel\string#1+}
-\def\Main#1{%
- \MainIndex{#1}%
- \expandafter\SpecialLabel\string#1+%
- {\MainFont\string#1}}
-\def\Usage#1{\UsageIndex{#1}{\UsageFont\string#1}}
-\def\MainEnv#1{%
- \MainEnvIndex{#1}%
- \label{e+#1}%
- {\MainFont #1}}
-\def\UsageEnv#1{\UsageEnvIndex{#1}{\UsageFont #1}}
-\def\MainOption#1{%
- \MainOptionIndex{#1}%
- \label{o+#1}%
- {\MainFont #1}}
-\def\UsageOption#1{\UsageOptionIndex{#1}{\UsageFont #1}}
-\def\MainCnt#1{%
- \MainCntIndex{#1}%
- \label{c+#1}%
- {\MainFont #1}}
-\def\UsageCnt#1{\UsageCntIndex{#1}{\UsageFont #1}}
-%%
-%% These are abbreviations.
-%%
-\def\N{\Main}
-\def\n{\Usage}
-\def\E{\MainEnv}
-\def\e{\UsageEnv}
-\def\O{\MainOption}
-\def\o{\UsageOption}
-\def\C{\MainCnt}
-\def\c{\UsageCnt}
-%%
-%% This is for listing commands in a description environment.
-\def\xitem#1{\item[\Main{#1}]}
-%%
-%%
-\renewcommand{\EveryVerbatimLine}[2]{}
-\VerbatimFootnotes
-
-%% User's guide and documented code have different index prologue.
-\def\PrintUserIndex{{\let\ps@plain\@empty\@input{\jobname.ind}}}
-
-\begingroup
- \catcode`\<=1 \catcode`\>=2
- \catcode`\{=13 \catcode`\}=12
- \catcode`\[=13
- \gdef\@MD<%
- \catcode`\{=13 \catcode`\}=12 \catcode`\[=13
- \def{##1}<\{<\MetaFont ##1\/>\}>%
- \def[##1]<\string[<\MetaFont ##1\/>]>>
-\endgroup
-\def\MD{%
- \NotNested
- \Ex
- \begingroup
- \@MD
- \def\end{\par\endgroup\end}%
- \def\\{\@centercr\Main}%
- \MainFont
- \Main}
-\def\endMD{\endEx}
-
-\endinput
-%% END tvz-user.sty