1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
31 % Copyright (C) 1994-97 LaTeX3 project, Frank Mittelbach
32 % and Rainer Sch\"opf, all rights reserved.
35 %<+class>\NeedsTeXFormat{LaTeX2e}[1997/06/01]
38 % Announce the Class name and its version:
39 % \changes{v2.3b}{1994/05/01}{Removed the use of \cs{fileversion}
41 % \changes{v2.3b}{1994/05/01}{Added \cs{ProvidesFile} to slides.def.}
42 % \changes{v2.3o}{1995/05/17}{Replaced all \cs{hbox to} with
44 % \changes{v2.3o}{1995/05/17}{Cleaned up the \cs{changes} entries.}
45 % \changes{v2.3p}{1995/05/23}{Corrected some brace mismatches.}
46 % \changes{v2.3q}{1995/09/20}{Replaced \cs{@tempa} by \cs{reserved@a}.}
47 % \changes{v2.3r}{1995/09/27}{Globally replaced scale factor 19.91 by
48 % 19.907 in \cs{DeclareFontShape}, as this gives better
49 % rounded font sizes at 600dpi (suggested by Denis Roegel).}
51 %<+class>\ProvidesClass{slides}
52 %<+cmd>\ProvidesFile{slides.def}
54 \ProvidesFile{slides.drv}
57 %<+class> Standard LaTeX document class]
58 %<+cmd> SLiTeX definitions]
61 % \section{A driver for this document}
63 % \changes{v2.3f}{1994/05/26}{Moved the driver to the front of the
64 % file; it doesn't print any longer}
66 % The next bit of code contains the documentation driver file for
67 % \TeX{}, i.e., the file that will produce the documentation you are
68 % currently reading. It can be extracted from this file by the
73 \documentclass{ltxdoc}
75 % The following command retrieves the date and version information
78 \GetFileInfo{slides.drv}
80 % Some commonly used abbreviations:
81 % \changes{v2.3h}{1994/06/01}{Added definition of \cs{SLiTeX}.}
83 \DeclareRobustCommand{\SLiTeX}{{%
84 \normalfont S\kern -.06em
85 {\scshape l\kern -.035emi}\kern -.06em
88 \newcommand*{\Lopt}[1]{\textsf {#1}}
89 \newcommand*{\file}[1]{\texttt {#1}}
90 \newcommand*{\Lcount}[1]{\textsl {\small#1}}
91 \newcommand*{\pstyle}[1]{\textsl {#1}}
92 \newcommand*{\dst}{{\normalfont\scshape docstrip}}
95 % Now start the document and input this file.
96 % \changes{v2.3d}{1994/05/12}{Added a missing \cs{begin\{macrocode\}}}
106 % \changes{v2.1b}{1993/12/13}{Removed \cs{CodelineIndex} from the
108 % \changes{v2.1e}{1993/12/16}{Removed again different definitions for
109 % font commands font commands in non-compatibility mode.}
111 % \changes{v2.2}{1993/12/18}{Changes to make it work with
112 % compatibility mode.}
113 % \changes{v2.2a}{1993/12/19}{Removed float parms}
114 % \changes{v2.2d}{1994/01/31}{Removed \cs{@normalsize definition}}
115 % \changes{v2.2g}{1994/03/01}{Removed option makeidx.}
116 % \changes{v2.2g}{1994/03/01}{Moved driver up front.}
117 % \changes{v2.2g}{1994/03/01}{Renamed files \file{slides.ltx} and
118 % \file{sfontdef.ltx} to \file{slides.def} and \file{sfonts.def}.}
119 % \changes{v2.2l}{1994/03/16}{Removed \cs{typeouts}}
120 % \changes{v2.3}{1994/03/16}{Removed root/slide-file structure except
121 % for compatibility mode. (LL)}
122 % \changes{v2.3}{1994/03/16}{Added clock option (LL)}
123 % \changes{v2.3}{1994/03/16}{Modified slide, overlay, note
124 % environments. (LL)}
125 % \changes{v2.3}{1994/03/16}{Added titlepage option and
126 % \cs{maketitle}. (LL)}
127 % \changes{v2.3c}{1994/05/06}{Changed documentation to use
128 % `environment' instead of `macro' environment for environments}
129 % \changes{v2.3f}{1994/05/26}{Wrapped two long lines}
130 % \changes{v2.3l}{1994/12/16}{Use \cs{newcommand*} to define commands
132 % \changes{v2.3n}{1995/04/02}{a slight documentation fix (PR 1517)}
134 % \title{Producing slides with \LaTeXe{}}
135 % \author{Frank Mittelbach}
139 % \MaintainedByLaTeXTeam{latex}
141 % \section{Introduction}
143 % With \LaTeXe{} it is now no longer necessary to maintain a special
144 % format for producing overhead slides. Instead the standard format
145 % may be used and internally only different font definition files come
150 % For producing slides you have to use |slides| as the
151 % document class. This class is very similar to the |slides| style
152 % that came with \SliTeX{}, in fact it is basically a copy changed to
153 % work under \LaTeXe{}.\footnote{Therefore you should compare the
154 % new class with old \SliTeX{} styles
155 % in case you have local slide classes to see what you have to change
156 % in order to use them with \LaTeXe{}.} Thus you have to say something
159 % \documentclass[...]{slides}
161 % and process this with \LaTeXe.
165 % Note, that that with NFSS you can easily produce slides with special
166 % fonts just by calling an appropriate style file (like |times|) in a
167 % |\usepackage| command. This works, for example, with all
168 % fonts that are defined to be scaleable (e.g., PostScript fonts) since
169 % they can be used at any size by NFSS.
171 % However, packages like |pandora| won't work because the standard
172 % |.fd| files shipped with NFSS only contain small sizes. You can, of
173 % course, produce additional sizes and change the |.fd| files
174 % accordingly so that they would be useable for slides as well.
176 % \section{Invisible text and color separation}
178 % In the original \SliTeX{} it was possible to produce invisible text
179 % using the |\invisible| command, so that one was able to put several
180 % slides on top of each other (with each slides showing additional
181 % details, etc.). It was also possible to produce `color' slides. This
182 % was done by producing individual slides one for each color and
183 % placing them on top of each other.
185 % The availability of color printers and the |color| package make
186 % color separation obsolete, so it has been removed. Although the
187 % |color| has also made |\invisible| obsolete, the command is
188 % retained in the \LaTeXe{} implementation, but there
189 % are a few restrictions. Invisible fonts are implemented as special
190 % shapes where the shape names are build by prefixing the normal shape
191 % name with an uppercase |I|. For example, the `normal invisible
192 % shape' would be |In|. When \LaTeX{} is requested to typeset
193 % invisible it will thus change the current shape attribute in this
194 % manner. To make this work it is necessary that the resulting font
195 % shape group is defined. If not, the normal font substitution
196 % mechanism of \LaTeXe{} will change the attribute until it finds a
197 % usable font shape group with the result that the text may become
200 % As long as you use the standard fonts for slides this is not a
201 % problem because all the visible font shape groups have invisible
202 % counterparts. However, if you decide on using special fonts, e.g.,
203 % PostScript fonts, your |\DeclareFontShape| settings may not contain
204 % invisible font shape groups and thus you may be unable to use these
205 % features without adding additional |\DeclareFontShape| commands to
206 % your |.fd| files or the preamble of your document.
211 % \section{The Implementation}
214 % \textbf{Warning:} The implementation is still very experimental and
215 % may change internally very much. It currently basically consists of a
216 % slightly modified copy of |slides.sty| (which then forms
217 % |slides.cls|) followed by a slightly changed copy of |slitex.tex|.
218 % Documentation is practically
219 % non-existing. Everybody is invited to help changing this!
222 % The code is divided into two parts, we first implement the class
223 % related functions and declarations and then define lowlevel stuff
224 % that is necessary within every class. By placing such commands into
225 % a separate file it will be possible to share it with other slide
228 % \subsection{The class code}
230 % At this point we input the redefinitions that are necessary for
232 % \changes{v2.3g}{1994/05/26}{Use \cs{input} instead of \cs{@@input}}
239 % Now we are ready for setting up the font tables. As usual, we first
240 % look for a local configuration file |sfonts.cfg|. If there isn't
241 % one, we fall back to the default one (|sfonts.def|).
242 % \changes{v2.2i}{1994/03/08}{Corrected first argument of
243 % \cs{IfFileExists}: \file{sfonts.def} to \file{sfonts.cfg}.}
244 % \changes{v2.3g}{1994/05/26}{Use \cs{InputIfFileExists} instead of
245 % \cs{IfFileExists} and \cs{input} instead of \cs{@@input}}
247 \InputIfFileExists{sfonts.cfg}
248 {\typeout{**************************************^^J%
250 * Local config file sfonts.cfg used^^J%
252 **************************************}}%
256 % \section{Declaration of Options}
258 % We declare a few options as illegal.
261 % \subsection{Setting Paper Sizes}
263 % The variables |\paperwidth| and |\paperheight| should reflect the
264 % physical paper size after trimming. For desk printer output this
265 % is usually the real paper size since there is no post-processing.
266 % Classes for real book production will probably add other paper
267 % sizes and additionally the production of crop marks for trimming.
268 % \changes{v2.1d}{1993/12/14}{Corrected typo, A4 is not 279 mm high}
270 \DeclareOption{a4paper}
271 {\setlength\paperheight {297mm}%
272 \setlength\paperwidth {210mm}}
273 \DeclareOption{a5paper}
274 {\setlength\paperheight {210mm}%
275 \setlength\paperwidth {148mm}}
276 \DeclareOption{b5paper}
277 {\setlength\paperheight {250mm}%
278 \setlength\paperwidth {176mm}}
279 \DeclareOption{letterpaper}
280 {\setlength\paperheight {11in}%
281 \setlength\paperwidth {8.5in}}
282 \DeclareOption{legalpaper}
283 {\setlength\paperheight {14in}%
284 \setlength\paperwidth {8.5in}}
285 \DeclareOption{executivepaper}
286 {\setlength\paperheight {10.5in}%
287 \setlength\paperwidth {7.25in}}
290 % The option \Lopt{landscape} switches the values of |\paperheight|
291 % and |\paperwidth|, assuming the dimensions wer given for portrait
294 \DeclareOption{landscape}
295 {\setlength\@tempdima {\paperheight}%
296 \setlength\paperheight {\paperwidth}%
297 \setlength\paperwidth {\@tempdima}}
300 % \subsection{The clock option}
302 % The option \Lopt{clock} prints the time at the bottom of each note.
303 % We also define here the commands and counters used to keep track of
306 \newif\if@clock \@clockfalse
307 \DeclareOption{clock}{\@clocktrue
308 \AtEndDocument{\typeout{\@arabic\c@minutes\space minutes}}
310 \newcounter{minutes}%
311 \newcounter{seconds}%
312 \newcommand*{\settime}[1]{\setcounter{seconds}{0}\addtime{#1}}%
313 \newcommand*{\addtime}[1]{\addtocounter{seconds}{#1}%
314 \setcounter{minutes}{\value{seconds}}%
315 \global \divide \value{minutes} by 60\relax}
319 % \subsection{Two-side or one-side printing}
321 % Two-sided printing is not allowed, so don't declare an option.
322 % But it is necessary to initialize the switch.
323 % \changes{v2.2h}{1994/03/07}{Removed declared option twoside.}
329 % \subsection{Draft option}
331 % If the user requests \Lopt{draft} we show any overfull boxes.
332 % We could probably add some more interesting stuff to this option.
334 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
335 \DeclareOption{final}{\setlength\overfullrule{0pt}}
338 % \subsection{Titlepage option}
339 % The default is for a |\maketitle| command to make a new page.
343 \DeclareOption{titlepage}{\@titlepagetrue}
344 \DeclareOption{notitlepage}{\@titlepagefalse}
347 % \subsection{Twocolumn printing}
349 % Two-column printing is again forbidden.
350 % \changes{v2.3e}{1994/05/22}{twocolumn produces only a warning}
352 \DeclareOption{onecolumn}{}
353 \DeclareOption{twocolumn}{%
354 \ClassWarning{slides}{No 'twocolumn' layout for slides}}
357 % \subsection{Equation numbering on the left}
359 % The option \Lopt{leqno} can be used to get the equation numbers
360 % on the left side of the equation.
361 % \changes{v2.2g}{1994/03/01}{Option leqno loads \file{leqno.clo}
364 \DeclareOption{leqno}{\input{leqno.clo}}
367 % \subsection{Flush left displays}
369 % The option \Lopt{fleqn} redefines the displayed math environments
370 % in such a way that they come out flush left, with an indentation
371 % of |\mathindent| from the prevailing left margin.
372 % \changes{v2.2g}{1994/03/01}{Added fleqn option.}
374 \DeclareOption{fleqn}{\input{fleqn.clo}}
378 % \section{Executing Options}
380 % Here we execute the default options to initialize certain
383 \ExecuteOptions{letterpaper,final}
386 % The |\ProcessOptions| command causes the execution of the code
387 % for every option \Lopt{FOO}
388 % which is declared and for which the user typed
389 % the \Lopt{FOO} option in his
390 % |\documentclass| command. For every option \Lopt{BAR} he typed,
391 % which is not declared, the option is assumed to be a global option.
392 % All options will be passed as document options to any
393 % |\usepackage| command in the document preamble.
398 % \section{Loading Packages}
400 % The standard class files do not load additional packages.
403 % \section{Document Layout}
406 % In this section we are finally dealing with the nasty typographical
415 \def\rmdefault{lcmss} % no roman
416 \def\sfdefault{lcmss}
417 \def\ttdefault{lcmtt}
424 % Since the number of parameters to set are very large it seems
425 % reasonable to set up one command |\@setfontsize@parms| which will
426 % do the work for us.
428 % \LaTeX\ offers the user commands to change the size of the font,
429 % relative to the `main' size. Each relative size changing command
430 % |\size| executes the command
431 % |\@setfontsize||\size|\meta{font-size}\meta{baselineskip} where:
433 % \begin{description}
434 % \item[\meta{font-size}] The absolute size of the font to use from
437 % \item[\meta{baselineskip}] The normal value of |\baselineskip|
438 % for the size of the font selected. (The actual value will be
439 % |\baselinestretch| * \meta{baselineskip}.)
442 % A number of commands, defined in the \LaTeX{} kernel, shorten the
443 % following definitions and are used throughout. They are:
445 % \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
446 % \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
447 % \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
448 % \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
453 % \begin{macro}{\ifourteenpt}
454 % \begin{macro}{\iseventeenpt}
455 % \begin{macro}{\itwentypt}
456 % \begin{macro}{\itwentyfourpt}
457 % \begin{macro}{\itwentyninept}
458 % \begin{macro}{\ithirtyfourpt}
459 % \begin{macro}{\ifortyonept}
460 % For \SLiTeX{}, however, these are not sufficient, and we therefore
461 % need to add a few extra, larger, sizes.
463 \def\ifourteenpt{13.82}
464 \def\iseventeenpt{16.59}
465 \def\itwentypt{19.907}
466 \def\itwentyfourpt{23.89}
467 \def\itwentyninept{28.66}
468 \def\ithirtyfourpt{34.4}
469 \def\ifortyonept{41.28}
479 % \begin{macro}{\@setfontsize@parms}
480 % This routine is used in \SliTeX{} to interface font size setting
481 % it is modeled after the settings I found in \texttt{slides.sty}, so
482 % it probably needs an update. But any class is free to redefine
483 % it, as it is used only as an abbreviation.
486 % |\@setfontsize@parms| \\
487 % | |\meta{lineskip} \\
488 % | |\meta{parskip} \\
489 % | |\meta{abovedisplayskip} \\
490 % | |\meta{belowdisplayskip} \\
491 % | |\meta{abovedisplayshortskip} \\
492 % | |\meta{belowdisplayshortskip} \\
493 % | |\meta{strut ht} \meta{strut dp} (without pt)
496 % For NFSS1 a similar style existed which did run both with a
497 % \SliTeX{} with old font selection or with NFSS1. But when no
498 % separate format is made this doesn't make much sense.
499 % So the following note is history and would only be true if all NFSS
500 % stuff would be removed from the file and placed into the format.
501 % \begin{quote}\small
502 % Note: To interface the old \texttt{sfonts.tex} the \meta{size} must be
503 % hidden in commands denoting the size by its name prefixed with
504 % `i', i.e.\ 20pt size is called |\itwentypt| at this point. The
505 % NFSS interface will define those sizes to expand to the internal
506 % size, e.g.\ 20 but for the old sfonts the command name, e.g.
507 % |\itwentypt|, will be used to construct the name |\twentypt| etc.
509 % This is a crude interface to the old \texttt{sfonts.tex}. It will
510 % be a bit slower than the old one because it must define |\@tiny|
511 % etc.\ every time a size changes.
514 % If classes are set up that are only for use with NFSS then the second
515 % argument may be an ordinary font size!
516 % \changes{v2.0d}{1993/11/12}{Replaced all pt by \cs{p@}, corrected
517 % definition for \cs{tiny}.}
520 \def\@setfontsize@parms#1#2#3#4#5#6#7#8{%
523 \abovedisplayskip #3\relax
524 \belowdisplayskip #4\relax
525 \abovedisplayshortskip #5\relax
526 \belowdisplayshortskip #6\relax
529 % I don't see a reason why the |\strutbox| has a dim different from
530 % |\baselineskip| but we will leave it for the moment
532 \setbox\strutbox=\hbox{\vrule \@height#7\p@\@depth#8\p@\@width\z@}%
533 \baselineskip\baselinestretch\baselineskip
534 \normalbaselineskip\baselineskip}
538 % Setting size relations for math scripts:
539 % \changes{v2.2e}{1994/02/07}{Corrected entry for size 23.89.}
541 \DeclareMathSizes{13.82}{13.82}{10}{7}
542 \DeclareMathSizes{16.59}{16.59}{12}{7}
543 \DeclareMathSizes{19.907}{19.907}{16.59}{13.82}
544 \DeclareMathSizes{23.89}{23.89}{19.907}{16.59}
545 \DeclareMathSizes{28.66}{28.66}{23.89}{19.907}
546 \DeclareMathSizes{34.4}{34.4}{28.66}{23.89}
547 \DeclareMathSizes{41.28}{41.28}{34.4}{28.66}
550 % \begin{macro}{\normalsize}
553 \@setfontsize\normalsize\itwentypt{28\p@ plus3\p@ minus4\p@}%
554 % {20}{30\p@ plus3\p@ minus3\p@}% made a bit shorter
557 {30\p@ plus18\p@ minus9\p@}%
558 {15\p@ plus3\p@ minus3\p@}%
559 {10\p@ plus3\p@ minus3\p@}%
561 \abovedisplayshortskip
567 % We initially choose the normalsize font.
572 % \begin{macro}{\small}
574 \def\small{\@setfontsize\small\iseventeenpt{19\p@ plus3\p@ minus\p@}%
577 {15\p@ plus15\p@ minus7\p@}%
578 {12\p@ plus3\p@ minus3\p@}%
579 {9\p@ plus3\p@ minus3\p@}%
581 \abovedisplayshortskip
586 % \begin{macro}{\footnotesize}
587 % \begin{macro}{\scriptsize}
589 \let\footnotesize=\small
590 \let\scriptsize=\small
595 % \begin{macro}{\tiny}
597 \def\tiny{\@setfontsize\tiny\ifourteenpt{16\p@ plus2\p@ minus\p@}%
600 {14\p@ plus3\p@ minus10\p@}%
601 {11\p@ plus3\p@ minus10\p@}%
603 {8\p@ plus3\p@ minus5\p@}%
609 % Actually copying the code above would be better because this would
610 % correct the error message. Maybe one should remove the first
611 % argument of |\set@font@size@parms|.
613 % \begin{macro}{\large}
614 % \begin{macro}{\Large}
615 % \begin{macro}{\LARGE}
616 % \begin{macro}{\huge}
617 % \begin{macro}{\Huge}
619 \def\large{\@setfontsize\large\itwentyfourpt{42\p@ plus8\p@ minus5\p@}%
622 {40\p@ plus20\p@ minus4\p@}%
623 {20\p@ plus8\p@ minus3\p@}%
626 \abovedisplayshortskip
629 \def\Large{\@setfontsize\Large\itwentyninept{48\p@ plus10\p@ minus6\p@}%
632 {48\p@ plus30\p@ minus6\p@}%
633 {24\p@ plus10\p@ minus6\p@}%
636 \abovedisplayshortskip
639 \def\LARGE{\@setfontsize\LARGE\ithirtyfourpt{52\p@ plus10\p@ minus6\p@}%
642 {52\p@ plus30\p@ minus6\p@}%
643 {24\p@ plus10\p@ minus6\p@}%
646 \abovedisplayshortskip
649 \def\huge{\@setfontsize\huge\ifortyonept{60\p@ plus10\p@ minus6\p@}%
652 {60\p@ plus30\p@ minus6\p@}%
653 {24\p@ plus10\p@ minus6\p@}%
656 \abovedisplayshortskip
667 % \subsection{Paragraphing}
669 % \begin{macro}{\baselinestretch}
670 % This is used as a multiplier for |\baselineskip|. The default is
671 % to {\em not\/} stretch the baselines.
673 \renewcommand\baselinestretch{}
677 % \begin{macro}{\parindent}
678 % |\parindent| is the width of the paragraph indentation.
680 \setlength\parindent{\z@}
684 % \begin{macro}{\@lowpenalty}
685 % \begin{macro}{\@medpenalty}
686 % \begin{macro}{\@highpenalty}%
687 % The commands |\nopagebreak| and |\nolinebreak| put in penalties
688 % to discourage these breaks at the point they are put in.
689 % They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|,
690 % dependent on their argument.
700 % \begin{macro}{\clubpenalty}
701 % \begin{macro}{\widowpenalty}
702 % These penalties are use to discourrage club and widow lines.
703 % Because we use their default values we only show them here,
712 % \begin{macro}{\displaywidowpenalty}
713 % \begin{macro}{\predisplaypenalty}
714 % \begin{macro}{\postdisplaypenalty}
715 % Discourrage (but not so much) widows in front of a math display
716 % and forbid breaking directly in front of a display. Allow break
717 % after a display without a penalty. Again the default values are
718 % used, therefore we only show them here.
720 % \displaywidowpenalty 50
721 % \predisplaypenalty 10000
722 % \postdisplaypenalty 0
728 % \begin{macro}{\interlinepenalty}
729 % Allow the breaking of a page in the middle of a paragraph.
731 % \interlinepenalty 0
736 % \begin{macro}{\brokenpenalty}
737 % We allow the breaking of a page after a hyphenated line.
744 % \subsection{Page Layout}
746 % All margin dimensions are measured from a point one inch from the
747 % top and lefthand side of the page.
749 % \subsubsection{Vertical spacing}
751 % \begin{macro}{\headheight}
752 % \begin{macro}{\headsep}
753 % \begin{macro}{\topskip}
754 % The |\headheight| is the height of the box that will contain the
755 % running head. The |\headsep| is the distance between the bottom
756 % of the running head and the top of the text. |\topskip| is the
757 % |\baselineskip| for the first line on a page.
759 \setlength\headheight{14\p@}
760 \setlength\headsep {15\p@}
761 \setlength\topskip {30\p@}
767 % \begin{macro}{\footskip}
768 % The distance from the baseline of the box which contains the
769 % running footer to the baseline of last line of text is controlled
770 % by the |\footskip|.
773 \setlength\footskip{25\p@} %
777 % \begin{macro}{\maxdepth}
778 % \begin{macro}{\@maxdepth}
779 % \changes{v2.3c}{1994/05/06}{Added setting of \cs{maxdepth} and
781 % The \TeX\ primitive register |\maxdepth| has a function that is
782 % similar to that of |\topskip|. The register |\@maxdepth| should
783 % always contain a copy of |\maxdepth|. In both plain \TeX\ and
784 % \LaTeX~2.09 |\maxdepth| had a fixed value of \texttt{4pt}; in
785 % native \LaTeX2e\ mode we let the value depend on the typesize. We
786 % set it so that |\maxdepth| $+$ |\topskip| $=$ typesize $\times
787 % 1.5$. As it happens, in these classes |\topskip| is equal to the
788 % typesize, therefor we set |\maxdepth| to half the value of
792 \setlength\maxdepth{4\p@}
794 \setlength\maxdepth{.5\topskip}
796 \setlength\@maxdepth\maxdepth
801 % \subsubsection{The dimension of text}
803 % \begin{macro}{\textwidth}
804 % When we are in compatibility mode we have to make sure that the
805 % dimensions of the printed area are not different from what the
806 % user was used to see.
810 \setlength\textwidth{460\p@}
812 % When we are not in compatibility mode we can set some of the
813 % dimensions differently, taking into account the paper size for
818 % First, we calculate the maximum textwidth, which depends on the
819 % papersize. Then we calculate the approximate length of 65
820 % characters, which should be the maximum length of a line of text.
821 % The calculated values are stored in |\@tempdima| and |\@tempdimb|.
823 \setlength\@tempdima{\paperwidth}
824 \addtolength\@tempdima{-2in}
825 \setbox\@tempboxa\hbox{\rmfamily im}
826 \setlength\@tempdimb{.5\wd\@tempboxa}
827 \setlength\@tempdimb{65\@tempdimb}
830 % Now we can set the |\textwidth|, depending on whether we will be
831 % setting one or two columns.
833 % The text should not be wider than the minimum
834 % of the paperwidth (minus 2 inches for the margins) and the
835 % maximum length of a line as defined by the number of characters.
837 \ifdim\@tempdima>\@tempdimb\relax
838 \setlength\textwidth{\@tempdimb}
840 \setlength\textwidth{\@tempdima}
845 % Here we modify the width of the text a little to be a whole
848 \@settopoint\textwidth
852 % \begin{macro}{\columnwidth}
853 % \begin{macro}{\columnsep}
854 % \begin{macro}{\columnseprule}
856 \columnwidth \textwidth
863 % \begin{macro}{\textheight}
864 % Now that we have computed the width of the text, we have to take
865 % care of the height. The |\textheight| is the height of text
866 % (including footnotes and figures, excluding running head and
869 % First make sure that the compatibility mode gets the same
870 % dimensions as we had with \LaTeX2.09. The number of lines was
871 % calculated as the floor of the old |\textheight| minus
872 % |\topskip|, divided by |\baselineskip| for |\normalsize|. The
873 % old value of |\textheight| was 528pt.
877 \setlength\textheight{600\p@}
880 % Again we compute this, depending on the papersize and depending
881 % on the baselineskip that is used, in order to have a whole number
882 % of lines on the page.
885 \setlength\@tempdima{\paperheight}
888 % We leave at least a 1 inch margin on the top and the bottom of
891 \addtolength\@tempdima{-2in}
894 % We also have to leave room for the running headers and footers.
896 \addtolength\@tempdima{-1in}
899 % Then we divide the result by the current |\baselineskip| and
900 % store this in the count register |\@tempcnta|, which then
901 % contains the number of lines that fit on this page.
903 \divide\@tempdima\baselineskip
904 \@tempcnta=\@tempdima
907 % From this we can calculate the height of the text.
909 \setlength\textheight{\@tempcnta\baselineskip}
913 % The first line on the page has a height of |\topskip|.
915 \advance\textheight by \topskip
919 % \subsubsection{Margins}
921 % \begin{macro}{\oddsidemargin}
922 % \begin{macro}{\evensidemargin}
923 % \begin{macro}{\marginparwidth}
924 % First we give the values for the compatibility mode.
926 % Values for two-sided printing:
929 \setlength\oddsidemargin {17\p@}
930 \setlength\evensidemargin {17\p@}
931 \setlength\marginparwidth {20\p@}
935 % When we are not in compatibility mode we can take the dimensions
936 % of the selected paper into account.
938 % We center the text on the page, by
939 % calculating the difference between |textwidth| and
940 % |\paperwidth|$-$|2in|. Half of that difference is then used for
941 % the margin. The amount of space that can be used for marginal
942 % notes is at least 0.8~inch, to which we add any `leftover' space.
944 \setlength\@tempdima {\paperwidth}
945 \addtolength\@tempdima {-2in}
946 \addtolength\@tempdima {-\textwidth}
947 \setlength\oddsidemargin {.5\@tempdima}
948 \setlength\marginparwidth {.8in}
949 \addtolength\marginparwidth {.5\@tempdima}
952 % The |\evensidemargin| can now be computed from the values set
955 \setlength\evensidemargin {\paperwidth}
956 \addtolength\evensidemargin{-2in}
957 \addtolength\evensidemargin{-\textwidth}
958 \addtolength\evensidemargin{-\oddsidemargin}
965 % \begin{macro}{\marginparsep}
966 % \begin{macro}{\marginparpush}
967 % The horizontal space between the main text and marginal notes is
968 % determined by |\marginparsep|, the minimum vertical separation
969 % between two marginal notes is controlled by |\marginparpush|.
971 \setlength\marginparsep {5\p@}
972 \setlength\marginparpush{5\p@}
977 % \begin{macro}{\topmargin}
978 % The |\topmargin| is the distance between the top of `the
979 % printable area' --which is 1 inch below the top of the paper--
980 % and the top of the box which contains the running head.
982 % It can now be computed from the values set above.
985 \setlength\topmargin{-10pt}
987 \setlength\topmargin{\paperheight}
988 \addtolength\topmargin{-2in}
989 \addtolength\topmargin{-\headheight}
990 \addtolength\topmargin{-\headsep}
991 \addtolength\topmargin{-\textheight}
992 \addtolength\topmargin{-\footskip} % this might be wrong!
994 % By changing the factor in the next line the complete page
995 % can be shifted vertically.
997 \addtolength\topmargin{-.5\topmargin}
999 \@settopoint\topmargin
1004 % \subsubsection{Footnotes}
1006 % \begin{macro}{\footnotesep}
1007 % |\footnotesep| is the height of the strut placed at the beginning
1008 % of every footnote. It equals the height of a normal
1009 % |\footnotesize| strut in this
1010 % class, thus no extra space occurs between footnotes.
1012 \setlength\footnotesep{20\p@}
1016 % \begin{macro}{\footins}
1017 % |\skip\footins| is the space between the last line of the main
1018 % text and the top of the first footnote.
1020 \setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@}
1025 % \subsection{Page Styles}
1027 % The page style \pstyle{foo} is defined by defining the command
1028 % |\ps@foo|. This command should make only local definitions.
1029 % There should be no stray spaces in the definition, since they
1030 % could lead to mysterious extra spaces in the output (well, that's
1031 % something that should be always avoided).
1033 % \begin{macro}{\@evenhead}
1034 % \begin{macro}{\@oddhead}
1035 % \begin{macro}{\@evenfoot}
1036 % \begin{macro}{\@oddfoot}
1037 % The |\ps@...| command defines the macros |\@oddhead|,
1038 % |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running
1039 % heads and feet---e.g., |\@oddhead| is the macro to produce the
1040 % contents of the heading box for odd-numbered pages. It is called
1041 % inside an |\hbox| of width |\textwidth|.
1048 % The page styles of slides is determined by the 'slide' page style,
1049 % the slide environment executing a |\thispagestyle{slide}| command.
1050 % The page styles of overlays and notes are similarly determined by
1051 % 'overlay' and 'note' page styles. The command standard 'headings',
1052 % 'plain' and 'empty' page styles work by redefining the 'slide',
1053 % 'overlay', and 'note' styles.
1055 % \changes{v2.3q}{1995/09/20}{Wrap some long lines, and use \cs{null}.}
1056 % \begin{macro}{\ps@headings}
1060 \def\ps@slide{\def\@oddfoot{\@mainsize +\hfil\hb@xt@3em{\theslide
1062 \def\@oddhead{\@mainsize +\hfil +}%
1063 \def\@evenfoot{\@mainsize +\hfil\hb@xt@3em{\theslide\hss}}%
1064 \def\@evenhead{\@mainsize +\hfil +}}
1066 \def\ps@overlay{\def\@oddfoot{\@mainsize +\hfil\hb@xt@3em{\theoverlay
1068 \def\@oddhead{\@mainsize +\hfil +}%
1069 \def\@evenfoot{\@mainsize +\hfil\hb@xt@3em{\theoverlay\hss}}%
1070 \def\@evenhead{\@mainsize +\hfil +}}
1071 \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
1073 \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
1076 \else %%if@compatibility
1080 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1082 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1086 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1088 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1095 \fbox{\large \@arabic\c@minutes\space min}%
1104 \fbox{\large \@arabic\c@minutes\space min}%
1110 \fi %% if@compatibility
1114 % \begin{macro}{\ps@plain}
1116 \def\ps@plain{\def\ps@slide{%
1117 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1119 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1121 \def\ps@overlay{\def\@oddfoot{\@mainsize
1122 \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1124 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1126 \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
1128 \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
1133 % \begin{macro}{\ps@empty}
1136 \def\ps@slide{\def\@oddhead{}\def\@oddfoot{}%
1137 \def\@evenhead{}\def\@evenfoot{}}%
1138 \def\ps@overlay{\def\@oddhead{}\def\@oddfoot{}%
1139 \def\@evenhead{}\def\@evenfoot{}}%
1140 \def\ps@note{\def\@oddhead{}\def\@oddfoot{}%
1141 \def\@evenhead{}\def\@evenfoot{}}}
1145 % Default definition the 'slide', 'overlay', and 'note' page styles.
1149 % Set ordinary page style to 'empty'
1151 \let\@oddhead\@empty\let\@oddfoot\@empty
1152 \let\@evenhead\@empty\let\@evenfoot\@empty
1156 % \subsection{Providing math {\em versions}}
1158 % \LaTeX{} provides two {\em versions\/}. We call them
1159 % \textsf{normal} and \textsf{bold}, respectively.
1160 % \SliTeX{} does not have a \textsf{bold} version. But we treat the
1161 % invisible characters as a version. The only thing we have to take
1162 % care of is to ensure that we have exactly the same fonts in both
1163 % versions available.
1166 \DeclareMathVersion{invisible}
1169 % Now we define the basic {\em math groups\/} used by \LaTeX{}. Later
1170 % on, in packages some other {\em math groups}, e.g., the AMS
1171 % symbol fonts, will be defined.
1173 % As a default I used serif fonts for mathgroup 0 to get things like
1174 % \verb+\log+ look right.
1176 \SetSymbolFont{operators}{normal}
1179 \SetSymbolFont{letters}{normal}
1181 \SetSymbolFont{symbols}{normal}
1183 \SetSymbolFont{largesymbols}{normal}
1186 \SetSymbolFont{operators}{invisible}
1188 \SetSymbolFont{letters}{invisible}
1190 \SetSymbolFont{symbols}{invisible}
1192 \SetSymbolFont{largesymbols}{invisible}
1196 \def\@mainsize{\visible\tiny}
1200 % \subsection{Environments}
1202 % \begin{environment}{titlepage}
1203 % This environment starts a new page, with pagestyle \pstyle{empty}
1204 % and sets the page counter to 0.
1206 \newenvironment{titlepage}
1208 \thispagestyle{empty}%
1209 \setcounter{page}{\z@}}
1214 % \subsubsection{General List Parameters}
1216 % The following commands are used to set the default values for the
1217 % list environment's parameters. See the \LaTeX{} manual for an
1218 % explanation of the meaning of the parameters.
1220 % \begin{macro}{\leftmargini}
1221 % \begin{macro}{\leftmarginii}
1222 % \begin{macro}{\leftmarginiii}
1223 % \begin{macro}{\leftmarginiv}
1224 % \begin{macro}{\leftmarginv}
1225 % \begin{macro}{\leftmarginvi}
1227 \setlength\leftmargini {38\p@}
1228 \setlength\leftmarginii {30\p@}
1229 \setlength\leftmarginiii {20\p@}
1230 \setlength\leftmarginiv {15\p@}
1231 \setlength\leftmarginv {15\p@}
1232 \setlength\leftmarginvi {10\p@}
1241 % \begin{macro}{\@listi}
1242 % \begin{macro}{\@listii}
1243 % \begin{macro}{\@listiii}
1244 % \begin{macro}{\@listiv}
1245 % \begin{macro}{\@listv}
1246 % \begin{macro}{\@listvi}
1247 % These commands set the values of |\leftmargin|, |\parsep|,
1248 % |\topsep|, and |\itemsep| for the various levels of lists.
1249 % \changes{v2.3z}{1997/08/15}{Add initialization of \cs{leftmargin} to
1251 % It is even necessary to initialize |\leftmargin| in |\@listi|,
1252 % i.e. for a level one list, as a list environment may appear
1253 % inside a \texttt{trivlist}, for example inside a \texttt{theorem}
1256 \def\@listi{\leftmargin\leftmargini
1262 \def\@listii{\leftmargin\leftmarginii
1263 \labelwidth\leftmarginii
1264 \advance\labelwidth-\labelsep
1268 \def\@listiii{\leftmargin\leftmarginiii
1269 \labelwidth\leftmarginiii
1270 \advance\labelwidth-\labelsep}
1271 \def\@listiv{\leftmargin\leftmarginiv
1272 \labelwidth\leftmarginiv
1273 \advance\labelwidth-\labelsep}
1274 \def\@listv{\leftmargin\leftmarginv
1275 \labelwidth\leftmarginv
1276 \advance\labelwidth-\labelsep}
1277 \def\@listvi{\leftmargin\leftmarginvi
1278 \labelwidth\leftmarginvi
1279 \advance\labelwidth-\labelsep}
1288 % Here we initialize |\leftmargin| and |\labelwidth|.
1290 \leftmargin\leftmargini
1291 \labelwidth\leftmargini\advance\labelwidth-\labelsep
1295 % \subsubsection{Paragraph-formatting environments}
1297 % \begin{environment}{verse}
1298 % Inside a |verse| environment, |\\| ends a line, and
1299 % line continuations are indented further.
1300 % A blank line makes new paragraph with |\parskip| space.
1302 \newenvironment{verse}{\let\\=\@centercr
1303 \list{}{\itemsep \z@
1305 \listparindent \itemindent
1306 \rightmargin \leftmargin
1307 \advance\leftmargin 15\p@}%
1313 % \begin{environment}{quotation}
1314 % The |quotation| environment fills lines, indents paragraphs.
1316 \newenvironment{quotation}{\list{}{\listparindent 20\p@
1317 \itemindent\listparindent
1318 \rightmargin\leftmargin}%
1324 % \begin{environment}{quote}
1325 % The |quote| environment is the same as the |quotation| environment,
1326 % except that there is no paragraph indentation.
1328 \newenvironment{quote}{\list{}{\rightmargin\leftmargin}\item[]}
1334 % \subsubsection{List-making environments}
1337 % \begin{environment}{description}
1338 % The description environment is defined here -- while the itemize
1339 % and enumerate environments are defined in \file{latex.dtx}.
1342 \newenvironment{description}{\list{}{\labelwidth\z@
1343 \itemindent-\leftmargin
1344 \let\makelabel\descriptionlabel}}
1349 % \begin{macro}{\descriptionlabel}
1350 % To change the formatting of the label, you must redefine
1351 % |\descriptionlabel|.
1353 \newcommand*{\descriptionlabel}[1]{\hspace\labelsep
1354 \normalfont\bfseries #1}
1359 % \subsubsection{Enumerate}
1361 % The enumerate environment uses four counters: \Lcount{enumi},
1362 % \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where
1363 % \Lcount{enumN} controls the numbering of the Nth level
1366 % \begin{macro}{\theenumi}
1367 % \begin{macro}{\theenumii}
1368 % \begin{macro}{\theenumiii}
1369 % \begin{macro}{\theenumiv}
1370 % The counters are already defined in \file{latex.dtx}, but their
1371 % representation is changed here.
1374 \renewcommand\theenumi{\@arabic\c@enumi}
1375 \renewcommand\theenumii{\@alph\c@enumii}
1376 \renewcommand\theenumiii{\@roman\c@enumiii}
1377 \renewcommand\theenumiv{\@Alph\c@enumiv}
1384 % \begin{macro}{\labelenumi}
1385 % \begin{macro}{\labelenumii}
1386 % \begin{macro}{\labelenumiii}
1387 % \begin{macro}{\labelenumiv}
1388 % The label for each item is generated by the four commands
1389 % |\labelenumi| \ldots\ |\labelenumiv|.
1390 % \changes{v2.3k}{1994/12/12}{Handle the \cs{label...} commands as in
1391 % the other class files}
1393 \newcommand\labelenumi{\theenumi.}
1394 \newcommand\labelenumii{(\theenumii)}
1395 \newcommand\labelenumiii{\theenumiii.}
1396 \newcommand\labelenumiv{\theenumiv.}
1403 % \begin{macro}{\p@enumii}
1404 % \begin{macro}{\p@enumiii}
1405 % \begin{macro}{\p@enumiv}
1406 % The expansion of |\p@enumN||\theenumN| defines the output of a
1407 % |\ref| command when referencing an item of the Nth level of an
1410 \renewcommand\p@enumii{\theenumi}
1411 \renewcommand\p@enumiii{\theenumi(\theenumii)}
1412 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
1418 % \subsubsection{Itemize}
1421 % \begin{macro}{\labelitemi}
1422 % \begin{macro}{\labelitemii}
1423 % \changes{v2.3x}{1996/08/25}{replaced -{}- with \cs{textendash}}
1424 % \begin{macro}{\labelitemiii}
1425 % \begin{macro}{\labelitemiv}
1426 % Itemization is controlled by four commands: |\labelitemi|,
1427 % |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which\
1428 % define the labels of the various itemization levels.
1430 \newcommand\labelitemi{$\m@th\bullet$}
1431 \newcommand\labelitemii{\normalfont\bfseries \textendash}
1432 \newcommand\labelitemiii{$\m@th\ast$}
1433 \newcommand\labelitemiv{$\m@th\cdot$}
1440 % \subsection{Setting parameters for existing environments}
1442 % \subsubsection{Array and tabular}
1444 % \begin{macro}{\arraycolsep}
1445 % The columns in an array environment are separated by
1446 % 2|\arraycolsep|.% Array and tabular environment parameters
1448 \setlength\arraycolsep{8\p@}
1452 % \begin{macro}{\tabcolsep}
1453 % The columns in an tabular environment are separated by
1456 \setlength\tabcolsep{10\p@}
1460 % \begin{macro}{\arrayrulewidth}
1461 % The width of rules in the array and tabular environments is given
1462 % by the length parameter|\arrayrulewidth|.
1464 \setlength\arrayrulewidth{.6\p@}
1468 % \begin{macro}{\doublerulesep}
1469 % The space between adjacent rules in the array and tabular
1470 % environments is given by |\doublerulesep|.
1472 \setlength\doublerulesep{3\p@}
1476 % \subsubsection{Tabbing}
1478 % \begin{macro}{\tabbingsep}
1479 % This controls the space that the |\'| command puts in. (See
1480 % \LaTeX{} manual for an explanation.)
1483 \setlength\tabbingsep{\labelsep}
1487 % \subsubsection{Minipage}
1489 % \begin{macro}{\@minipagerestore}
1490 % The macro |\@minipagerestore| is called upon entry to a minipage
1491 % environment to set up things that are to be handled differently
1492 % inside a minipage environment. In the current styles, it does
1496 % \begin{macro}{\@mpfootins}
1497 % Minipages have their own footnotes; |\skip||\@mpfootins| plays
1498 % same r\^ole for footnotes in a minipage as |\skip||\footins| does
1499 % for ordinary footnotes.
1502 \skip\@mpfootins = \skip\footins
1506 % \subsubsection{Framed boxes}
1508 % \begin{macro}{\fboxsep}
1509 % The space left by |\fbox| and |\framebox| between the box and the
1511 % \begin{macro}{\fboxrule}
1512 % The width of the rules in the box made by |\fbox| and |\framebox|.
1514 \setlength\fboxsep{5\p@}
1515 \setlength\fboxrule{.6\p@}
1520 % \begin{macro}{\theequation}
1521 % The equation number will be typeset as arabic numerals.
1523 \def\theequation{\@arabic\c@equation}
1528 % \begin{macro}{\jot}
1529 % |\jot| is the extra space added between lines of an eqnarray
1530 % environment. The default value is used.
1532 % \setlength\jot{3pt}
1536 % \begin{macro}{\@eqnnum}
1537 % The macro |\@eqnnum| defines how equation numbers are to appear in
1538 % equations. Again the default is used.
1541 % \def\@eqnnum{(\theequation)}
1546 % \subsection{Font changing}
1548 % \changes{v2.3j}{1994/11/10}{fixed a few typos}
1550 % Here we supply the declarative font changing commands that were
1551 % common in \LaTeX\ version 2.09 and earlier. These commands work
1552 % in text mode \emph{and} in math mode. They are provided for
1553 % compatibility, but one should start using the |\text...| and
1554 % |\math...| commands instead. These commands are redefined using
1555 % |\DeclareOldFontCommand|, a command with three arguments: the
1556 % user command to be defined, \LaTeX\ commands to execute in text
1557 % mode and \LaTeX\ commands to execute in math mode.
1559 % \begin{macro}{\rm}
1560 % \begin{macro}{\tt}
1561 % \begin{macro}{\sf}
1562 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1563 % \cs{@renewfontswitch}.}
1564 % \changes{v2.3a}{1994/04/14}{\cs{@renewfontswitch} has become
1565 % \cs{DeclareOldFontCommand}}
1567 % The commands to change the family. When in compatibility mode we
1568 % select the `default' font first, to get \LaTeX2.09 behaviour.
1570 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1571 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1572 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1578 % \begin{macro}{\bf}
1579 % The command to change to the bold series. One should use
1580 % |\mdseries| to explicitly switch back to medium series.
1581 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1582 % \cs{@renewfontswitch}.}
1584 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1588 % \begin{macro}{\sl}
1589 % \begin{macro}{\it}
1590 % \begin{macro}{\sc}
1591 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1592 % \cs{@renewfontswitch}.}
1593 % And the commands to change the shape of the font. The slanted and
1594 % small caps shapes are not available by default as math alphabets,
1595 % so those changes do nothing in math mode. One should use
1596 % |\upshape| to explicitly change back to the upright shape.
1598 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1599 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
1600 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
1606 % \begin{macro}{\cal}
1607 % \changes{v2.1d}{1993/12/14}{Macro added}
1608 % \begin{macro}{\mit}
1609 % \changes{v2.1d}{1993/12/14}{Macro added}
1611 % The commands |\cal| and |\mit| should only be used in math mode,
1612 % outside math mode they have no effect. Currently the New Font
1613 % Selection Scheme defines these commands to generate warning
1614 % messages. Therefore we have to define them `by hand'.
1615 % \changes{v2.3k}{1994/12/12}{Now define \cs{cal} and \cs{mit} using
1616 % \cs{DeclareRobustCommand*}}
1618 \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
1619 \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
1624 % \subsection{Footnotes}
1627 % \begin{macro}{\footnoterule}
1628 % Usually, footnotes are separated from the main body of the text
1629 % by a small rule. This rule is drawn by the macro |\footnoterule|.
1630 % We have to make sure that the rule takes no vertical space (see
1631 % \file{plain.tex}). The resulting rule will appear on all color
1632 % layers, so it's best not to draw a rule.
1634 \renewcommand\footnoterule{}
1635 % \let \footnoterule = \relax
1639 % \begin{macro}{\c@footnote}
1640 % \begin{macro}{\thefootnote}
1641 % Footnotes are numbered within slides, overlays, and notes and
1642 % numbered with $\ast$, $\dagger$, etc.
1644 % \newcounter{footnote}
1645 \def\thefootnote{\fnsymbol{footnote}}
1646 \@addtoreset{footnote}{slide}
1647 \@addtoreset{footnote}{overlay}
1648 \@addtoreset{footnote}{note}
1654 % \begin{macro}{\@makefntext}
1655 % \changes{v2.2i}{1994/03/08}{Always call \cs{@makefnmark}.}
1656 % The footnote mechanism of \LaTeX{} calls the macro |\@makefntext|
1657 % to produce the actual footnote. The macro gets the text of the
1658 % footnote as its argument and should use |\@makefnmark| to produce
1659 % the mark of the footnote. The macro |\@makefntext| is called when
1660 % effectively inside a |\parbox| of width |\columnwidth| (i.e.,
1661 % with |\hsize| = |\columnwidth|).
1663 % An example of what can be achieved is given by the following piece
1666 % \long\def\@makefntext#1{%
1668 % \@tempdima = \hsize
1669 % \advance\@tempdima-10pt
1670 % \parshape \@ne 10pt \@tempdima}%
1672 % \parindent 1em\noindent
1673 % \hbox to \z@{\hss\@makefnmark}#1}
1675 % The effect of this definition is that all lines of the footnote
1676 % are indented by 10pt, while the first line of a new paragraph is
1677 % indented by 1em. To change these dimensions, just substitute the
1678 % desired value for `10pt' (in both places) or `1em'. The mark is
1679 % flushright against the footnote.
1681 % In these document classes we use a simpler macro, in which the
1682 % footnote text is set like an ordinary text paragraph, with no
1683 % indentation except on the first line of a paragraph, and the
1684 % first line of the footnote. Thus, all the macro must do is set
1685 % |\parindent| to the appropriate value for succeeding paragraphs
1686 % and put the proper indentation before the mark.
1689 \long\def\@makefntext#1{
1692 \hb@xt@10\p@{\hss\@makefnmark}#1}
1696 % \begin{macro}{\@makefnmark}
1697 % The footnote markers that are printed in the text to point to the
1698 % footnotes should be produced by the macro |\@makefnmark|. We use
1699 % the default definition for it.
1701 %\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}
1706 % \subsection{The title}
1707 % The commands |\title|, |\author|, and |\date| are already
1708 % defined, so here we just define |\maketitle|.
1710 % \changes{v2.3s}{1995/10/10}{Move \cs{par} inside the scope of
1711 % \cs{Large}, to get even line spacing.}
1713 \newcommand\maketitle{{\centering {\Large \@title \par}%
1714 \@author \par \@date\par}%
1715 \if@titlepage \break \fi}
1718 % \section{Initialisation}
1722 % \begin{macro}{\today}
1723 % This macro uses the \TeX\ primitives |\month|, |\day| and |\year|
1724 % to provide the date of the \LaTeX-run.
1726 \newcommand\today{\ifcase\month\or
1727 January\or February\or March\or April\or May\or June\or
1728 July\or August\or September\or October\or November\or December\fi
1729 \space\number\day, \number\year}
1734 % Default initializations
1737 \pagenumbering{arabic}
1742 % \subsection{Basic code}
1744 % The code below is basically a copy of |slitex.tex| with some
1747 % Global changes so far:
1749 % \changes{FMi}{1990/06/01}{\cs{gdef}\cs{@slidesw} ... replaced by a
1750 % \cs{newifG} which is similar to \cs{newif} but uses \cs{global}
1754 % \subsubsection{Hacks for slide macros}
1760 \outer\def\newifG#1{\count@\escapechar \escapechar\m@ne
1761 \expandafter\expandafter\expandafter
1762 \edef\@ifG#1{true}{\global\let\noexpand#1\noexpand\iftrue}%
1763 \expandafter\expandafter\expandafter
1764 \edef\@ifG#1{false}{\global\let\noexpand#1\noexpand\iffalse}%
1765 \@ifG#1{false}\escapechar\count@} % the condition starts out false
1766 \def\@ifG#1#2{\csname\expandafter\ifG@\string#1#2\endcsname}
1767 {\uccode`1=`i \uccode`2=`f \uccode`3=`G \uppercase{\gdef\ifG@123{G}}}
1770 \def\@gobbletoend#1{\def\@argend{#1}\@ggobtoend}
1772 \long\def\@ggobtoend#1\end#2{\fi\def\reserved@a{#2}%
1773 \ifx\reserved@a\@argend\else\@ggobtoend\fi}
1775 % FMi: I don't see any reason for this command since |\fi| is hidden
1776 % anyway in the replacement text
1782 % \subsubsection{Slide macros}
1786 % \begin{tabular}{ll}
1787 % |@bw| & true if making black and white slides \\
1788 % |@visible| & true if visible output to be produced.\\
1789 % |@makingslides| & true if making a slide/overlay/note
1795 \newif\if@onlyslidesw \@onlyslideswfalse
1796 \newif\if@onlynotesw \@onlynoteswfalse
1797 \newif\if@makingslides
1799 % FMi: |\newifG| replaces |\gdef\@slidesw{T}| stuff
1804 % \begin{tabular}{ll}
1805 % slide & slide number\\
1806 % overlay & overlay number for a slide\\
1807 % note & note number for a slide
1811 \countdef\c@slide=0 \c@slide=0
1813 \countdef\c@overlay=1 \c@overlay=0
1815 \countdef\c@note=2 \c@note=0
1818 % Add these counters explicitly to the `ckpt list' so that the
1819 % |\include| mechanism works.
1820 % \changes{v2.3u}{1996/05/09}{Make include work: pr/2140(CAR)}
1821 % \changes{v2.3y}{1997/05/09}{Make include work properly: add the
1822 % counters in case some are already in there: pr/2140+2474(CAR)}
1823 % \changes{v2.3v}{1996/05/11}{Do not add page counter here as it is
1826 \g@addto@macro\cl@@ckpt{\@elt{slide}\@elt{overlay}\@elt{note}}
1827 \@addtoreset{overlay}{slide}
1828 \@addtoreset{note}{slide}
1830 % Redefine page counter to some other number.
1831 % The page counter will always be zero except when putting out an
1832 % extra page for a slide, note or overlay.
1834 \@definecounter{page}
1835 \@addtoreset{page}{slide}
1836 \@addtoreset{page}{note}
1837 \@addtoreset{page}{overlay}
1839 \def\theslide{\@arabic\c@slide}
1840 \def\theoverlay{\theslide-\@alph\c@overlay}
1841 \def\thenote{\theslide-\@arabic\c@note}
1844 % \@setlimits \LIST \LOW \HIGH
1846 % Assumes that \LIST = RANGE1,RANGE2,...,RANGEn (n>0)
1847 % Where RANGEi = j or j-k.
1849 % Then \@setlimits globally sets
1850 % (i) \LIST := RANGE2, ... , RANGEn
1853 % where either RANGE1 = p-q or RANGE1 = p and q=p.
1856 \def\@sl@getargs#1-#2-#3\relax#4#5{\xdef#4{#1}\xdef#5{#2}}
1857 \def\@sl@ccdr#1,#2\relax#3#4{\xdef#3{#1-#1-}\xdef#4{#2}}
1859 \def\@setlimits #1#2#3{\expandafter\@sl@ccdr#1\relax\@sl@gtmp #1%
1860 \expandafter\@sl@getargs\@sl@gtmp\relax#2#3}
1863 % \onlyslides{LIST} ::=
1865 % @onlyslidesw := true
1866 % \@doglslidelist :=G LIST,999999,999999
1867 % if @onlynotesw = true
1868 % else @onlynotesw := true
1869 % \@doglnotelist :=G LIST,999999,999999
1871 % message: Only Slides LIST
1875 \def\onlyslides#1{\@onlyslideswtrue
1876 \gdef\@doglslidelist{#1,999999,999999}%
1877 \if@onlynotesw \else
1878 \@onlynoteswtrue\gdef\@doglnotelist{999999,999999}\fi
1879 \typeout{Only Slides #1}}
1882 % \onlynotes{LIST} ::=
1884 % @onlynotesw := true
1885 % \@doglnotelist :=G LIST,999999,999999
1886 % if @onlyslidesw = true
1887 % else \@onlyslidesw := true
1888 % \@doglslidelist{999999,999999}
1890 % message: Only Notes LIST
1894 \def\onlynotes#1{\@onlynoteswtrue
1895 \gdef\@doglnotelist{#1,999999,999999}%
1896 \if@onlyslidesw \else
1897 \@onlyslideswtrue\gdef\@doglslidelist{999999,999999}\fi
1898 \typeout{Only Notes #1}}
1901 % \setupcounters ::= (similar to old \blackandwhite #1 ::= )
1906 % if @onlyslidesw = true
1907 % then \@doslidelist := \@doglslidelist
1908 % \@setlimits\@doslidelist\@doslidelow\@doslidehigh
1910 % if @onlynotesw = true
1911 % then \@donotelist := \@doglnotelist
1912 % \@setlimits\@donotelist\@donotelow\@donotehigh
1914 % \normalsize % Note, this sets font to \rmfamily , which sets
1915 % % \@currfont to \rmfamily
1916 % counter slidenumber := 0
1918 % counter overlay := 0
1919 % @makingslides := F %% \blackandwhite: @makingslides := T
1921 % %% @makingslides := F
1925 % In compatibility mode, need to define \verb+\blackandwhite+,
1926 % \verb+\colors+, \verb+\colorslides+, etc.
1927 \def\blackandwhite#1{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
1928 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
1929 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
1930 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
1931 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
1932 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
1933 \setcounter{note}{0}\@makingslidestrue\input #1\@makingslidesfalse}
1936 % \colors{COLORS} ::=
1937 % for \@colortemp := COLORS
1938 % do \csname \@colortemp \endcsname == \@color{\@colortemp} od
1939 % if \@colorlist = empty
1940 % then \@colorlist := COLORS
1941 % else \@colorlist := \@colorlist , COLORS
1946 \def\colors#1{\@for\@colortemp:=#1\do{\expandafter
1947 \xdef\csname\@colortemp\endcsname{\noexpand\@color{\@colortemp}}}\ifx
1948 \@colorlist\@empty \gdef\@colorlist{#1}%
1949 \else \xdef\@colorlist{\@colorlist,#1}\fi}
1954 % \colorslides{FILE} ::=
1958 % for \@currcolor := \@colorlist
1960 % if @onlyslidesw = true
1961 % then \@doslidelist := \@doglslidelist
1962 % \@setlimits\@doslidelist\@doslidelow\@doslidehigh
1964 % if @onlynotesw = true
1965 % then \@donotelist := \@doglnotelist
1966 % \@setlimits\@donotelist\@donotelow\@donotehigh
1969 % counter slide := 0
1970 % counter overlay := 0
1973 % generate color layer output page
1974 % @makingslides := T
1976 % @makingslides := F
1980 \def\colorslides#1{\newpage\setcounter{page}{0}\@bwfalse
1981 \@for\@currcolor:=\@colorlist\do
1983 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
1984 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
1985 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
1986 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
1987 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
1988 \setcounter{note}{0}\typeout{color \@currcolor}%
1992 COLOR LAYER\\[.75in]%
1999 \@makingslidesfalse}}
2001 \else %% if@compatibility
2003 \def\setupcounters{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
2004 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
2005 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
2006 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
2007 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
2008 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
2009 \setcounter{note}{0}\@makingslidesfalse}
2011 \AtBeginDocument{\setupcounters}
2012 \fi %% if@compatibility
2017 % \changes{v2.3}{1994/03/16}{Moved \cs{newpage} up front, here and in
2018 % \cs{note} and \cs{overlay}}
2020 % \stepcounter{slide}
2021 % \setcounter{page}{0} % in case of non-slide pages
2023 % if @onlyslidesw = true % set \@slidesw = T iff
2024 % then % page to be output
2025 % while \c@slide > \@doslidehigh
2026 % do \@setlimits\@doslidelist\@doslidelow\@doslidehigh od
2027 % if \c@slide < \@doslidelow
2028 % then \@slidesw := F
2032 % then \@slidesw :=G F
2035 % then \@slidesw :=G T
2036 % else \@color{COLORS}
2037 % \if@visible then \@slidesw :=G T \fi
2042 % then @makingslides := T
2043 % \thispagestyle{slide}
2045 % \@gobbletoend{slide}
2056 \def\slide#1{\stepcounter{slide}\G@slideswtrue\if@onlyslidesw
2057 \@whilenum \c@slide >\@doslidehigh\relax
2058 \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
2059 \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
2062 % FMi this is only a hack at the moment to get things running.
2064 \if@bw\G@slideswtrue\else
2065 \@color{#1}\if@visible \G@slideswtrue \fi
2069 \ifG@slidesw \newpage\thispagestyle{slide}%
2071 % This will set up the last color specified in the argument to
2072 % \verb+\slide+ as the current color. If only back and white slides
2073 % are prepared \verb+\last@color+ will be empty and effectively
2074 % \verb+\relax+ will be generated (hopefully).
2076 % We need to reset to a default font at the beginning of a slide.
2079 \csname \last@color \endcsname
2082 \else\end{slide}\@gobbletoend{slide}\fi}
2084 \else %% if@compatibility
2086 \def\slide{\par\break
2087 \stepcounter{slide}\setcounter{page}{0}\G@slideswtrue\if@onlyslidesw
2088 \@whilenum \c@slide >\@doslidehigh\relax
2089 \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
2090 \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
2093 % FMi this is only a hack at the moment to get things running.
2095 \if@bw\G@slideswtrue\else
2096 \if@visible \G@slideswtrue \fi
2100 \ifG@slidesw \@makingslidestrue\thispagestyle{slide}%
2102 % This will set up the last color specified in the argument to
2103 % \verb+\slide+ as the current color. If only back and white slides
2104 % are prepared \verb+\last@color+ will be empty and effectively
2105 % \verb+\relax+ will be generated (hopefully).
2107 % We need to reset to a default font at the beginning of a slide.
2110 \csname \last@color \endcsname
2113 \else\end{slide}\@gobbletoend{slide}\fi}
2114 \fi %% if@compatibility
2116 \let\last@color\@empty
2118 \def\endslide{\par\break}
2121 % \overlay COLORS ::=
2124 % \stepcounter{overlay}
2125 % \setcounter{page}{0} % in case of non-slide pages
2127 % if @onlyslidesw = T % set \@slidesw = T iff
2128 % then % page to be output
2129 % if \c@slide < \@doslidelow
2130 % then \@slidesw :=G F
2137 % then \@slidesw :=G T
2138 % else \@color{COLORS}
2139 % \if@visible then \@slidesw :=G T \fi
2144 % then @makingslides := T
2145 % \thispagestyle{overlay}
2146 % else \end{overlay}
2147 % \@gobbletoend{overlay}
2158 \def\overlay#1{\stepcounter{overlay}\G@slideswtrue%
2159 \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
2160 \G@slideswfalse\fi\fi
2161 \ifG@slidesw \G@slideswfalse\begingroup\if@bw\G@slideswtrue%
2162 \else\@color{#1}\if@visible \G@slideswtrue\fi\fi\endgroup\fi
2163 \ifG@slidesw \newpage\thispagestyle{overlay}%
2164 \else\end{overlay}\@gobbletoend{overlay}\fi}
2166 \else %%if@compatibility
2168 \def\overlay{\par\break
2169 \stepcounter{overlay}%
2170 \setcounter{page}{0}%
2172 \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
2173 \G@slideswfalse\fi\fi
2174 \ifG@slidesw \G@slideswfalse
2175 \begingroup\if@bw\G@slideswtrue%
2176 \else\if@visible \G@slideswtrue\fi\fi
2178 \ifG@slidesw \@makingslidestrue\thispagestyle{overlay}%
2179 \else\end{overlay}\@gobbletoend{overlay}\fi}
2180 \fi %%if@compatibility
2182 \def\endoverlay{\par\break}
2185 % \changes{v2.0d}{1993/11/12}{Removed extra blank.}
2190 % \stepcounter{note}
2191 % \setcounter{page}{0} % in case of non-slide pages
2195 % if @onlynotesw = true % set \@notesw = T iff
2196 % then % page to be output
2197 % while \c@slide > \@donotehigh
2198 % do \@setlimits\@donotelist\@donotelow\@donotehigh od
2199 % if \c@slide < \@donotelow
2200 % then \@slidesw :=G F
2203 % else \@slidesw :=G F
2206 % then @makingslides := T
2207 % \thispagestyle{note}
2209 % \@gobbletoend{note}
2220 \def\note{\stepcounter{note}%
2223 \if@onlynotesw\@whilenum \c@slide >\@donotehigh\relax
2224 \do{\@setlimits\@donotelist\@donotelow\@donotehigh}\ifnum
2225 \c@slide <\@donotelow\relax \G@slideswfalse\fi\fi
2226 \else\G@slideswfalse\fi
2227 \ifG@slidesw \newpage\thispagestyle{note}\else
2228 \end{note}\@gobbletoend{note}\fi}
2230 \else %%if@compatibility
2232 \def\note{\par\break\stepcounter{note}\setcounter{page}{0}%
2235 \if@onlynotesw\@whilenum \c@slide >\@donotehigh\relax
2236 \do{\@setlimits\@donotelist\@donotelow\@donotehigh}\ifnum
2237 \c@slide <\@donotelow\relax \G@slideswfalse\fi\fi
2238 \else\G@slideswfalse\fi
2239 \ifG@slidesw \@makingslidestrue\thispagestyle{note}\else
2240 \end{note}\@gobbletoend{note}\fi}
2241 \fi %%if@compatibility
2243 \def\endnote{\par\break}
2246 % \@color{COLORS} ::=
2254 % for \last@color := COLORS
2255 % do if \last@color = \@currcolor
2263 % FMi: |\last@color| will be used in |\slide| to set up first
2264 % color if no color is given.
2265 % I suppose that this is much too complicated. |\else\@tempswafalse|
2266 % would produce the same effect I imagine.
2268 \def\@color#1{\@mmodetest
2269 {\if@bw \@tempswatrue \else \@tempswafalse
2270 \@for \reserved@a :=#1\do{\ifx\reserved@a\@currcolor\@tempswatrue\fi
2271 \let\last@color\reserved@a}\fi
2272 \if@tempswa \visible \else \invisible \fi
2275 \def\@mmodetest#1{\ifmmode\ClassWarning{slides}{Color-changing command
2276 in math mode has been ignored}\else #1\fi}
2278 \def\invisible{\@mmodetest
2281 \fontshape\f@shape\selectfont
2282 \mathversion{invisible}%
2286 \def\visible{\@mmodetest
2291 % Here is the \LaTeXe{} interface hidden. We use a trick to provide
2292 % ourselves with a sort of additional attribute without making the
2293 % current mechanism even larger. The trick is that we denote
2294 % invisible by putting an uppercase |I| in front of the shape name
2295 % for invisible shapes and remove it again if we want to become
2298 \fontshape{\expandafter\@gobble\f@shape}\selectfont
2299 \mathversion{normal}%
2303 \def\fontshape#1{\edef\f@shape{\if@visible \else I\fi #1}}
2306 % \subsection{Macros for font handling}
2308 % We let |\familydefault| point at |\sfdefault|, to make it easier
2309 % to use the document class slides with packages that set up other
2312 \renewcommand{\familydefault}{\sfdefault}
2315 % \changes{v2.3l}{1994/12/16}{Added the declaration of the lasy font
2317 % The \texttt{latexsym} package, which is needed to be able to access
2318 % the \LaTeX\ symbol fonts (lasy), sets things up so that for sizes
2319 % larger then 10 point magnifications of \texttt{lasy10} are
2320 % used. For slides we want to use magnifications of \texttt{lasy8},
2321 % so we set up the lasy family here to prevent \LaTeX\ from loading
2322 % \texttt{Ulasy.fd}.
2324 \DeclareFontFamily{U}{lasy}{}{}
2325 \DeclareFontShape{U}{lasy}{m}{n}{%
2326 <12><13.82><16.59><19.907><23.89><28.66><34.4><41.28>lasy8
2328 \DeclareFontShape{U}{lasy}{m}{In}{%
2329 <13.82><16.59><19.907><23.89><28.66><34.4><41.28>ilasy8
2337 % \subsubsection{Modifications to the picture environment}
2339 % Below are the new definitions of the picture-drawing macros
2340 % required for SLiTeX. Only those commands that actually
2341 % draw something must be changed so that they do not produce
2342 % any output when the |@visible| switch is false.
2344 % \changes{v2.2j}{1994/03/11}{Corrected \cs{@oval}, like previous
2345 % \changes{v2.4a}{2016/03/29}{initialise in \cs{@oval}tests added for latex/4452}
2346 % change to \file{latex.dtx}.}
2348 \def\line(#1,#2)#3{\if@visible\@xarg #1\relax \@yarg #2\relax
2349 \@linelen #3\unitlength
2350 \ifnum\@xarg =\z@ \@vline
2351 \else \ifnum\@yarg =\z@ \@hline \else \@sline\fi
2354 \def\vector(#1,#2)#3{\if@visible\@xarg #1\relax \@yarg #2\relax
2355 \@linelen #3\unitlength
2356 \ifnum\@xarg =\z@ \@vvector
2357 \else \ifnum\@yarg =\z@ \@hvector \else \@svector\fi
2360 \def\dashbox#1(#2,#3){%
2361 \leavevmode\if@visible\hb@xt@\z@{\baselineskip \z@
2363 \@dashdim #2\unitlength
2364 \@dashcnt \@dashdim \advance\@dashcnt 200
2365 \@dashdim #1\unitlength\divide\@dashcnt \@dashdim
2366 \ifodd\@dashcnt\@dashdim\z@
2367 \advance\@dashcnt \@ne \divide\@dashcnt \tw@
2368 \else \divide\@dashdim \tw@ \divide\@dashcnt \tw@
2369 \advance\@dashcnt \m@ne
2370 \setbox\@dashbox \hbox{\vrule \@height \@halfwidth \@depth \@halfwidth
2371 \@width \@dashdim}\put(0,0){\copy\@dashbox}%
2372 \put(0,#3){\copy\@dashbox}%
2373 \put(#2,0){\hskip-\@dashdim\copy\@dashbox}%
2374 \put(#2,#3){\hskip-\@dashdim\box\@dashbox}%
2375 \multiply\@dashdim \thr@@
2377 \setbox\@dashbox \hbox{\vrule \@height \@halfwidth \@depth \@halfwidth
2378 \@width #1\unitlength\hskip #1\unitlength}\@tempcnta\z@
2379 \put(0,0){\hskip\@dashdim \@whilenum \@tempcnta <\@dashcnt
2380 \do{\copy\@dashbox\advance\@tempcnta \@ne }}\@tempcnta\z@
2381 \put(0,#3){\hskip\@dashdim \@whilenum \@tempcnta <\@dashcnt
2382 \do{\copy\@dashbox\advance\@tempcnta \@ne }}%
2383 \@dashdim #3\unitlength
2384 \@dashcnt=\@dashdim \advance\@dashcnt 200
2385 \@dashdim #1\unitlength\divide\@dashcnt \@dashdim
2386 \ifodd\@dashcnt \@dashdim=\z@
2387 \advance\@dashcnt \@ne \divide\@dashcnt \tw@
2389 \divide\@dashdim \tw@ \divide\@dashcnt \tw@
2390 \advance\@dashcnt \m@ne
2391 \setbox\@dashbox\hbox{\hskip -\@halfwidth
2392 \vrule \@width \@wholewidth
2393 \@height \@dashdim}\put(0,0){\copy\@dashbox}%
2394 \put(#2,0){\copy\@dashbox}%
2395 \put(0,#3){\lower\@dashdim\copy\@dashbox}%
2396 \put(#2,#3){\lower\@dashdim\copy\@dashbox}%
2397 \multiply\@dashdim \thr@@
2399 \setbox\@dashbox\hbox{\vrule \@width \@wholewidth
2400 \@height #1\unitlength}\@tempcnta\z@
2401 \put(0,0){\hskip -\@halfwidth \vbox{\@whilenum \@tempcnta <\@dashcnt
2402 \do{\vskip #1\unitlength\copy\@dashbox\advance\@tempcnta \@ne }%
2403 \vskip\@dashdim}}\@tempcnta\z@
2404 \put(#2,0){\hskip -\@halfwidth \vbox{\@whilenum \@tempcnta <\@dashcnt
2405 \relax\do{\vskip #1\unitlength\copy\@dashbox\advance\@tempcnta \@ne }%
2406 \vskip\@dashdim}}}\fi\@makepicbox(#2,#3)}
2408 % (re)declare these booleans as they not defined in old format
2409 % (or with latexrelease package)
2411 \newif\if@ovvline \@ovvlinetrue
2412 \newif\if@ovhline \@ovhlinetrue
2415 \def\@oval(#1,#2)[#3]{\if@visible\begingroup \boxmaxdepth \maxdimen
2416 \@ovttrue \@ovbtrue \@ovltrue \@ovrtrue
2419 \@ovvlinefalse \@ovhlinefalse
2422 \@tfor\reserved@a :=#3\do
2423 {\csname @ov\reserved@a false\endcsname}%
2424 \@ovxx#1\unitlength \@ovyy #2\unitlength
2427 \@tempdimb \ifdim \@ovyy >\@ovxx \@ovxx \@ovvlinetrue
2428 \else \@ovyy \ifdim \@ovyy =\@ovxx \else \@ovhlinetrue \fi\fi
2431 \advance \@tempdimb -2\p@
2432 \@getcirc \@tempdimb
2433 \@ovro \ht\@tempboxa \@ovri \dp\@tempboxa
2434 \@ovdx\@ovxx \advance\@ovdx -\@tempdima \divide\@ovdx \tw@
2435 \@ovdy\@ovyy \advance\@ovdy -\@tempdima \divide\@ovdy \tw@
2438 \ifdim \@ovdx >\z@ \@ovhlinetrue \fi
2439 \ifdim \@ovdy >\z@ \@ovvlinetrue \fi
2442 \@circlefnt \setbox\@tempboxa
2443 \hbox{\if@ovr \@ovvert32\kern -\@tempdima \fi
2444 \if@ovl \kern \@ovxx \@ovvert01\kern -\@tempdima \kern -\@ovxx \fi
2445 \if@ovt \@ovhorz \kern -\@ovxx \fi
2446 \if@ovb \raise \@ovyy \@ovhorz \fi}\advance\@ovdx\@ovro
2447 \advance\@ovdy\@ovro \ht\@tempboxa\z@ \dp\@tempboxa\z@
2448 \@put{-\@ovdx}{-\@ovdy}{\box\@tempboxa}%
2451 \def\@circle#1{\if@visible \begingroup \boxmaxdepth \maxdimen
2452 \@tempdimb #1\unitlength
2453 \ifdim \@tempdimb >15.5\p@\relax \@getcirc\@tempdimb
2455 \setbox\@tempboxa\hbox{\@circlefnt
2456 \advance\@tempcnta\tw@ \char \@tempcnta
2457 \advance\@tempcnta\m@ne \char \@tempcnta \kern -2\@tempdima
2458 \advance\@tempcnta\tw@
2459 \raise \@tempdima \hbox{\char\@tempcnta}\raise \@tempdima
2460 \box\@tempboxa}\ht\@tempboxa\z@ \dp\@tempboxa\z@
2461 \@put{-\@ovro}{-\@ovro}{\box\@tempboxa}%
2462 \else \@circ\@tempdimb{96}\fi\endgroup\fi}
2466 % \changes{v2.0d}{1993/11/12}{Removed extra blank.}
2469 \if@visible\@tempdimb #1\unitlength \@circ\@tempdimb{112}\fi}
2471 % \changes {v2.3m}{1994/03/20}{(DPC) Remove old \cs{@iframebox} and
2473 % \changes {v2.3m}{1994/03/20}{(DPC) Add \cs{@frameb@x} defn.}
2477 \advance\@tempdima\fboxsep
2478 \advance\@tempdima\dp\@tempboxa
2481 \lower\@tempdima\hbox{%
2483 \if@visible\hrule\@height\else\vskip\fi\fboxrule
2485 \if@visible\vrule\@width\else\hskip\fi\fboxrule
2492 \if@visible\vrule\@width\else\hskip\fi\fboxrule}%
2493 \if@visible\hrule\@height\else\vskip\fi\fboxrule}}}}
2498 \long\def\frame#1{\if@visible\leavevmode
2499 \vbox{\vskip-\@halfwidth\hrule \@height\@halfwidth \@depth \@halfwidth
2500 \vskip-\@halfwidth\hbox{\hskip-\@halfwidth \vrule \@width\@wholewidth
2501 \hskip-\@halfwidth #1\hskip-\@halfwidth \vrule \@width \@wholewidth
2502 \hskip -\@halfwidth}\vskip -\@halfwidth\hrule \@height \@halfwidth
2503 \@depth \@halfwidth\vskip -\@halfwidth}\else #1\fi}
2506 % \changes{v2.0d}{1993/11/12}{Corrected \cs{@math} to \cs{m@th} in
2507 % definition of \cs{underline}.}
2514 % \subsubsection{Other modifications to \TeX{} and \LaTeX{} commands}
2518 \def\@rule[#1]#2#3{\@tempdima#3\advance\@tempdima #1\leavevmode
2519 \hbox{\if@visible\vrule
2520 \@width#2 \@height\@tempdima \@depth-#1\else
2521 \vrule \@width \z@ \@height\@tempdima \@depth-#1\vrule
2522 \@width#2 \@height\z@\fi}}
2524 % \_ (Added 10 Nov 86)
2526 \def\_{\leavevmode \kern.06em \if@visible\vbox{\hrule \@width.3em}\else
2527 \vbox{\hrule \@height \z@ \@width.3em}\vbox{\hrule \@width \z@}\fi}
2530 % \overline, \underline, \frac and \sqrt
2532 % \@mathbox{STYLE}{BOX}{MTEXT} : Called in math mode, typesets MTEXT and
2533 % stores result in BOX, using style STYLE.
2535 % \@bphant{BOX} : Creates a phantom with dimensions BOX.
2536 % \@vbphant{BOX} : Creates a phantom with ht of BOX and zero width.
2537 % \@hbphant{BOX} : Creates a phantom with width of BOX
2539 % \@hvsmash{STYLE}{MTEXT} : Creates a copy of MTEXT with zero height and
2540 % width in style STYLE.
2543 \def\@mathbox#1#2#3{\setbox#2\hbox{$\m@th#1{#3}$}}
2545 \def\@vbphantom#1{\setbox\tw@\null \ht\tw@\ht #1\dp\tw@\dp #1%
2548 \def\@bphantom#1{\setbox\tw@\null
2549 \wd\tw@\wd #1\ht\tw@\ht #1\dp\tw@\dp #1%
2552 \def\@hbphantom#1{\setbox\tw@\null \wd\tw@\wd #1\ht\tw@\z@ \dp\tw@\z@
2555 \def\@hvsmash#1#2{\@mathbox#1\z@{#2}\ht\z@\z@ \dp\z@\z@ \wd\z@\z@
2558 \def\underline#1{\relax\ifmmode
2559 \@xunderline{#1}\else $\m@th\@xunderline{\hbox{#1}}$\relax\fi}
2561 \def\@xunderline#1{\mathchoice{\@xyunderline\displaystyle{#1}}%
2563 \textstyle{#1}}{\@xyunderline\scriptstyle{#1}}{\@xyunderline
2564 \scriptscriptstyle{#1}}}
2566 \def\@xyunderline#1#2{%
2567 \@mathbox#1\@smashboxa{#2}\@hvsmash#1{\copy\@smashboxa}%
2568 \if@visible \@hvsmash#1{\@@underline{\@bphantom\@smashboxa}}\fi
2569 \@mathbox#1\@smashboxb{\@@underline{\box\@smashboxa}}%
2570 \@bphantom\@smashboxb}
2572 \let\@@overline=\overline
2574 \def\overline#1{\mathchoice{\@xoverline\displaystyle{#1}}{\@xoverline
2575 \textstyle{#1}}{\@xoverline\scriptstyle{#1}}{\@xoverline
2576 \scriptscriptstyle{#1}}}
2578 \def\@xoverline#1#2{%
2579 \@mathbox#1\@smashboxa{#2}\@hvsmash#1{\copy\@smashboxa}%
2580 \if@visible \@hvsmash#1{\@@overline{\@bphantom\@smashboxa}}\fi
2581 \@mathbox#1\@smashboxb{\@@overline{\box\@smashboxa}}%
2582 \@bphantom\@smashboxb}
2585 % \changes{v2.0b}{1993/04/14}{Corrected \cs{frac} command.}
2586 % \changes{v2.0d}{1993/11/12}{Removed \cs{vcenter} in \cs{@frac}.}
2589 % \@frac {STYLE}{DENOMSTYLE}{NUM}{DEN}{FONTSIZE} :
2590 % Creates \frac{NUM}{DENOM}
2591 % in style STYLE with NUM and DENOM in style DENOMSTYLE
2592 % FONTSIZE should be \textfont \scriptfont or \scriptscriptfont
2594 % Added a group around the first argument of |\frac| to prevent
2595 % changes (for example font changes) to modify the contents of the
2597 % \changes{v2.1c}{1993/12/13}{Added group around first arg.}
2599 \def\frac#1#2{\mathchoice
2600 {\@frac\displaystyle\textstyle{#1}{#2}\textfont}{\@frac
2601 \textstyle\scriptstyle{#1}{#2}\textfont}{\@frac
2602 \scriptstyle\scriptscriptstyle{#1}{#2}\scriptfont}{\@frac
2603 \scriptscriptstyle\scriptscriptstyle{#1}{#2}\scriptscriptfont}}
2605 \def\@frac#1#2#3#4#5{%
2606 \@mathbox#1\@smashboxc{{\begingroup#3\endgroup\over#4}}%
2608 \ht\tw@ \ht\@smashboxc
2609 \dp\tw@ \dp\@smashboxc
2610 \wd\tw@ \wd\@smashboxc
2611 \box\if@visible\@smashboxc\else\tw@\fi}
2613 \def\r@@t#1#2{\setbox\z@\hbox{$\m@th#1\@xysqrt#1{#2}$}%
2614 \dimen@\ht\z@ \advance\dimen@-\dp\z@
2615 \mskip5mu\raise.6\dimen@\copy\rootbox \mskip-10mu\box\z@}
2617 % \changes{v2.3w}{1996/05/15}{Removed use of obsolete command
2618 % \cs{@@sqrt} (CAR)}
2620 \def\sqrt{\@ifnextchar[{\@sqrt}{\@xsqrt}}
2621 \def\@sqrt[#1]{\root #1\of}
2622 \def\@xsqrt#1{\mathchoice{\@xysqrt\displaystyle{#1}}{\@xysqrt
2623 \textstyle{#1}}{\@xysqrt\scriptstyle{#1}}{\@xysqrt
2624 \scriptscriptstyle{#1}}}
2625 \def\@xysqrt#1#2{\@mathbox#1\@smashboxa{#2}\if@visible
2626 \@hvsmash#1{\sqrtsign{\@bphantom\@smashboxa}}\fi
2627 \phantom{\sqrtsign{\@vbphantom\@smashboxa}}\box\@smashboxa}
2634 % array and tabular environments: changes to `\verb+|+', |\hline|,
2635 % |\cline|, and |\vline|,
2638 \def\@arrayrule{\if@visible\@addtopreamble{\hskip -.5\arrayrulewidth
2639 \vrule \@width \arrayrulewidth\hskip -.5\arrayrulewidth}\fi}
2642 % \changes{v2.3t}{1996/01/31}{Change in \cs{cline} calling interface}
2644 \def\cline#1{\if@visible\@cline#1\@nil\fi}
2646 \def\hline{\noalign{\ifnum0=`}\fi
2647 \if@visible \hrule \@height \arrayrulewidth
2648 \else \hrule \@width \z@
2650 \futurelet \reserved@a\@xhline}
2652 \def\vline{\if@visible \vrule \@width \arrayrulewidth
2653 \else \vrule \@width \arrayrulewidth \@height \z@
2661 % \subsubsection{Changes to \LaTeX{} output routine}
2666 % % Following test added for slides to check if extra page
2667 % if @makingslides = T
2668 % then if \c@page > 0
2669 % then if \c@note > 0
2670 % then type 'Note \thenote too long.'
2671 % else if \c@overlay > 0
2672 % then type 'Overlay \theoverlay too long.'
2673 % else type 'Slide \theslide too long'
2675 % ifvoid \insert\footins
2676 % then \@outputbox := \box255
2677 % else \@outputbox := \vbox {\unvbox255
2678 % \vskip \skip\footins
2680 % \unvbox\@footinsert
2683 % \@freelist :=G \@freelist * \@midlist
2684 % \@midlist :=G empty
2686 % \@outputbox := \vbox to \@colht{\boxmaxdepth := \maxdepth
2687 % \vfil %%\vfil added for slides
2688 % \unvbox\@outputbox
2689 % \vfil } %%\vfil added for slides
2690 % \maxdepth :=G \@maxdepth
2693 % FMi simple hack to allow none centered slides Should be revised
2698 \def\@makecol{\if@makingslides\ifnum\c@page>\z@ \@extraslide\fi\fi
2699 \ifvoid\footins \setbox\@outputbox\box\@cclv \let\@botfil\vfil
2700 \else\let\@botfil\relax\setbox\@outputbox
2701 \vbox{\unvbox\@cclv\vfil
2702 \vskip\skip\footins\footnoterule\unvbox\footins\vskip
2703 \z@ plus.1fil\relax}\fi
2704 \xdef\@freelist{\@freelist\@midlist}\gdef\@midlist{}\@combinefloats
2705 \setbox\@outputbox\vbox to\@colht{\boxmaxdepth\maxdepth
2706 \@topfil\unvbox\@outputbox\@botfil}\global\maxdepth\@maxdepth}
2708 \def\@extraslide{\ifnum\c@note>\z@
2709 \ClassWarning{slides}{Note \thenote\space too long}\else
2710 \ifnum\c@overlay>\z@
2711 \ClassWarning{slides}{Overlay \theoverlay\space too long}\else
2712 \ClassWarning{slides}{Slide \theslide\space too long}\fi\fi}
2720 % \subsubsection{Special \SLiTeX{} initializations}
2722 %FMi why not allow for ref's ?