Debian Codegraph @

texmf-dist/source/latex/base/slides.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 1993-2025
4 % The LaTeX Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
9 %
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 % https://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2008 or later.
17 %
18 % This file has the LPPL maintenance status "maintained".
19 %
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
22 % information.
23 %
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.
27 %
28 % \fi
29 %
30 % \iffalse
31 % Copyright (C) 1994-97 LaTeX Project, Frank Mittelbach
32 % and Rainer Sch\"opf, all rights reserved.
33 %
34 % \begin{macrocode}
35 %<+class>\NeedsTeXFormat{LaTeX2e}[1997/06/01]
36 % \end{macrocode}
37 %
38 % Announce the Class name and its version:
39 % \changes{v2.3b}{1994/05/01}{Removed the use of \cs{fileversion}
40 % c.s.}
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
43 % \cs{hb@xt@}.}
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).}
50 % \begin{macrocode}
51 %<+class>\ProvidesClass{slides}
52 %<+cmd>\ProvidesFile{slides.def}
53 %<*driver>
54 \ProvidesFile{slides.drv}
55 %</driver>
56 [2022/05/18 v2.4b
57 %<+class> Standard LaTeX document class]
58 %<+cmd> SLiTeX definitions]
59 % \end{macrocode}
60 %
61 % \section{A driver for this document}
62 %
63 % \changes{v2.3f}{1994/05/26}{Moved the driver to the front of the
64 % file; it doesn't print any longer}
65 %
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
69 % \dst{} program.
70 % \begin{macrocode}
71 %<*driver>
72 ]
73 \documentclass{ltxdoc}
74 % \end{macrocode}
75 % The following command retrieves the date and version information
76 % from the file.
77 % \begin{macrocode}
78 \GetFileInfo{slides.drv}
79 % \end{macrocode}
80 % Some commonly used abbreviations:
81 % \changes{v2.3h}{1994/06/01}{Added definition of \cs{SLiTeX}.}
82 % \begin{macrocode}
83 \DeclareRobustCommand{\SLiTeX}{{%
84 \normalfont S\kern -.06em
85 {\scshape l\kern -.035emi}\kern -.06em
86 \TeX
87 }}
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}}
93 %
94 % \end{macrocode}
95 % Now start the document and input this file.
96 % \changes{v2.3d}{1994/05/12}{Added a missing \cs{begin\{macrocode\}}}
97 % \begin{macrocode}
98 \begin{document}
99 \DocInput{slides.dtx}
100 \end{document}
101 %</driver>
102 % \end{macrocode}
103 %\fi
104 %
105 %
106 % \changes{v2.1b}{1993/12/13}{Removed \cs{CodelineIndex} from the
107 % driver code.}
108 % \changes{v2.1e}{1993/12/16}{Removed again different definitions for
109 % font commands font commands in non-compatibility mode.}
110 %
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
131 % with an argument}
132 % \changes{v2.3n}{1995/04/02}{a slight documentation fix (PR 1517)}
133 %
134 % \title{Producing slides with \LaTeXe{}}
135 % \author{Frank Mittelbach}
136 % \date{\filedate}
137 %
138 % \maketitle
139 % \MaintainedByLaTeXTeam{latex}
140 %
141 % \section{Introduction}
142 %
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
146 % into play.
147 %
148 % \section{Usage}
149 %
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
157 % like
158 % \begin{verbatim}
159 % \documentclass[...]{slides}
160 % \end{verbatim}
161 % and process this with \LaTeXe.
162 %
163 % \section{Fonts}
164 %
165 % Note, 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.
170 %
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.
175 %
176 % \section{Invisible text and color separation}
177 %
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.
184 %
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
198 % visible.
199 %
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.
207 %
208 % \MaybeStop{}
209 %
210 %
211 % \section{The Implementation}
212 %
213 % \begin{quote}
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!
220 % \end{quote}
221 %
222 % The code is divided into two parts, we first implement the class
223 % related functions and declarations and then define low level 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
226 % classes.
227 %
228 % \subsection{The class code}
229 %
230 % At this point we input the redefinitions that are necessary for
231 % \SLiTeX.
232 % \changes{v2.3g}{1994/05/26}{Use \cs{input} instead of \cs{@@input}}
233 % \begin{macrocode}
234 %<*class>
235 \input{slides.def}
236 % \end{macrocode}
237 %
238 %
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}}
246 % \begin{macrocode}
247 \InputIfFileExists{sfonts.cfg}
248 {\typeout{**************************************^^J%
249 *^^J%
250 * Local config file sfonts.cfg used^^J%
251 *^^J%
252 **************************************}}%
253 {\input{sfonts.def}}
254 % \end{macrocode}
255 %
256 % \section{Declaration of Options}
257 %
258 % We declare a few options as illegal.
259 %
260 %
261 % \subsection{Setting Paper Sizes}
262 %
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}
269 % \begin{macrocode}
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}}
288 % \end{macrocode}
289 %
290 % The option \Lopt{landscape} switches the values of |\paperheight|
291 % and |\paperwidth|, assuming the dimensions were given for portrait
292 % paper.
293 % \begin{macrocode}
294 \DeclareOption{landscape}
295 {\setlength\@tempdima {\paperheight}%
296 \setlength\paperheight {\paperwidth}%
297 \setlength\paperwidth {\@tempdima}}
298 % \end{macrocode}
299 %
300 % \subsection{The clock option}
301
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
304 % time.
305 % \begin{macrocode}
306 \newif\if@clock \@clockfalse
307 \DeclareOption{clock}{\@clocktrue
308 \AtEndDocument{\typeout{\@arabic\c@minutes\space minutes}}
309 }%
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}
316
317 % \end{macrocode}
318 %
319 % \subsection{Two-side or one-side printing}
320 %
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.}
324 % \begin{macrocode}
325 \@twosidefalse
326 % \end{macrocode}
327 %
328 %
329 % \subsection{Draft option}
330 %
331 % If the user requests \Lopt{draft} we show any overfull boxes.
332 % We could probably add some more interesting stuff to this option.
333 % \begin{macrocode}
334 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
335 \DeclareOption{final}{\setlength\overfullrule{0pt}}
336 % \end{macrocode}
337 %
338 % \subsection{Titlepage option}
339 % The default is for a |\maketitle| command to make a new page.
340 % \begin{macrocode}
341 \newif\if@titlepage
342 \@titlepagetrue
343 \DeclareOption{titlepage}{\@titlepagetrue}
344 \DeclareOption{notitlepage}{\@titlepagefalse}
345 % \end{macrocode}
346 %
347 % \subsection{Twocolumn printing}
348 %
349 % Two-column printing is again forbidden.
350 % \changes{v2.3e}{1994/05/22}{twocolumn produces only a warning}
351 % \begin{macrocode}
352 \DeclareOption{onecolumn}{}
353 \DeclareOption{twocolumn}{%
354 \ClassWarning{slides}{No 'twocolumn' layout for slides}}
355 % \end{macrocode}
356 %
357 % \subsection{Equation numbering on the left}
358 %
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}
362 % file.}
363 % \begin{macrocode}
364 \DeclareOption{leqno}{\input{leqno.clo}}
365 % \end{macrocode}
366 %
367 % \subsection{Flush left displays}
368 %
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.}
373 % \begin{macrocode}
374 \DeclareOption{fleqn}{\input{fleqn.clo}}
375 % \end{macrocode}
376 %
377 %
378 % \section{Executing Options}
379 %
380 % Here we execute the default options to initialize certain
381 % variables.
382 % \begin{macrocode}
383 \ExecuteOptions{letterpaper,final}
384 % \end{macrocode}
385 %
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.
394 % \begin{macrocode}
395 \ProcessOptions
396 % \end{macrocode}
397 %
398 % \section{Loading Packages}
399 %
400 % The standard class files do not load additional packages.
401 %
402 %
403 % \section{Document Layout}
404 %
405 %
406 % In this section we are finally dealing with the nasty typographical
407 % details.
408 %
409 %
410 %
411 % \subsection{Fonts}
412 %
413 % \begin{macrocode}
414 % FMi:
415 \def\rmdefault{lcmss} % no roman
416 \def\sfdefault{lcmss}
417 \def\ttdefault{lcmtt}
418 \def\itdefault{sl}
419 \def\sldefault{sl}
420 \def\bfdefault{bx}
421 % \end{macrocode}
422 % As |\fontshape| gets redefined we need to make sure that the default
423 % for |\upshape| is no longer \texttt{up} but again \texttt{n}.
424 % \changes{v2.4b}{2019/11/04}{Explicitly set \cs{updefault}}
425 % \begin{macrocode}
426 \def\updefault{n}
427 % \end{macrocode}
428 %
429 %
430 % Since the number of parameters to set are very large it seems
431 % reasonable to set up one command |\@setfontsize@parms| which will
432 % do the work for us.
433 %
434 % \LaTeX\ offers the user commands to change the size of the font,
435 % relative to the `main' size. Each relative size changing command
436 % |\size| executes the command
437 % |\@setfontsize||\size|\meta{font-size}\meta{baselineskip} where:
438 %
439 % \begin{description}
440 % \item[\meta{font-size}] The absolute size of the font to use from
441 % now on.
442 %
443 % \item[\meta{baselineskip}] The normal value of |\baselineskip|
444 % for the size of the font selected. (The actual value will be
445 % |\baselinestretch| * \meta{baselineskip}.)
446 % \end{description}
447 %
448 % A number of commands, defined in the \LaTeX{} kernel, shorten the
449 % following definitions and are used throughout. They are:
450 % \begin{center}
451 % \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
452 % \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
453 % \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
454 % \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
455 % ...
456 % \end{tabular}
457 % \end{center}
458 %
459 % \begin{macro}{\ifourteenpt}
460 % \begin{macro}{\iseventeenpt}
461 % \begin{macro}{\itwentypt}
462 % \begin{macro}{\itwentyfourpt}
463 % \begin{macro}{\itwentyninept}
464 % \begin{macro}{\ithirtyfourpt}
465 % \begin{macro}{\ifortyonept}
466 % For \SLiTeX{}, however, these are not sufficient, and we therefore
467 % need to add a few extra, larger, sizes.
468 % \begin{macrocode}
469 \def\ifourteenpt{13.82}
470 \def\iseventeenpt{16.59}
471 \def\itwentypt{19.907}
472 \def\itwentyfourpt{23.89}
473 \def\itwentyninept{28.66}
474 \def\ithirtyfourpt{34.4}
475 \def\ifortyonept{41.28}
476 % \end{macrocode}
477 % \end{macro}
478 % \end{macro}
479 % \end{macro}
480 % \end{macro}
481 % \end{macro}
482 % \end{macro}
483 % \end{macro}
484 %
485 % \begin{macro}{\@setfontsize@parms}
486 % This routine is used in \SliTeX{} to interface font size setting
487 % it is modeled after the settings I found in \texttt{slides.sty}, so
488 % it probably needs an update. But any class is free to redefine
489 % it, as it is used only as an abbreviation.
490 % It's syntax is:
491 % \begin{quote}
492 % |\@setfontsize@parms| \\
493 % | |\meta{lineskip} \\
494 % | |\meta{parskip} \\
495 % | |\meta{abovedisplayskip} \\
496 % | |\meta{belowdisplayskip} \\
497 % | |\meta{abovedisplayshortskip} \\
498 % | |\meta{belowdisplayshortskip} \\
499 % | |\meta{strut ht} \meta{strut dp} (without pt)
500 % \end{quote}
501 %
502 % For NFSS1 a similar style existed which did run both with a
503 % \SliTeX{} with old font selection or with NFSS1. But when no
504 % separate format is made this doesn't make much sense.
505 % So the following note is history and would only be true if all NFSS
506 % stuff would be removed from the file and placed into the format.
507 % \begin{quote}\small
508 % Note: To interface the old \texttt{sfonts.tex} the \meta{size} must be
509 % hidden in commands denoting the size by its name prefixed with
510 % `i', i.e.\ 20pt size is called |\itwentypt| at this point. The
511 % NFSS interface will define those sizes to expand to the internal
512 % size, e.g.\ 20 but for the old sfonts the command name, e.g.
513 % |\itwentypt|, will be used to construct the name |\twentypt| etc.
514 %
515 % This is a crude interface to the old \texttt{sfonts.tex}. It will
516 % be a bit slower than the old one because it must define |\@tiny|
517 % etc.\ every time a size changes.
518 % \end{quote}
519 %
520 % If classes are set up that are only for use with NFSS then the second
521 % argument may be an ordinary font size!
522 % \changes{v2.0d}{1993/11/12}{Replaced all pt by \cs{p@}, corrected
523 % definition for \cs{tiny}.}
524 %
525 % \begin{macrocode}
526 \def\@setfontsize@parms#1#2#3#4#5#6#7#8{%
527 \lineskip #1\relax%
528 \parskip #2\relax
529 \abovedisplayskip #3\relax
530 \belowdisplayskip #4\relax
531 \abovedisplayshortskip #5\relax
532 \belowdisplayshortskip #6\relax
533 %
534 % \end{macrocode}
535 % I don't see a reason why the |\strutbox| has a dim different from
536 % |\baselineskip| but we will leave it for the moment
537 % \begin{macrocode}
538 \setbox\strutbox=\hbox{\vrule \@height#7\p@\@depth#8\p@\@width\z@}%
539 \baselineskip\baselinestretch\baselineskip
540 \normalbaselineskip\baselineskip}
541 % \end{macrocode}
542 % \end{macro}
543 %
544 % Setting size relations for math scripts:
545 % \changes{v2.2e}{1994/02/07}{Corrected entry for size 23.89.}
546 % \begin{macrocode}
547 \DeclareMathSizes{13.82}{13.82}{10}{7}
548 \DeclareMathSizes{16.59}{16.59}{12}{7}
549 \DeclareMathSizes{19.907}{19.907}{16.59}{13.82}
550 \DeclareMathSizes{23.89}{23.89}{19.907}{16.59}
551 \DeclareMathSizes{28.66}{28.66}{23.89}{19.907}
552 \DeclareMathSizes{34.4}{34.4}{28.66}{23.89}
553 \DeclareMathSizes{41.28}{41.28}{34.4}{28.66}
554 % \end{macrocode}
555 %
556 % \begin{macro}{\normalsize}
557 % \begin{macrocode}
558 \def\normalsize{%
559 \@setfontsize\normalsize\itwentypt{28\p@ plus3\p@ minus4\p@}%
560 % {20}{30\p@ plus3\p@ minus3\p@}% made a bit shorter
561 \@setfontsize@parms
562 {2pt}%
563 {30\p@ plus18\p@ minus9\p@}%
564 {15\p@ plus3\p@ minus3\p@}%
565 {10\p@ plus3\p@ minus3\p@}%
566 {10\p@ plus3\p@}
567 \abovedisplayshortskip
568 {17}{7}}
569 % \end{macrocode}
570 % \end{macro}
571 %
572 %
573 % We initially choose the normalsize font.
574 % \begin{macrocode}
575 \normalsize
576 % \end{macrocode}
577 %
578 % \begin{macro}{\small}
579 % \begin{macrocode}
580 \def\small{\@setfontsize\small\iseventeenpt{19\p@ plus3\p@ minus\p@}%
581 \@setfontsize@parms
582 {2\p@}%
583 {15\p@ plus15\p@ minus7\p@}%
584 {12\p@ plus3\p@ minus3\p@}%
585 {9\p@ plus3\p@ minus3\p@}%
586 {6\p@ plus3\p@}%
587 \abovedisplayshortskip
588 {13.5}{5.6}}
589 % \end{macrocode}
590 % \end{macro}
591 %
592 % \begin{macro}{\footnotesize}
593 % \begin{macro}{\scriptsize}
594 % \begin{macrocode}
595 \let\footnotesize=\small
596 \let\scriptsize=\small
597 % \end{macrocode}
598 % \end{macro}
599 % \end{macro}
600 %
601 % \begin{macro}{\tiny}
602 % \begin{macrocode}
603 \def\tiny{\@setfontsize\tiny\ifourteenpt{16\p@ plus2\p@ minus\p@}%
604 \@setfontsize@parms
605 {2pt}%
606 {14\p@ plus3\p@ minus10\p@}%
607 {11\p@ plus3\p@ minus10\p@}%
608 \abovedisplayskip
609 {8\p@ plus3\p@ minus5\p@}%
610 {\z@ plus3\p@}%
611 {10}{4}}
612 % \end{macrocode}
613 % \end{macro}
614 %
615 % Actually copying the code above would be better because this would
616 % correct the error message. Maybe one should remove the first
617 % argument of |\set@font@size@parms|.
618 %
619 % \begin{macro}{\large}
620 % \begin{macro}{\Large}
621 % \begin{macro}{\LARGE}
622 % \begin{macro}{\huge}
623 % \begin{macro}{\Huge}
624 % \begin{macrocode}
625 \def\large{\@setfontsize\large\itwentyfourpt{42\p@ plus8\p@ minus5\p@}%
626 \@setfontsize@parms
627 {2\p@}%
628 {40\p@ plus20\p@ minus4\p@}%
629 {20\p@ plus8\p@ minus3\p@}%
630 \abovedisplayskip
631 {10\p@ plus5\p@}%
632 \abovedisplayshortskip
633 {20}{8.5}}
634
635 \def\Large{\@setfontsize\Large\itwentyninept{48\p@ plus10\p@ minus6\p@}%
636 \@setfontsize@parms
637 {2\p@}%
638 {48\p@ plus30\p@ minus6\p@}%
639 {24\p@ plus10\p@ minus6\p@}%
640 \abovedisplayskip
641 {12\p@ plus8\p@}%
642 \abovedisplayshortskip
643 {27}{11}}
644
645 \def\LARGE{\@setfontsize\LARGE\ithirtyfourpt{52\p@ plus10\p@ minus6\p@}%
646 \@setfontsize@parms
647 {2\p@}%
648 {52\p@ plus30\p@ minus6\p@}%
649 {24\p@ plus10\p@ minus6\p@}%
650 \abovedisplayskip
651 {12\p@ plus8\p@}%
652 \abovedisplayshortskip
653 {27}{11}}
654
655 \def\huge{\@setfontsize\huge\ifortyonept{60\p@ plus10\p@ minus6\p@}%
656 \@setfontsize@parms
657 {2\p@}%
658 {60\p@ plus30\p@ minus6\p@}%
659 {24\p@ plus10\p@ minus6\p@}%
660 \abovedisplayskip
661 {12\p@ plus8\p@}%
662 \abovedisplayshortskip
663 {27}{11}}
664
665 \let\Huge\huge
666 % \end{macrocode}
667 % \end{macro}
668 % \end{macro}
669 % \end{macro}
670 % \end{macro}
671 % \end{macro}
672 %
673 % \subsection{Paragraphing}
674 %
675 % \begin{macro}{\baselinestretch}
676 % This is used as a multiplier for |\baselineskip|. The default is
677 % to {\em not\/} stretch the baselines.
678 % \begin{macrocode}
679 \renewcommand\baselinestretch{}
680 % \end{macrocode}
681 % \end{macro}
682 %
683 % \begin{macro}{\parindent}
684 % |\parindent| is the width of the paragraph indentation.
685 % \begin{macrocode}
686 \setlength\parindent{\z@}
687 % \end{macrocode}
688 % \end{macro}
689 %
690 % \begin{macro}{\@lowpenalty}
691 % \begin{macro}{\@medpenalty}
692 % \begin{macro}{\@highpenalty}%
693 % The commands |\nopagebreak| and |\nolinebreak| put in penalties
694 % to discourage these breaks at the point they are put in.
695 % They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|,
696 % dependent on their argument.
697 % \begin{macrocode}
698 \@lowpenalty 51
699 \@medpenalty 151
700 \@highpenalty 301
701 % \end{macrocode}
702 % \end{macro}
703 % \end{macro}
704 % \end{macro}
705 %
706 % \begin{macro}{\clubpenalty}
707 % \begin{macro}{\widowpenalty}
708 % These penalties are use to discourage club and widow lines.
709 % Because we use their default values we only show them here,
710 % commented out.
711 % \begin{macrocode}
712 % \clubpenalty 150
713 % \widowpenalty 150
714 % \end{macrocode}
715 % \end{macro}
716 % \end{macro}
717 %
718 % \begin{macro}{\displaywidowpenalty}
719 % \begin{macro}{\predisplaypenalty}
720 % \begin{macro}{\postdisplaypenalty}
721 % Discourage (but not so much) widows in front of a math display
722 % and forbid breaking directly in front of a display. Allow break
723 % after a display without a penalty. Again the default values are
724 % used, therefore we only show them here.
725 % \begin{macrocode}
726 % \displaywidowpenalty 50
727 % \predisplaypenalty 10000
728 % \postdisplaypenalty 0
729 % \end{macrocode}
730 % \end{macro}
731 % \end{macro}
732 % \end{macro}
733 %
734 % \begin{macro}{\interlinepenalty}
735 % Allow the breaking of a page in the middle of a paragraph.
736 % \begin{macrocode}
737 % \interlinepenalty 0
738 % \end{macrocode}
739 % \end{macro}
740 %
741 %
742 % \begin{macro}{\brokenpenalty}
743 % We allow the breaking of a page after a hyphenated line.
744 % \begin{macrocode}
745 % \brokenpenalty 0
746 % \end{macrocode}
747 % \end{macro}
748 %
749 %
750 % \subsection{Page Layout}
751 %
752 % All margin dimensions are measured from a point one inch from the
753 % top and lefthand side of the page.
754 %
755 % \subsubsection{Vertical spacing}
756 %
757 % \begin{macro}{\headheight}
758 % \begin{macro}{\headsep}
759 % \begin{macro}{\topskip}
760 % The |\headheight| is the height of the box that will contain the
761 % running head. The |\headsep| is the distance between the bottom
762 % of the running head and the top of the text. |\topskip| is the
763 % |\baselineskip| for the first line on a page.
764 % \begin{macrocode}
765 \setlength\headheight{14\p@}
766 \setlength\headsep {15\p@}
767 \setlength\topskip {30\p@}
768 % \end{macrocode}
769 % \end{macro}
770 % \end{macro}
771 % \end{macro}
772 %
773 % \begin{macro}{\footskip}
774 % The distance from the baseline of the box which contains the
775 % running footer to the baseline of last line of text is controlled
776 % by the |\footskip|.
777 % Bottom of page:
778 % \begin{macrocode}
779 \setlength\footskip{25\p@} %
780 % \end{macrocode}
781 % \end{macro}
782 %
783 % \begin{macro}{\maxdepth}
784 % \begin{macro}{\@maxdepth}
785 % \changes{v2.3c}{1994/05/06}{Added setting of \cs{maxdepth} and
786 % \cs{@maxdepth}}
787 % The \TeX\ primitive register |\maxdepth| has a function that is
788 % similar to that of |\topskip|. The register |\@maxdepth| should
789 % always contain a copy of |\maxdepth|. In both plain \TeX\ and
790 % \LaTeX~2.09 |\maxdepth| had a fixed value of \texttt{4pt}; in
791 % native \LaTeX2e\ mode we let the value depend on the typesize. We
792 % set it so that |\maxdepth| $+$ |\topskip| $=$ typesize $\times
793 % 1.5$. As it happens, in these classes |\topskip| is equal to the
794 % typesize, therefor we set |\maxdepth| to half the value of
795 % |\topskip|.
796 % \begin{macrocode}
797 \if@compatibility
798 \setlength\maxdepth{4\p@}
799 \else
800 \setlength\maxdepth{.5\topskip}
801 \fi
802 \setlength\@maxdepth\maxdepth
803 % \end{macrocode}
804 % \end{macro}
805 % \end{macro}
806 %
807 % \subsubsection{The dimension of text}
808 %
809 % \begin{macro}{\textwidth}
810 % When we are in compatibility mode we have to make sure that the
811 % dimensions of the printed area are not different from what the
812 % user was used to see.
813 %
814 % \begin{macrocode}
815 \if@compatibility
816 \setlength\textwidth{460\p@}
817 % \end{macrocode}
818 % When we are not in compatibility mode we can set some of the
819 % dimensions differently, taking into account the paper size for
820 % instance.
821 % \begin{macrocode}
822 \else
823 % \end{macrocode}
824 % First, we calculate the maximum textwidth, which depends on the
825 % papersize. Then we calculate the approximate length of 65
826 % characters, which should be the maximum length of a line of text.
827 % The calculated values are stored in |\@tempdima| and |\@tempdimb|.
828 % \begin{macrocode}
829 \setlength\@tempdima{\paperwidth}
830 \addtolength\@tempdima{-2in}
831 \setbox\@tempboxa\hbox{\rmfamily im}
832 \setlength\@tempdimb{.5\wd\@tempboxa}
833 \setlength\@tempdimb{65\@tempdimb}
834 % \end{macrocode}
835 %
836 % Now we can set the |\textwidth|, depending on whether we will be
837 % setting one or two columns.
838 %
839 % The text should not be wider than the minimum
840 % of the paperwidth (minus 2 inches for the margins) and the
841 % maximum length of a line as defined by the number of characters.
842 % \begin{macrocode}
843 \ifdim\@tempdima>\@tempdimb\relax
844 \setlength\textwidth{\@tempdimb}
845 \else
846 \setlength\textwidth{\@tempdima}
847 \fi
848 \fi
849 % \end{macrocode}
850 %
851 % Here we modify the width of the text a little to be a whole
852 % number of points.
853 % \begin{macrocode}
854 \@settopoint\textwidth
855 % \end{macrocode}
856 % \end{macro}
857 %
858 % \begin{macro}{\columnwidth}
859 % \begin{macro}{\columnsep}
860 % \begin{macro}{\columnseprule}
861 % \begin{macrocode}
862 \columnwidth \textwidth
863 \columnsep 10pt
864 \columnseprule \z@
865 % \end{macrocode}
866 % \end{macro}
867 % \end{macro}
868 % \end{macro}
869 % \begin{macro}{\textheight}
870 % Now that we have computed the width of the text, we have to take
871 % care of the height. The |\textheight| is the height of text
872 % (including footnotes and figures, excluding running head and
873 % foot).
874 %
875 % First make sure that the compatibility mode gets the same
876 % dimensions as we had with \LaTeX2.09. The number of lines was
877 % calculated as the floor of the old |\textheight| minus
878 % |\topskip|, divided by |\baselineskip| for |\normalsize|. The
879 % old value of |\textheight| was 528pt.
880 %
881 % \begin{macrocode}
882 \if@compatibility
883 \setlength\textheight{600\p@}
884 % \end{macrocode}
885 %
886 % Again we compute this, depending on the papersize and depending
887 % on the baselineskip that is used, in order to have a whole number
888 % of lines on the page.
889 % \begin{macrocode}
890 \else
891 \setlength\@tempdima{\paperheight}
892 % \end{macrocode}
893 %
894 % We leave at least a 1 inch margin on the top and the bottom of
895 % the page.
896 % \begin{macrocode}
897 \addtolength\@tempdima{-2in}
898 % \end{macrocode}
899 %
900 % We also have to leave room for the running headers and footers.
901 % \begin{macrocode}
902 \addtolength\@tempdima{-1in}
903 % \end{macrocode}
904 %
905 % Then we divide the result by the current |\baselineskip| and
906 % store this in the count register |\@tempcnta|, which then
907 % contains the number of lines that fit on this page.
908 % \begin{macrocode}
909 \divide\@tempdima\baselineskip
910 \@tempcnta=\@tempdima
911 % \end{macrocode}
912 %
913 % From this we can calculate the height of the text.
914 % \begin{macrocode}
915 \setlength\textheight{\@tempcnta\baselineskip}
916 \fi
917 % \end{macrocode}
918 %
919 % The first line on the page has a height of |\topskip|.
920 % \begin{macrocode}
921 \advance\textheight by \topskip
922 % \end{macrocode}
923 % \end{macro}
924 %
925 % \subsubsection{Margins}
926 %
927 % \begin{macro}{\oddsidemargin}
928 % \begin{macro}{\evensidemargin}
929 % \begin{macro}{\marginparwidth}
930 % First we give the values for the compatibility mode.
931 %
932 % Values for two-sided printing:
933 % \begin{macrocode}
934 \if@compatibility
935 \setlength\oddsidemargin {17\p@}
936 \setlength\evensidemargin {17\p@}
937 \setlength\marginparwidth {20\p@}
938 \else
939 % \end{macrocode}
940 %
941 % When we are not in compatibility mode we can take the dimensions
942 % of the selected paper into account.
943 %
944 % We center the text on the page, by
945 % calculating the difference between |textwidth| and
946 % |\paperwidth|$-$|2in|. Half of that difference is then used for
947 % the margin. The amount of space that can be used for marginal
948 % notes is at least 0.8~inch, to which we add any `leftover' space.
949 % \begin{macrocode}
950 \setlength\@tempdima {\paperwidth}
951 \addtolength\@tempdima {-2in}
952 \addtolength\@tempdima {-\textwidth}
953 \setlength\oddsidemargin {.5\@tempdima}
954 \setlength\marginparwidth {.8in}
955 \addtolength\marginparwidth {.5\@tempdima}
956 % \end{macrocode}
957 %
958 % The |\evensidemargin| can now be computed from the values set
959 % above.
960 % \begin{macrocode}
961 \setlength\evensidemargin {\paperwidth}
962 \addtolength\evensidemargin{-2in}
963 \addtolength\evensidemargin{-\textwidth}
964 \addtolength\evensidemargin{-\oddsidemargin}
965 \fi
966 % \end{macrocode}
967 % \end{macro}
968 % \end{macro}
969 % \end{macro}
970 %
971 % \begin{macro}{\marginparsep}
972 % \begin{macro}{\marginparpush}
973 % The horizontal space between the main text and marginal notes is
974 % determined by |\marginparsep|, the minimum vertical separation
975 % between two marginal notes is controlled by |\marginparpush|.
976 % \begin{macrocode}
977 \setlength\marginparsep {5\p@}
978 \setlength\marginparpush{5\p@}
979 % \end{macrocode}
980 % \end{macro}
981 % \end{macro}
982 %
983 % \begin{macro}{\topmargin}
984 % The |\topmargin| is the distance between the top of `the
985 % printable area' --which is 1 inch below the top of the paper--
986 % and the top of the box which contains the running head.
987 %
988 % It can now be computed from the values set above.
989 % \begin{macrocode}
990 \if@compatibility
991 \setlength\topmargin{-10pt}
992 \else
993 \setlength\topmargin{\paperheight}
994 \addtolength\topmargin{-2in}
995 \addtolength\topmargin{-\headheight}
996 \addtolength\topmargin{-\headsep}
997 \addtolength\topmargin{-\textheight}
998 \addtolength\topmargin{-\footskip} % this might be wrong!
999 % \end{macrocode}
1000 % By changing the factor in the next line the complete page
1001 % can be shifted vertically.
1002 % \begin{macrocode}
1003 \addtolength\topmargin{-.5\topmargin}
1004 \fi
1005 \@settopoint\topmargin
1006 % \end{macrocode}
1007 % \end{macro}
1008 %
1009 %
1010 % \subsubsection{Footnotes}
1011 %
1012 % \begin{macro}{\footnotesep}
1013 % |\footnotesep| is the height of the strut placed at the beginning
1014 % of every footnote. It equals the height of a normal
1015 % |\footnotesize| strut in this
1016 % class, thus no extra space occurs between footnotes.
1017 % \begin{macrocode}
1018 \setlength\footnotesep{20\p@}
1019 % \end{macrocode}
1020 % \end{macro}
1021 %
1022 % \begin{macro}{\footins}
1023 % |\skip\footins| is the space between the last line of the main
1024 % text and the top of the first footnote.
1025 % \begin{macrocode}
1026 \setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@}
1027 % \end{macrocode}
1028 % \end{macro}
1029 %
1030 %
1031 % \subsection{Page Styles}
1032 %
1033 % The page style \pstyle{foo} is defined by defining the command
1034 % |\ps@foo|. This command should make only local definitions.
1035 % There should be no stray spaces in the definition, since they
1036 % could lead to mysterious extra spaces in the output (well, that's
1037 % something that should be always avoided).
1038 %
1039 % \begin{macro}{\@evenhead}
1040 % \begin{macro}{\@oddhead}
1041 % \begin{macro}{\@evenfoot}
1042 % \begin{macro}{\@oddfoot}
1043 % The |\ps@...| command defines the macros |\@oddhead|,
1044 % |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running
1045 % heads and feet---e.g., |\@oddhead| is the macro to produce the
1046 % contents of the heading box for odd-numbered pages. It is called
1047 % inside an |\hbox| of width |\textwidth|.
1048 % \end{macro}
1049 % \end{macro}
1050 % \end{macro}
1051 % \end{macro}
1052 %
1053 %
1054 % The page styles of slides is determined by the 'slide' page style,
1055 % the slide environment executing a |\thispagestyle{slide}| command.
1056 % The page styles of overlays and notes are similarly determined by
1057 % 'overlay' and 'note' page styles. The command standard 'headings',
1058 % 'plain' and 'empty' page styles work by redefining the 'slide',
1059 % 'overlay', and 'note' styles.
1060 %
1061 % \changes{v2.3q}{1995/09/20}{Wrap some long lines, and use \cs{null}.}
1062 % \begin{macro}{\ps@headings}
1063 % \begin{macrocode}
1064 \if@compatibility
1065 \def\ps@headings{%
1066 \def\ps@slide{\def\@oddfoot{\@mainsize +\hfil\hb@xt@3em{\theslide
1067 \hss}}%
1068 \def\@oddhead{\@mainsize +\hfil +}%
1069 \def\@evenfoot{\@mainsize +\hfil\hb@xt@3em{\theslide\hss}}%
1070 \def\@evenhead{\@mainsize +\hfil +}}
1071
1072 \def\ps@overlay{\def\@oddfoot{\@mainsize +\hfil\hb@xt@3em{\theoverlay
1073 \hss}}%
1074 \def\@oddhead{\@mainsize +\hfil +}%
1075 \def\@evenfoot{\@mainsize +\hfil\hb@xt@3em{\theoverlay\hss}}%
1076 \def\@evenhead{\@mainsize +\hfil +}}
1077 \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
1078 \def\@oddhead{}%
1079 \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
1080 \def\@evenhead{}}}
1081 %
1082 \else %%if@compatibility
1083 %
1084 \def\ps@headings{%
1085 \def\ps@slide{%
1086 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1087 \def\@oddhead{}%
1088 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1089 \def\@evenhead{}}
1090
1091 \def\ps@overlay{%
1092 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1093 \def\@oddhead{}%
1094 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1095 \def\@evenhead{}}
1096
1097 \def\ps@note{%
1098 \def\@oddfoot{%
1099 \@mainsize
1100 \if@clock
1101 \fbox{\large \@arabic\c@minutes\space min}%
1102 \else
1103 \null
1104 \fi
1105 \hfil\thenote}%
1106 \def\@oddhead{}%
1107 \def\@evenfoot{%
1108 \@mainsize
1109 \if@clock
1110 \fbox{\large \@arabic\c@minutes\space min}%
1111 \else
1112 \null
1113 \fi
1114 \hfil\thenote}%
1115 \def\@evenhead{}}}
1116 \fi %% if@compatibility
1117 % \end{macrocode}
1118 % \end{macro}
1119 %
1120 % \begin{macro}{\ps@plain}
1121 % \begin{macrocode}
1122 \def\ps@plain{\def\ps@slide{%
1123 \def\@oddfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1124 \def\@oddhead{}%
1125 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theslide\hss}}%
1126 \def\@evenhead{}}
1127 \def\ps@overlay{\def\@oddfoot{\@mainsize
1128 \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1129 \def\@oddhead{}%
1130 \def\@evenfoot{\@mainsize \mbox{}\hfil\hb@xt@3em{\theoverlay\hss}}%
1131 \def\@evenhead{}}
1132 \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
1133 \def\@oddhead{}%
1134 \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
1135 \def\@evenhead{}}}
1136 % \end{macrocode}
1137 % \end{macro}
1138 %
1139 % \begin{macro}{\ps@empty}
1140 % \begin{macrocode}
1141 \def\ps@empty{%
1142 \def\ps@slide{\def\@oddhead{}\def\@oddfoot{}%
1143 \def\@evenhead{}\def\@evenfoot{}}%
1144 \def\ps@overlay{\def\@oddhead{}\def\@oddfoot{}%
1145 \def\@evenhead{}\def\@evenfoot{}}%
1146 \def\ps@note{\def\@oddhead{}\def\@oddfoot{}%
1147 \def\@evenhead{}\def\@evenfoot{}}}
1148 % \end{macrocode}
1149 % \end{macro}
1150 %
1151 % Default definition the 'slide', 'overlay', and 'note' page styles.
1152 % \begin{macrocode}
1153 \ps@headings
1154 % \end{macrocode}
1155 % Set ordinary page style to 'empty'
1156 % \begin{macrocode}
1157 \let\@oddhead\@empty\let\@oddfoot\@empty
1158 \let\@evenhead\@empty\let\@evenfoot\@empty
1159 % \end{macrocode}
1160 %
1161 %
1162 % \subsection{Providing math {\em versions}}
1163 %
1164 % \LaTeX{} provides two {\em versions\/}. We call them
1165 % \textsf{normal} and \textsf{bold}, respectively.
1166 % \SliTeX{} does not have a \textsf{bold} version. But we treat the
1167 % invisible characters as a version. The only thing we have to take
1168 % care of is to ensure that we have exactly the same fonts in both
1169 % versions available.
1170 %
1171 % \begin{macrocode}
1172 \DeclareMathVersion{invisible}
1173 % \end{macrocode}
1174 %
1175 % Now we define the basic {\em math groups\/} used by \LaTeX{}. Later
1176 % on, in packages some other {\em math groups}, e.g., the AMS
1177 % symbol fonts, will be defined.
1178 %
1179 % As a default I used serif fonts for mathgroup 0 to get things like
1180 % \verb+\log+ look right.
1181 % \begin{macrocode}
1182 \SetSymbolFont{operators}{normal}
1183 {OT1}{lcmss}{m}{n}
1184
1185 \SetSymbolFont{letters}{normal}
1186 {OML}{lcmm}{m}{it}
1187 \SetSymbolFont{symbols}{normal}
1188 {OMS}{lcmsy}{m}{n}
1189 \SetSymbolFont{largesymbols}{normal}
1190 {OMX}{lcmex}{m}{n}
1191
1192 \SetSymbolFont{operators}{invisible}
1193 {OT1}{lcmss}{m}{In}
1194 \SetSymbolFont{letters}{invisible}
1195 {OML}{lcmm}{m}{Iit}
1196 \SetSymbolFont{symbols}{invisible}
1197 {OMS}{lcmsy}{m}{In}
1198 \SetSymbolFont{largesymbols}{invisible}
1199 {OMX}{lcmex}{m}{In}
1200
1201
1202 \def\@mainsize{\visible\tiny}
1203 % \end{macrocode}
1204 %
1205 %
1206 % \subsection{Environments}
1207 %
1208 % \begin{environment}{titlepage}
1209 % This environment starts a new page, with pagestyle \pstyle{empty}
1210 % and sets the page counter to 0.
1211 % \begin{macrocode}
1212 \newenvironment{titlepage}
1213 {\newpage
1214 \thispagestyle{empty}%
1215 \setcounter{page}{\z@}}
1216 {\newpage}
1217 % \end{macrocode}
1218 % \end{environment}
1219 %
1220 % \subsubsection{General List Parameters}
1221 %
1222 % The following commands are used to set the default values for the
1223 % list environment's parameters. See the \LaTeX{} manual for an
1224 % explanation of the meaning of the parameters.
1225 %
1226 % \begin{macro}{\leftmargini}
1227 % \begin{macro}{\leftmarginii}
1228 % \begin{macro}{\leftmarginiii}
1229 % \begin{macro}{\leftmarginiv}
1230 % \begin{macro}{\leftmarginv}
1231 % \begin{macro}{\leftmarginvi}
1232 % \begin{macrocode}
1233 \setlength\leftmargini {38\p@}
1234 \setlength\leftmarginii {30\p@}
1235 \setlength\leftmarginiii {20\p@}
1236 \setlength\leftmarginiv {15\p@}
1237 \setlength\leftmarginv {15\p@}
1238 \setlength\leftmarginvi {10\p@}
1239 % \end{macrocode}
1240 % \end{macro}
1241 % \end{macro}
1242 % \end{macro}
1243 % \end{macro}
1244 % \end{macro}
1245 % \end{macro}
1246 %
1247 % \begin{macro}{\@listi}
1248 % \begin{macro}{\@listii}
1249 % \begin{macro}{\@listiii}
1250 % \begin{macro}{\@listiv}
1251 % \begin{macro}{\@listv}
1252 % \begin{macro}{\@listvi}
1253 % These commands set the values of |\leftmargin|, |\parsep|,
1254 % |\topsep|, and |\itemsep| for the various levels of lists.
1255 % \changes{v2.3z}{1997/08/15}{Add initialization of \cs{leftmargin} to
1256 % \cs@listi.}
1257 % It is even necessary to initialize |\leftmargin| in |\@listi|,
1258 % i.e. for a level one list, as a list environment may appear
1259 % inside a \texttt{trivlist}, for example inside a \texttt{theorem}
1260 % environment.
1261 % \begin{macrocode}
1262 \def\@listi{\leftmargin\leftmargini
1263 \parsep .5\parskip
1264 \topsep \parsep
1265 \itemsep\parskip
1266 \partopsep \z@}
1267
1268 \def\@listii{\leftmargin\leftmarginii
1269 \labelwidth\leftmarginii
1270 \advance\labelwidth-\labelsep
1271 \parsep .5\parskip
1272 \topsep \parsep
1273 \itemsep\parskip}
1274 \def\@listiii{\leftmargin\leftmarginiii
1275 \labelwidth\leftmarginiii
1276 \advance\labelwidth-\labelsep}
1277 \def\@listiv{\leftmargin\leftmarginiv
1278 \labelwidth\leftmarginiv
1279 \advance\labelwidth-\labelsep}
1280 \def\@listv{\leftmargin\leftmarginv
1281 \labelwidth\leftmarginv
1282 \advance\labelwidth-\labelsep}
1283 \def\@listvi{\leftmargin\leftmarginvi
1284 \labelwidth\leftmarginvi
1285 \advance\labelwidth-\labelsep}
1286 % \end{macrocode}
1287 % \end{macro}
1288 % \end{macro}
1289 % \end{macro}
1290 % \end{macro}
1291 % \end{macro}
1292 % \end{macro}
1293 %
1294 % Here we initialize |\leftmargin| and |\labelwidth|.
1295 % \begin{macrocode}
1296 \leftmargin\leftmargini
1297 \labelwidth\leftmargini\advance\labelwidth-\labelsep
1298 % \end{macrocode}
1299 %
1300 %
1301 % \subsubsection{Paragraph-formatting environments}
1302 %
1303 % \begin{environment}{verse}
1304 % Inside a |verse| environment, |\\| ends a line, and
1305 % line continuations are indented further.
1306 % A blank line makes new paragraph with |\parskip| space.
1307 % \begin{macrocode}
1308 \newenvironment{verse}{\let\\=\@centercr
1309 \list{}{\itemsep \z@
1310 \itemindent -15\p@
1311 \listparindent \itemindent
1312 \rightmargin \leftmargin
1313 \advance\leftmargin 15\p@}%
1314 \item[]}
1315 {\endlist}
1316 % \end{macrocode}
1317 % \end{environment}
1318 %
1319 % \begin{environment}{quotation}
1320 % The |quotation| environment fills lines, indents paragraphs.
1321 % \begin{macrocode}
1322 \newenvironment{quotation}{\list{}{\listparindent 20\p@
1323 \itemindent\listparindent
1324 \rightmargin\leftmargin}%
1325 \item[]}
1326 {\endlist}
1327 % \end{macrocode}
1328 % \end{environment}
1329 %
1330 % \begin{environment}{quote}
1331 % The |quote| environment is the same as the |quotation| environment,
1332 % except that there is no paragraph indentation.
1333 % \begin{macrocode}
1334 \newenvironment{quote}{\list{}{\rightmargin\leftmargin}\item[]}
1335 {\endlist}
1336 % \end{macrocode}
1337 % \end{environment}
1338 %
1339 %
1340 % \subsubsection{List-making environments}
1341 %
1342 %
1343 % \begin{environment}{description}
1344 % The description environment is defined here -- while the itemize
1345 % and enumerate environments are defined in the \LaTeX{} format.
1346 %
1347 % \begin{macrocode}
1348 \newenvironment{description}{\list{}{\labelwidth\z@
1349 \itemindent-\leftmargin
1350 \let\makelabel\descriptionlabel}}
1351 {\endlist}
1352 % \end{macrocode}
1353 % \end{environment}
1354 %
1355 % \begin{macro}{\descriptionlabel}
1356 % To change the formatting of the label, you must redefine
1357 % |\descriptionlabel|.
1358 % \begin{macrocode}
1359 \newcommand*{\descriptionlabel}[1]{\hspace\labelsep
1360 \normalfont\bfseries #1}
1361
1362 % \end{macrocode}
1363 % \end{macro}
1364 %
1365 % \subsubsection{Enumerate}
1366 %
1367 % The enumerate environment uses four counters: \Lcount{enumi},
1368 % \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where
1369 % \Lcount{enumN} controls the numbering of the Nth level
1370 % enumeration.
1371 %
1372 % \begin{macro}{\theenumi}
1373 % \begin{macro}{\theenumii}
1374 % \begin{macro}{\theenumiii}
1375 % \begin{macro}{\theenumiv}
1376 % The counters are already defined in the \LaTeX{} format, but their
1377 % representation is changed here.
1378 %
1379 % \begin{macrocode}
1380 \renewcommand\theenumi{\@arabic\c@enumi}
1381 \renewcommand\theenumii{\@alph\c@enumii}
1382 \renewcommand\theenumiii{\@roman\c@enumiii}
1383 \renewcommand\theenumiv{\@Alph\c@enumiv}
1384 % \end{macrocode}
1385 % \end{macro}
1386 % \end{macro}
1387 % \end{macro}
1388 % \end{macro}
1389 %
1390 % \begin{macro}{\labelenumi}
1391 % \begin{macro}{\labelenumii}
1392 % \begin{macro}{\labelenumiii}
1393 % \begin{macro}{\labelenumiv}
1394 % The label for each item is generated by the four commands
1395 % |\labelenumi| \ldots\ |\labelenumiv|.
1396 % \changes{v2.3k}{1994/12/12}{Handle the \cs{label...} commands as in
1397 % the other class files}
1398 % \begin{macrocode}
1399 \newcommand\labelenumi{\theenumi.}
1400 \newcommand\labelenumii{(\theenumii)}
1401 \newcommand\labelenumiii{\theenumiii.}
1402 \newcommand\labelenumiv{\theenumiv.}
1403 % \end{macrocode}
1404 % \end{macro}
1405 % \end{macro}
1406 % \end{macro}
1407 % \end{macro}
1408 %
1409 % \begin{macro}{\p@enumii}
1410 % \begin{macro}{\p@enumiii}
1411 % \begin{macro}{\p@enumiv}
1412 % The expansion of |\p@enumN||\theenumN| defines the output of a
1413 % |\ref| command when referencing an item of the Nth level of an
1414 % enumerated list.
1415 % \begin{macrocode}
1416 \renewcommand\p@enumii{\theenumi}
1417 \renewcommand\p@enumiii{\theenumi(\theenumii)}
1418 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
1419 % \end{macrocode}
1420 % \end{macro}
1421 % \end{macro}
1422 % \end{macro}
1423 %
1424 % \subsubsection{Itemize}
1425 %
1426 %
1427 % \begin{macro}{\labelitemi}
1428 % \begin{macro}{\labelitemii}
1429 % \changes{v2.3x}{1996/08/25}{replaced -{}- with \cs{textendash}}
1430 % \begin{macro}{\labelitemiii}
1431 % \begin{macro}{\labelitemiv}
1432 % Itemization is controlled by four commands: |\labelitemi|,
1433 % |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which\
1434 % define the labels of the various itemization levels.
1435 % \begin{macrocode}
1436 \newcommand\labelitemi{$\m@th\bullet$}
1437 \newcommand\labelitemii{\normalfont\bfseries \textendash}
1438 \newcommand\labelitemiii{$\m@th\ast$}
1439 \newcommand\labelitemiv{$\m@th\cdot$}
1440 % \end{macrocode}
1441 % \end{macro}
1442 % \end{macro}
1443 % \end{macro}
1444 % \end{macro}
1445 %
1446 % \subsection{Setting parameters for existing environments}
1447 %
1448 % \subsubsection{Array and tabular}
1449 %
1450 % \begin{macro}{\arraycolsep}
1451 % The columns in an array environment are separated by
1452 % 2|\arraycolsep|.% Array and tabular environment parameters
1453 % \begin{macrocode}
1454 \setlength\arraycolsep{8\p@}
1455 % \end{macrocode}
1456 % \end{macro}
1457 %
1458 % \begin{macro}{\tabcolsep}
1459 % The columns in an tabular environment are separated by
1460 % 2|\tabcolsep|.
1461 % \begin{macrocode}
1462 \setlength\tabcolsep{10\p@}
1463 % \end{macrocode}
1464 % \end{macro}
1465 %
1466 % \begin{macro}{\arrayrulewidth}
1467 % The width of rules in the array and tabular environments is given
1468 % by the length parameter|\arrayrulewidth|.
1469 % \begin{macrocode}
1470 \setlength\arrayrulewidth{.6\p@}
1471 % \end{macrocode}
1472 % \end{macro}
1473 %
1474 % \begin{macro}{\doublerulesep}
1475 % The space between adjacent rules in the array and tabular
1476 % environments is given by |\doublerulesep|.
1477 % \begin{macrocode}
1478 \setlength\doublerulesep{3\p@}
1479 % \end{macrocode}
1480 % \end{macro}
1481 %
1482 % \subsubsection{Tabbing}
1483 %
1484 % \begin{macro}{\tabbingsep}
1485 % This controls the space that the |\'| command puts in. (See
1486 % \LaTeX{} manual for an explanation.)
1487 % \begin{macrocode}
1488 \labelsep 10pt
1489 \setlength\tabbingsep{\labelsep}
1490 % \end{macrocode}
1491 % \end{macro}
1492 %
1493 % \subsubsection{Minipage}
1494 %
1495 % \begin{macro}{\@minipagerestore}
1496 % The macro |\@minipagerestore| is called upon entry to a minipage
1497 % environment to set up things that are to be handled differently
1498 % inside a minipage environment. In the current styles, it does
1499 % nothing.
1500 % \end{macro}
1501 %
1502 % \begin{macro}{\@mpfootins}
1503 % Minipages have their own footnotes; |\skip||\@mpfootins| plays
1504 % same r\^ole for footnotes in a minipage as |\skip||\footins| does
1505 % for ordinary footnotes.
1506 %
1507 % \begin{macrocode}
1508 \skip\@mpfootins = \skip\footins
1509 % \end{macrocode}
1510 % \end{macro}
1511 %
1512 % \subsubsection{Framed boxes}
1513 %
1514 % \begin{macro}{\fboxsep}
1515 % The space left by |\fbox| and |\framebox| between the box and the
1516 % text in it.
1517 % \begin{macro}{\fboxrule}
1518 % The width of the rules in the box made by |\fbox| and |\framebox|.
1519 % \begin{macrocode}
1520 \setlength\fboxsep{5\p@}
1521 \setlength\fboxrule{.6\p@}
1522 % \end{macrocode}
1523 % \end{macro}
1524 % \end{macro}
1525 %
1526 % \begin{macro}{\theequation}
1527 % The equation number will be typeset as arabic numerals.
1528 % \begin{macrocode}
1529 \def\theequation{\@arabic\c@equation}
1530 % \end{macrocode}
1531 % \end{macro}
1532 %
1533 %
1534 % \begin{macro}{\jot}
1535 % |\jot| is the extra space added between lines of an eqnarray
1536 % environment. The default value is used.
1537 % \begin{macrocode}
1538 % \setlength\jot{3pt}
1539 % \end{macrocode}
1540 % \end{macro}
1541 %
1542 % \begin{macro}{\@eqnnum}
1543 % The macro |\@eqnnum| defines how equation numbers are to appear in
1544 % equations. Again the default is used.
1545 %
1546 % \begin{macrocode}
1547 % \def\@eqnnum{(\theequation)}
1548 % \end{macrocode}
1549 % \end{macro}
1550 %
1551 %
1552 % \subsection{Font changing}
1553 %
1554 % \changes{v2.3j}{1994/11/10}{fixed a few typos}
1555 %
1556 % Here we supply the declarative font changing commands that were
1557 % common in \LaTeX\ version 2.09 and earlier. These commands work
1558 % in text mode \emph{and} in math mode. They are provided for
1559 % compatibility, but one should start using the |\text...| and
1560 % |\math...| commands instead. These commands are redefined using
1561 % |\DeclareOldFontCommand|, a command with three arguments: the
1562 % user command to be defined, \LaTeX\ commands to execute in text
1563 % mode and \LaTeX\ commands to execute in math mode.
1564 %
1565 % \begin{macro}{\rm}
1566 % \begin{macro}{\tt}
1567 % \begin{macro}{\sf}
1568 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1569 % \cs{@renewfontswitch}.}
1570 % \changes{v2.3a}{1994/04/14}{\cs{@renewfontswitch} has become
1571 % \cs{DeclareOldFontCommand}}
1572 %
1573 % The commands to change the family. When in compatibility mode we
1574 % select the `default' font first, to get \LaTeX2.09 behaviour.
1575 % \begin{macrocode}
1576 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1577 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1578 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1579 % \end{macrocode}
1580 % \end{macro}
1581 % \end{macro}
1582 % \end{macro}
1583 %
1584 % \begin{macro}{\bf}
1585 % The command to change to the bold series. One should use
1586 % |\mdseries| to explicitly switch back to medium series.
1587 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1588 % \cs{@renewfontswitch}.}
1589 % \begin{macrocode}
1590 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1591 % \end{macrocode}
1592 % \end{macro}
1593 %
1594 % \begin{macro}{\sl}
1595 % \begin{macro}{\it}
1596 % \begin{macro}{\sc}
1597 % \changes{v2.2}{1993/12/18}{Changed \cs{@newfontswitch} to
1598 % \cs{@renewfontswitch}.}
1599 % And the commands to change the shape of the font. The slanted and
1600 % small caps shapes are not available by default as math alphabets,
1601 % so those changes do nothing in math mode. One should use
1602 % |\upshape| to explicitly change back to the upright shape.
1603 % \begin{macrocode}
1604 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1605 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
1606 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
1607 % \end{macrocode}
1608 % \end{macro}
1609 % \end{macro}
1610 % \end{macro}
1611 %
1612 % \begin{macro}{\cal}
1613 % \changes{v2.1d}{1993/12/14}{Macro added}
1614 % \begin{macro}{\mit}
1615 % \changes{v2.1d}{1993/12/14}{Macro added}
1616 %
1617 % The commands |\cal| and |\mit| should only be used in math mode,
1618 % outside math mode they have no effect. Currently the New Font
1619 % Selection Scheme defines these commands to generate warning
1620 % messages. Therefore we have to define them `by hand'.
1621 % \changes{v2.3k}{1994/12/12}{Now define \cs{cal} and \cs{mit} using
1622 % \cs{DeclareRobustCommand*}}
1623 % \begin{macrocode}
1624 \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
1625 \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
1626 % \end{macrocode}
1627 % \end{macro}
1628 % \end{macro}
1629 %
1630 % \subsection{Footnotes}
1631 %
1632 %
1633 % \begin{macro}{\footnoterule}
1634 % Usually, footnotes are separated from the main body of the text
1635 % by a small rule. This rule is drawn by the macro |\footnoterule|.
1636 % We have to make sure that the rule takes no vertical space (see
1637 % \file{plain.tex}). The resulting rule will appear on all color
1638 % layers, so it's best not to draw a rule.
1639 % \begin{macrocode}
1640 \renewcommand\footnoterule{}
1641 % \let \footnoterule = \relax
1642 % \end{macrocode}
1643 % \end{macro}
1644 %
1645 % \begin{macro}{\c@footnote}
1646 % \begin{macro}{\thefootnote}
1647 % Footnotes are numbered within slides, overlays, and notes and
1648 % numbered with $\ast$, $\dagger$, etc.
1649 % \begin{macrocode}
1650 % \newcounter{footnote}
1651 \def\thefootnote{\fnsymbol{footnote}}
1652 \@addtoreset{footnote}{slide}
1653 \@addtoreset{footnote}{overlay}
1654 \@addtoreset{footnote}{note}
1655 % \end{macrocode}
1656 % \end{macro}
1657 % \end{macro}
1658 %
1659 %
1660 % \begin{macro}{\@makefntext}
1661 % \changes{v2.2i}{1994/03/08}{Always call \cs{@makefnmark}.}
1662 % The footnote mechanism of \LaTeX{} calls the macro |\@makefntext|
1663 % to produce the actual footnote. The macro gets the text of the
1664 % footnote as its argument and should use |\@makefnmark| to produce
1665 % the mark of the footnote. The macro |\@makefntext| is called when
1666 % effectively inside a |\parbox| of width |\columnwidth| (i.e.,
1667 % with |\hsize| = |\columnwidth|).
1668 %
1669 % An example of what can be achieved is given by the following piece
1670 % of \TeX\ code.
1671 % \begin{verbatim}
1672 % \long\def\@makefntext#1{%
1673 % \@setpar{\@@par
1674 % \@tempdima = \hsize
1675 % \advance\@tempdima-10pt
1676 % \parshape \@ne 10pt \@tempdima}%
1677 % \par
1678 % \parindent 1em\noindent
1679 % \hbox to \z@{\hss\@makefnmark}#1}
1680 % \end{verbatim}
1681 % The effect of this definition is that all lines of the footnote
1682 % are indented by 10pt, while the first line of a new paragraph is
1683 % indented by 1em. To change these dimensions, just substitute the
1684 % desired value for `10pt' (in both places) or `1em'. The mark is
1685 % flushright against the footnote.
1686 %
1687 % In these document classes we use a simpler macro, in which the
1688 % footnote text is set like an ordinary text paragraph, with no
1689 % indentation except on the first line of a paragraph, and the
1690 % first line of the footnote. Thus, all the macro must do is set
1691 % |\parindent| to the appropriate value for succeeding paragraphs
1692 % and put the proper indentation before the mark.
1693 %
1694 % \begin{macrocode}
1695 \long\def\@makefntext#1{
1696 \noindent
1697 \hangindent 10\p@
1698 \hb@xt@10\p@{\hss\@makefnmark}#1}
1699 % \end{macrocode}
1700 % \end{macro}
1701 %
1702 % \begin{macro}{\@makefnmark}
1703 % The footnote markers that are printed in the text to point to the
1704 % footnotes should be produced by the macro |\@makefnmark|. We use
1705 % the default definition for it.
1706 % \begin{macrocode}
1707 %\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}
1708 % \end{macrocode}
1709 % \end{macro}
1710 %
1711 %
1712 % \subsection{The title}
1713 % The commands |\title|, |\author|, and |\date| are already
1714 % defined, so here we just define |\maketitle|.
1715 %
1716 % \changes{v2.3s}{1995/10/10}{Move \cs{par} inside the scope of
1717 % \cs{Large}, to get even line spacing.}
1718 % \begin{macrocode}
1719 \newcommand\maketitle{{\centering {\Large \@title \par}%
1720 \@author \par \@date\par}%
1721 \if@titlepage \break \fi}
1722 % \end{macrocode}
1723
1724 % \section{Initialization}
1725 %
1726 % \subsection{Date}
1727 %
1728 % \begin{macro}{\today}
1729 % This macro uses the \TeX\ primitives |\month|, |\day| and |\year|
1730 % to provide the date of the \LaTeX-run.
1731 % \begin{macrocode}
1732 \newcommand\today{\ifcase\month\or
1733 January\or February\or March\or April\or May\or June\or
1734 July\or August\or September\or October\or November\or December\fi
1735 \space\number\day, \number\year}
1736 % \end{macrocode}
1737 % \end{macro}
1738 %
1739 %
1740 % Default initializations
1741 %
1742 % \begin{macrocode}
1743 \pagenumbering{arabic}
1744 \onecolumn
1745 %</class>
1746 % \end{macrocode}
1747 %
1748 % \subsection{Basic code}
1749 %
1750 % The code below is basically a copy of |slitex.tex| with some
1751 % changes.
1752 %
1753 % Global changes so far:
1754 %
1755 % \changes{FMi}{1990/06/01}{\cs{gdef}\cs{@slidesw} ... replaced by a
1756 % \cs{newifG} which is similar to \cs{newif} but uses \cs{global}
1757 % inside.}
1758 %
1759 %
1760 % \subsubsection{Hacks for slide macros}
1761 %
1762 % \begin{macrocode}
1763 %<*cmd>
1764 \message{hacks,}
1765
1766 \outer\def\newifG#1{\count@\escapechar \escapechar\m@ne
1767 \expandafter\expandafter\expandafter
1768 \edef\@ifG#1{true}{\global\let\noexpand#1\noexpand\iftrue}%
1769 \expandafter\expandafter\expandafter
1770 \edef\@ifG#1{false}{\global\let\noexpand#1\noexpand\iffalse}%
1771 \@ifG#1{false}\escapechar\count@} % the condition starts out false
1772 \def\@ifG#1#2{\csname\expandafter\ifG@\string#1#2\endcsname}
1773 {\uccode`1=`i \uccode`2=`f \uccode`3=`G \uppercase{\gdef\ifG@123{G}}}
1774 % `ifG' is required
1775
1776 \def\@gobbletoend#1{\def\@argend{#1}\@ggobtoend}
1777
1778 \long\def\@ggobtoend#1\end#2{\fi\def\reserved@a{#2}%
1779 \ifx\reserved@a\@argend\else\@ggobtoend\fi}
1780 % \end{macrocode}
1781 % FMi: I don't see any reason for this command since |\fi| is hidden
1782 % anyway in the replacement text
1783 % |\def\@xfi{\fi}|
1784 % \begin{macrocode}
1785 \message{slides,}
1786 % \end{macrocode}
1787 %
1788 % \subsubsection{Slide macros}
1789 %
1790 %
1791 % Switches:\\
1792 % \begin{tabular}{ll}
1793 % |@bw| & true if making black and white slides \\
1794 % |@visible| & true if visible output to be produced.\\
1795 % |@makingslides| & true if making a slide/overlay/note
1796 % \end{tabular}
1797 %
1798 % \begin{macrocode}
1799 \newif\if@bw
1800 \newif\if@visible
1801 \newif\if@onlyslidesw \@onlyslideswfalse
1802 \newif\if@onlynotesw \@onlynoteswfalse
1803 \newif\if@makingslides
1804 % \end{macrocode}
1805 % FMi: |\newifG| replaces |\gdef\@slidesw{T}| stuff
1806 % \begin{macrocode}
1807 \newifG\ifG@slidesw
1808 % \end{macrocode}
1809 % Counters\\
1810 % \begin{tabular}{ll}
1811 % slide & slide number\\
1812 % overlay & overlay number for a slide\\
1813 % note & note number for a slide
1814 % \end{tabular}
1815 %
1816 % \begin{macrocode}
1817 \countdef\c@slide=0 \c@slide=0
1818 \def\cl@slide{}
1819 \countdef\c@overlay=1 \c@overlay=0
1820 \def\cl@overlay{}
1821 \countdef\c@note=2 \c@note=0
1822 \def\cl@note{}
1823 % \end{macrocode}
1824 % Add these counters explicitly to the `ckpt list' so that the
1825 % |\include| mechanism works.
1826 % \changes{v2.3u}{1996/05/09}{Make include work: pr/2140(CAR)}
1827 % \changes{v2.3y}{1997/05/09}{Make include work properly: add the
1828 % counters in case some are already in there: pr/2140+2474(CAR)}
1829 % \changes{v2.3v}{1996/05/11}{Do not add page counter here as it is
1830 % added below(CAR)}
1831 % \begin{macrocode}
1832 \g@addto@macro\cl@@ckpt{\@elt{slide}\@elt{overlay}\@elt{note}}
1833 \@addtoreset{overlay}{slide}
1834 \@addtoreset{note}{slide}
1835 % \end{macrocode}
1836 % Redefine page counter to some other number.
1837 % The page counter will always be zero except when putting out an
1838 % extra page for a slide, note or overlay.
1839 % \begin{macrocode}
1840 \@definecounter{page}
1841 \@addtoreset{page}{slide}
1842 \@addtoreset{page}{note}
1843 \@addtoreset{page}{overlay}
1844
1845 \def\theslide{\@arabic\c@slide}
1846 \def\theoverlay{\theslide-\@alph\c@overlay}
1847 \def\thenote{\theslide-\@arabic\c@note}
1848 % \end{macrocode}
1849 % \begin{verbatim}
1850 % \@setlimits \LIST \LOW \HIGH
1851 %
1852 % Assumes that \LIST = RANGE1,RANGE2,...,RANGEn (n>0)
1853 % Where RANGEi = j or j-k.
1854 %
1855 % Then \@setlimits globally sets
1856 % (i) \LIST := RANGE2, ... , RANGEn
1857 % (ii) \LOW := p
1858 % (iii) \HIGH := q
1859 % where either RANGE1 = p-q or RANGE1 = p and q=p.
1860 %\end{verbatim}
1861 % \begin{macrocode}
1862 \def\@sl@getargs#1-#2-#3\relax#4#5{\xdef#4{#1}\xdef#5{#2}}
1863 \def\@sl@ccdr#1,#2\relax#3#4{\xdef#3{#1-#1-}\xdef#4{#2}}
1864
1865 \def\@setlimits #1#2#3{\expandafter\@sl@ccdr#1\relax\@sl@gtmp #1%
1866 \expandafter\@sl@getargs\@sl@gtmp\relax#2#3}
1867 % \end{macrocode}
1868 % \begin{verbatim}
1869 % \onlyslides{LIST} ::=
1870 % BEGIN
1871 % @onlyslidesw := true
1872 % \@doglslidelist :=G LIST,999999,999999
1873 % if @onlynotesw = true
1874 % else @onlynotesw := true
1875 % \@doglnotelist :=G LIST,999999,999999
1876 % fi
1877 % message: Only Slides LIST
1878 % END
1879 %\end{verbatim}
1880 % \begin{macrocode}
1881 \def\onlyslides#1{\@onlyslideswtrue
1882 \gdef\@doglslidelist{#1,999999,999999}%
1883 \if@onlynotesw \else
1884 \@onlynoteswtrue\gdef\@doglnotelist{999999,999999}\fi
1885 \typeout{Only Slides #1}}
1886 % \end{macrocode}
1887 %\begin{verbatim}
1888 % \onlynotes{LIST} ::=
1889 % BEGIN
1890 % @onlynotesw := true
1891 % \@doglnotelist :=G LIST,999999,999999
1892 % if @onlyslidesw = true
1893 % else \@onlyslidesw := true
1894 % \@doglslidelist{999999,999999}
1895 % fi
1896 % message: Only Notes LIST
1897 % END
1898 %\end{verbatim}
1899 % \begin{macrocode}
1900 \def\onlynotes#1{\@onlynoteswtrue
1901 \gdef\@doglnotelist{#1,999999,999999}%
1902 \if@onlyslidesw \else
1903 \@onlyslideswtrue\gdef\@doglslidelist{999999,999999}\fi
1904 \typeout{Only Notes #1}}
1905 % \end{macrocode}
1906 %\begin{verbatim}
1907 % \setupcounters ::= (similar to old \blackandwhite #1 ::= )
1908 % \newpage
1909 % page counter := 0
1910 % @bw := T
1911 % @visible := T
1912 % if @onlyslidesw = true
1913 % then \@doslidelist := \@doglslidelist
1914 % \@setlimits\@doslidelist\@doslidelow\@doslidehigh
1915 % fi
1916 % if @onlynotesw = true
1917 % then \@donotelist := \@doglnotelist
1918 % \@setlimits\@donotelist\@donotelow\@donotehigh
1919 % fi
1920 % \normalsize % Note, this sets font to \rmfamily , which sets
1921 % % \@currfont to \rmfamily
1922 % counter slidenumber := 0
1923 % counter note := 0
1924 % counter overlay := 0
1925 % @makingslides := F %% \blackandwhite: @makingslides := T
1926 % %% input #1
1927 % %% @makingslides := F
1928 %\end{verbatim}
1929 % \begin{macrocode}
1930 \if@compatibility
1931 % In compatibility mode, need to define \verb+\blackandwhite+,
1932 % \verb+\colors+, \verb+\colorslides+, etc.
1933 \def\blackandwhite#1{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
1934 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
1935 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
1936 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
1937 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
1938 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
1939 \setcounter{note}{0}\@makingslidestrue\input #1\@makingslidesfalse}
1940 % \end{macrocode}
1941 %\begin{verbatim}
1942 % \colors{COLORS} ::=
1943 % for \@colortemp := COLORS
1944 % do \csname \@colortemp \endcsname == \@color{\@colortemp} od
1945 % if \@colorlist = empty
1946 % then \@colorlist := COLORS
1947 % else \@colorlist := \@colorlist , COLORS
1948 % fi
1949 %\end{verbatim}
1950 %
1951 % \begin{macrocode}
1952 \def\colors#1{\@for\@colortemp:=#1\do{\expandafter
1953 \xdef\csname\@colortemp\endcsname{\noexpand\@color{\@colortemp}}}\ifx
1954 \@colorlist\@empty \gdef\@colorlist{#1}%
1955 \else \xdef\@colorlist{\@colorlist,#1}\fi}
1956
1957 \def\@colorlist{}
1958 % \end{macrocode}
1959 %\begin{verbatim}
1960 % \colorslides{FILE} ::=
1961 % \newpage
1962 % page counter := 0
1963 % @bw := F
1964 % for \@currcolor := \@colorlist
1965 % do @visible := T
1966 % if @onlyslidesw = true
1967 % then \@doslidelist := \@doglslidelist
1968 % \@setlimits\@doslidelist\@doslidelow\@doslidehigh
1969 % fi
1970 % if @onlynotesw = true
1971 % then \@donotelist := \@doglnotelist
1972 % \@setlimits\@donotelist\@donotelow\@donotehigh
1973 % fi
1974 % \normalsize
1975 % counter slide := 0
1976 % counter overlay := 0
1977 % counter note := 0
1978 % type message
1979 % generate color layer output page
1980 % @makingslides := T
1981 % input #1
1982 % @makingslides := F
1983 % od
1984 %\end{verbatim}
1985 % \begin{macrocode}
1986 \def\colorslides#1{\newpage\setcounter{page}{0}\@bwfalse
1987 \@for\@currcolor:=\@colorlist\do
1988 {\@visibletrue
1989 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
1990 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
1991 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
1992 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
1993 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
1994 \setcounter{note}{0}\typeout{color \@currcolor}%
1995 \newpage
1996 \begin{huge}%
1997 \begin{center}%
1998 COLOR LAYER\\[.75in]%
1999 \@currcolor
2000 \end{center}%
2001 \end{huge}%
2002 \newpage
2003 \@makingslidestrue
2004 \input #1
2005 \@makingslidesfalse}}
2006 %
2007 \else %% if@compatibility
2008 %
2009 \def\setupcounters{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
2010 \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
2011 \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
2012 \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
2013 \@setlimits\@donotelist\@donotelow\@donotehigh\fi
2014 \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
2015 \setcounter{note}{0}\@makingslidesfalse}
2016
2017 \AtBeginDocument{\setupcounters}
2018 \fi %% if@compatibility
2019 % \end{macrocode}
2020 %\begin{verbatim}
2021 % \slide COLORS ::=
2022 % BEGIN
2023 % \changes{v2.3}{1994/03/16}{Moved \cs{newpage} up front, here and in
2024 % \cs{note} and \cs{overlay}}
2025 % \par\break
2026 % \stepcounter{slide}
2027 % \setcounter{page}{0} % in case of non-slide pages
2028 % \@slidesw :=G T
2029 % if @onlyslidesw = true % set \@slidesw = T iff
2030 % then % page to be output
2031 % while \c@slide > \@doslidehigh
2032 % do \@setlimits\@doslidelist\@doslidelow\@doslidehigh od
2033 % if \c@slide < \@doslidelow
2034 % then \@slidesw := F
2035 % fi
2036 % fi
2037 % if \@slidesw = T
2038 % then \@slidesw :=G F
2039 % \begingroup
2040 % if @bw = true
2041 % then \@slidesw :=G T
2042 % else \@color{COLORS}
2043 % \if@visible then \@slidesw :=G T \fi
2044 % fi
2045 % \endgroup
2046 % fi
2047 % if \@slidesw = T
2048 % then @makingslides := T
2049 % \thispagestyle{slide}
2050 % else \end{slide}
2051 % \@gobbletoend{slide}
2052 % fi
2053 % END
2054 %
2055 % \endslide ::=
2056 % BEGIN
2057 % \par\break
2058 % END
2059 %\end{verbatim}
2060 % \begin{macrocode}
2061 \if@compatibility
2062 \def\slide#1{\stepcounter{slide}\G@slideswtrue\if@onlyslidesw
2063 \@whilenum \c@slide >\@doslidehigh\relax
2064 \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
2065 \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
2066 \ifG@slidesw
2067 \G@slideswfalse
2068 % FMi this is only a hack at the moment to get things running.
2069 % \begingroup
2070 \if@bw\G@slideswtrue\else
2071 \@color{#1}\if@visible \G@slideswtrue \fi
2072 \fi
2073 % \endgroup
2074 \fi
2075 \ifG@slidesw \newpage\thispagestyle{slide}%
2076 % \end{macrocode}
2077 % This will set up the last color specified in the argument to
2078 % \verb+\slide+ as the current color. If only back and white slides
2079 % are prepared \verb+\last@color+ will be empty and effectively
2080 % \verb+\relax+ will be generated (hopefully).
2081 %
2082 % We need to reset to a default font at the beginning of a slide.
2083 % (not done yet).
2084 % \begin{macrocode}
2085 \csname \last@color \endcsname
2086 % \end{macrocode}
2087 % \begin{macrocode}
2088 \else\end{slide}\@gobbletoend{slide}\fi}
2089 %
2090 \else %% if@compatibility
2091 %
2092 \def\slide{\par\break
2093 \stepcounter{slide}\setcounter{page}{0}\G@slideswtrue\if@onlyslidesw
2094 \@whilenum \c@slide >\@doslidehigh\relax
2095 \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
2096 \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
2097 \ifG@slidesw
2098 \G@slideswfalse
2099 % FMi this is only a hack at the moment to get things running.
2100 % \begingroup
2101 \if@bw\G@slideswtrue\else
2102 \if@visible \G@slideswtrue \fi
2103 \fi
2104 % \endgroup
2105 \fi
2106 \ifG@slidesw \@makingslidestrue\thispagestyle{slide}%
2107 % \end{macrocode}
2108 % This will set up the last color specified in the argument to
2109 % \verb+\slide+ as the current color. If only back and white slides
2110 % are prepared \verb+\last@color+ will be empty and effectively
2111 % \verb+\relax+ will be generated (hopefully).
2112 %
2113 % We need to reset to a default font at the beginning of a slide.
2114 % (not done yet).
2115 % \begin{macrocode}
2116 \csname \last@color \endcsname
2117 % \end{macrocode}
2118 % \begin{macrocode}
2119 \else\end{slide}\@gobbletoend{slide}\fi}
2120 \fi %% if@compatibility
2121
2122 \let\last@color\@empty
2123
2124 \def\endslide{\par\break}
2125 % \end{macrocode}
2126 %\begin{verbatim}
2127 % \overlay COLORS ::=
2128 % BEGIN
2129 % \par\break
2130 % \stepcounter{overlay}
2131 % \setcounter{page}{0} % in case of non-slide pages
2132 % \@slidesw :=G T
2133 % if @onlyslidesw = T % set \@slidesw = T iff
2134 % then % page to be output
2135 % if \c@slide < \@doslidelow
2136 % then \@slidesw :=G F
2137 % fi
2138 % fi
2139 % if \@slidesw = T
2140 % \@slidesw :=G F
2141 % \begingroup
2142 % if @bw = true
2143 % then \@slidesw :=G T
2144 % else \@color{COLORS}
2145 % \if@visible then \@slidesw :=G T \fi
2146 % fi
2147 % \endgroup
2148 % fi
2149 % if \@slidesw = T
2150 % then @makingslides := T
2151 % \thispagestyle{overlay}
2152 % else \end{overlay}
2153 % \@gobbletoend{overlay}
2154 % fi
2155 % END
2156 %
2157 % \endoverlay ::=
2158 % BEGIN
2159 % \par\break
2160 % END
2161 %\end{verbatim}
2162 % \begin{macrocode}
2163 \if@compatibility
2164 \def\overlay#1{\stepcounter{overlay}\G@slideswtrue%
2165 \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
2166 \G@slideswfalse\fi\fi
2167 \ifG@slidesw \G@slideswfalse\begingroup\if@bw\G@slideswtrue%
2168 \else\@color{#1}\if@visible \G@slideswtrue\fi\fi\endgroup\fi
2169 \ifG@slidesw \newpage\thispagestyle{overlay}%
2170 \else\end{overlay}\@gobbletoend{overlay}\fi}
2171 %
2172 \else %%if@compatibility
2173 %
2174 \def\overlay{\par\break
2175 \stepcounter{overlay}%
2176 \setcounter{page}{0}%
2177 \G@slideswtrue%
2178 \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
2179 \G@slideswfalse\fi\fi
2180 \ifG@slidesw \G@slideswfalse
2181 \begingroup\if@bw\G@slideswtrue%
2182 \else\if@visible \G@slideswtrue\fi\fi
2183 \endgroup\fi
2184 \ifG@slidesw \@makingslidestrue\thispagestyle{overlay}%
2185 \else\end{overlay}\@gobbletoend{overlay}\fi}
2186 \fi %%if@compatibility
2187
2188 \def\endoverlay{\par\break}
2189 % \end{macrocode}
2190 %
2191 % \changes{v2.0d}{1993/11/12}{Removed extra blank.}
2192 %\begin{verbatim}
2193 % \note ::=
2194 % BEGIN
2195 % \par\break
2196 % \stepcounter{note}
2197 % \setcounter{page}{0} % in case of non-slide pages
2198 % if @bw = T
2199 % then
2200 % \@slidesw :=G T
2201 % if @onlynotesw = true % set \@notesw = T iff
2202 % then % page to be output
2203 % while \c@slide > \@donotehigh
2204 % do \@setlimits\@donotelist\@donotelow\@donotehigh od
2205 % if \c@slide < \@donotelow
2206 % then \@slidesw :=G F
2207 % fi
2208 % fi
2209 % else \@slidesw :=G F
2210 % fi
2211 % if \@slidesw = T
2212 % then @makingslides := T
2213 % \thispagestyle{note}
2214 % else \end{note}
2215 % \@gobbletoend{note}
2216 % fi
2217 % END
2218 %
2219 % \endnote ::=
2220 % BEGIN
2221 % \par\break
2222 % END
2223 %\end{verbatim}
2224 % \begin{macrocode}
2225 \if@compatibility
2226 \def\note{\stepcounter{note}%
2227 \if@bw
2228 \G@slideswtrue
2229 \if@onlynotesw\@whilenum \c@slide >\@donotehigh\relax
2230 \do{\@setlimits\@donotelist\@donotelow\@donotehigh}\ifnum
2231 \c@slide <\@donotelow\relax \G@slideswfalse\fi\fi
2232 \else\G@slideswfalse\fi
2233 \ifG@slidesw \newpage\thispagestyle{note}\else
2234 \end{note}\@gobbletoend{note}\fi}
2235 %
2236 \else %%if@compatibility
2237 %
2238 \def\note{\par\break\stepcounter{note}\setcounter{page}{0}%
2239 \if@bw
2240 \G@slideswtrue
2241 \if@onlynotesw\@whilenum \c@slide >\@donotehigh\relax
2242 \do{\@setlimits\@donotelist\@donotelow\@donotehigh}\ifnum
2243 \c@slide <\@donotelow\relax \G@slideswfalse\fi\fi
2244 \else\G@slideswfalse\fi
2245 \ifG@slidesw \@makingslidestrue\thispagestyle{note}\else
2246 \end{note}\@gobbletoend{note}\fi}
2247 \fi %%if@compatibility
2248
2249 \def\endnote{\par\break}
2250 % \end{macrocode}
2251 %\begin{verbatim}
2252 % \@color{COLORS} ::=
2253 % BEGIN
2254 % if math mode
2255 % then type warning
2256 % fi
2257 % if @bw
2258 % then \visible
2259 % else \invisible
2260 % for \last@color := COLORS
2261 % do if \last@color = \@currcolor
2262 % then \visible
2263 % fi
2264 % od
2265 % fi
2266 % \ignorespaces
2267 % END
2268 %\end{verbatim}
2269 % FMi: |\last@color| will be used in |\slide| to set up first
2270 % color if no color is given.
2271 % I suppose that this is much too complicated. |\else\@tempswafalse|
2272 % would produce the same effect I imagine.
2273 % \begin{macrocode}
2274 \def\@color#1{\@mmodetest
2275 {\if@bw \@tempswatrue \else \@tempswafalse
2276 \@for \reserved@a :=#1\do{\ifx\reserved@a\@currcolor\@tempswatrue\fi
2277 \let\last@color\reserved@a}\fi
2278 \if@tempswa \visible \else \invisible \fi
2279 \ignorespaces}}
2280
2281 \def\@mmodetest#1{\ifmmode\ClassWarning{slides}{Color-changing command
2282 in math mode has been ignored}\else #1\fi}
2283
2284 \def\invisible{\@mmodetest
2285 {\if@visible
2286 \@visiblefalse
2287 \fontshape\f@shape\selectfont
2288 \mathversion{invisible}%
2289 \fi
2290 \ignorespaces}}
2291
2292 \def\visible{\@mmodetest
2293 {\if@visible
2294 \else
2295 \@visibletrue
2296 % \end{macrocode}
2297 % Here is the \LaTeXe{} interface hidden. We use a trick to provide
2298 % ourselves with a sort of additional attribute without making the
2299 % current mechanism even larger. The trick is that we denote
2300 % invisible by putting an uppercase |I| in front of the shape name
2301 % for invisible shapes and remove it again if we want to become
2302 % visible.
2303 % \begin{macrocode}
2304 \fontshape{\expandafter\@gobble\f@shape}\selectfont
2305 \mathversion{normal}%
2306 \fi
2307 \ignorespaces}}
2308
2309 \def\fontshape#1{\edef\f@shape{\if@visible \else I\fi #1}}
2310 % \end{macrocode}
2311 %
2312 % \subsection{Macros for font handling}
2313 %
2314 % We let |\familydefault| point at |\sfdefault|, to make it easier
2315 % to use the document class slides with packages that set up other
2316 % fonts.
2317 % \begin{macrocode}
2318 \renewcommand{\familydefault}{\sfdefault}
2319 % \end{macrocode}
2320 %
2321 % \changes{v2.3l}{1994/12/16}{Added the declaration of the lasy font
2322 % family}
2323 % The \texttt{latexsym} package, which is needed to be able to access
2324 % the \LaTeX\ symbol fonts (lasy), sets things up so that for sizes
2325 % larger then 10 point magnifications of \texttt{lasy10} are
2326 % used. For slides we want to use magnifications of \texttt{lasy8},
2327 % so we set up the lasy family here to prevent \LaTeX\ from loading
2328 % \texttt{Ulasy.fd}.
2329 % \begin{macrocode}
2330 \DeclareFontFamily{U}{lasy}{}{}
2331 \DeclareFontShape{U}{lasy}{m}{n}{%
2332 <12><13.82><16.59><19.907><23.89><28.66><34.4><41.28>lasy8
2333 }{}
2334 \DeclareFontShape{U}{lasy}{m}{In}{%
2335 <13.82><16.59><19.907><23.89><28.66><34.4><41.28>ilasy8
2336 }{}
2337 % \end{macrocode}
2338 %
2339 % \begin{macrocode}
2340 \message{picture,}
2341 % \end{macrocode}
2342 %
2343 % \subsubsection{Modifications to the picture environment}
2344 %
2345 % Below are the new definitions of the picture-drawing macros
2346 % required for SLiTeX. Only those commands that actually
2347 % draw something must be changed so that they do not produce
2348 % any output when the |@visible| switch is false.
2349 %
2350 % \changes{v2.2j}{1994/03/11}{Corrected \cs{@oval}, like previous
2351 % change to the \LaTeX{} format.}
2352 % \changes{v2.4a}{2016/03/29}{Initialize in \cs{@oval}tests added for
2353 % latex/4452}
2354 % \begin{macrocode}
2355 \def\line(#1,#2)#3{\if@visible\@xarg #1\relax \@yarg #2\relax
2356 \@linelen #3\unitlength
2357 \ifnum\@xarg =\z@ \@vline
2358 \else \ifnum\@yarg =\z@ \@hline \else \@sline\fi
2359 \fi\fi}
2360
2361 \def\vector(#1,#2)#3{\if@visible\@xarg #1\relax \@yarg #2\relax
2362 \@linelen #3\unitlength
2363 \ifnum\@xarg =\z@ \@vvector
2364 \else \ifnum\@yarg =\z@ \@hvector \else \@svector\fi
2365 \fi\fi}
2366
2367 \def\dashbox#1(#2,#3){%
2368 \leavevmode\if@visible\hb@xt@\z@{\baselineskip \z@
2369 \lineskip \z@
2370 \@dashdim #2\unitlength
2371 \@dashcnt \@dashdim \advance\@dashcnt 200
2372 \@dashdim #1\unitlength\divide\@dashcnt \@dashdim
2373 \ifodd\@dashcnt\@dashdim\z@
2374 \advance\@dashcnt \@ne \divide\@dashcnt \tw@
2375 \else \divide\@dashdim \tw@ \divide\@dashcnt \tw@
2376 \advance\@dashcnt \m@ne
2377 \setbox\@dashbox \hbox{\vrule \@height \@halfwidth \@depth \@halfwidth
2378 \@width \@dashdim}\put(0,0){\copy\@dashbox}%
2379 \put(0,#3){\copy\@dashbox}%
2380 \put(#2,0){\hskip-\@dashdim\copy\@dashbox}%
2381 \put(#2,#3){\hskip-\@dashdim\box\@dashbox}%
2382 \multiply\@dashdim \thr@@
2383 \fi
2384 \setbox\@dashbox \hbox{\vrule \@height \@halfwidth \@depth \@halfwidth
2385 \@width #1\unitlength\hskip #1\unitlength}\@tempcnta\z@
2386 \put(0,0){\hskip\@dashdim \@whilenum \@tempcnta <\@dashcnt
2387 \do{\copy\@dashbox\advance\@tempcnta \@ne }}\@tempcnta\z@
2388 \put(0,#3){\hskip\@dashdim \@whilenum \@tempcnta <\@dashcnt
2389 \do{\copy\@dashbox\advance\@tempcnta \@ne }}%
2390 \@dashdim #3\unitlength
2391 \@dashcnt=\@dashdim \advance\@dashcnt 200
2392 \@dashdim #1\unitlength\divide\@dashcnt \@dashdim
2393 \ifodd\@dashcnt \@dashdim=\z@
2394 \advance\@dashcnt \@ne \divide\@dashcnt \tw@
2395 \else
2396 \divide\@dashdim \tw@ \divide\@dashcnt \tw@
2397 \advance\@dashcnt \m@ne
2398 \setbox\@dashbox\hbox{\hskip -\@halfwidth
2399 \vrule \@width \@wholewidth
2400 \@height \@dashdim}\put(0,0){\copy\@dashbox}%
2401 \put(#2,0){\copy\@dashbox}%
2402 \put(0,#3){\lower\@dashdim\copy\@dashbox}%
2403 \put(#2,#3){\lower\@dashdim\copy\@dashbox}%
2404 \multiply\@dashdim \thr@@
2405 \fi
2406 \setbox\@dashbox\hbox{\vrule \@width \@wholewidth
2407 \@height #1\unitlength}\@tempcnta\z@
2408 \put(0,0){\hskip -\@halfwidth \vbox{\@whilenum \@tempcnta <\@dashcnt
2409 \do{\vskip #1\unitlength\copy\@dashbox\advance\@tempcnta \@ne }%
2410 \vskip\@dashdim}}\@tempcnta\z@
2411 \put(#2,0){\hskip -\@halfwidth \vbox{\@whilenum \@tempcnta <\@dashcnt
2412 \relax\do{\vskip #1\unitlength\copy\@dashbox\advance\@tempcnta \@ne }%
2413 \vskip\@dashdim}}}\fi\@makepicbox(#2,#3)}
2414 % \end{macrocode}
2415 % (re)declare these booleans as they not defined in old format
2416 % (or with latexrelease package)
2417 % \begin{macrocode}
2418 \newif\if@ovvline \@ovvlinetrue
2419 \newif\if@ovhline \@ovhlinetrue
2420 % \end{macrocode}
2421 % \begin{macrocode}
2422 \def\@oval(#1,#2)[#3]{\if@visible\begingroup \boxmaxdepth \maxdimen
2423 \@ovttrue \@ovbtrue \@ovltrue \@ovrtrue
2424 % \end{macrocode}
2425 % \begin{macrocode}
2426 \@ovvlinefalse \@ovhlinefalse
2427 % \end{macrocode}
2428 % \begin{macrocode}
2429 \@tfor\reserved@a :=#3\do
2430 {\csname @ov\reserved@a false\endcsname}%
2431 \@ovxx#1\unitlength \@ovyy #2\unitlength
2432 % \end{macrocode}
2433 % \begin{macrocode}
2434 \@tempdimb \ifdim \@ovyy >\@ovxx \@ovxx \@ovvlinetrue
2435 \else \@ovyy \ifdim \@ovyy =\@ovxx \else \@ovhlinetrue \fi\fi
2436 % \end{macrocode}
2437 % \begin{macrocode}
2438 \advance \@tempdimb -2\p@
2439 \@getcirc \@tempdimb
2440 \@ovro \ht\@tempboxa \@ovri \dp\@tempboxa
2441 \@ovdx\@ovxx \advance\@ovdx -\@tempdima \divide\@ovdx \tw@
2442 \@ovdy\@ovyy \advance\@ovdy -\@tempdima \divide\@ovdy \tw@
2443 % \end{macrocode}
2444 % \begin{macrocode}
2445 \ifdim \@ovdx >\z@ \@ovhlinetrue \fi
2446 \ifdim \@ovdy >\z@ \@ovvlinetrue \fi
2447 % \end{macrocode}
2448 % \begin{macrocode}
2449 \@circlefnt \setbox\@tempboxa
2450 \hbox{\if@ovr \@ovvert32\kern -\@tempdima \fi
2451 \if@ovl \kern \@ovxx \@ovvert01\kern -\@tempdima \kern -\@ovxx \fi
2452 \if@ovt \@ovhorz \kern -\@ovxx \fi
2453 \if@ovb \raise \@ovyy \@ovhorz \fi}\advance\@ovdx\@ovro
2454 \advance\@ovdy\@ovro \ht\@tempboxa\z@ \dp\@tempboxa\z@
2455 \@put{-\@ovdx}{-\@ovdy}{\box\@tempboxa}%
2456 \endgroup\fi}
2457
2458 \def\@circle#1{\if@visible \begingroup \boxmaxdepth \maxdimen
2459 \@tempdimb #1\unitlength
2460 \ifdim \@tempdimb >15.5\p@\relax \@getcirc\@tempdimb
2461 \@ovro\ht\@tempboxa
2462 \setbox\@tempboxa\hbox{\@circlefnt
2463 \advance\@tempcnta\tw@ \char \@tempcnta
2464 \advance\@tempcnta\m@ne \char \@tempcnta \kern -2\@tempdima
2465 \advance\@tempcnta\tw@
2466 \raise \@tempdima \hbox{\char\@tempcnta}\raise \@tempdima
2467 \box\@tempboxa}\ht\@tempboxa\z@ \dp\@tempboxa\z@
2468 \@put{-\@ovro}{-\@ovro}{\box\@tempboxa}%
2469 \else \@circ\@tempdimb{96}\fi\endgroup\fi}
2470
2471 % \end{macrocode}
2472 %
2473 % \changes{v2.0d}{1993/11/12}{Removed extra blank.}
2474 % \begin{macrocode}
2475 \def\@dot#1{%
2476 \if@visible\@tempdimb #1\unitlength \@circ\@tempdimb{112}\fi}
2477 % \end{macrocode}
2478 % \changes {v2.3m}{1994/03/20}{(DPC) Remove old \cs{@iframebox} and
2479 % \cs{fbox} defn}
2480 % \changes {v2.3m}{1994/03/20}{(DPC) Add \cs{@frameb@x} defn.}
2481 % \begin{macrocode}
2482 \def\@frameb@x#1{%
2483 \@tempdima\fboxrule
2484 \advance\@tempdima\fboxsep
2485 \advance\@tempdima\dp\@tempboxa
2486 \leavevmode
2487 \hbox{%
2488 \lower\@tempdima\hbox{%
2489 \vbox{%
2490 \if@visible\hrule\@height\else\vskip\fi\fboxrule
2491 \hbox{%
2492 \if@visible\vrule\@width\else\hskip\fi\fboxrule
2493 #1%
2494 \vbox{%
2495 \vskip\fboxsep
2496 \box\@tempboxa
2497 \vskip\fboxsep}%
2498 #1%
2499 \if@visible\vrule\@width\else\hskip\fi\fboxrule}%
2500 \if@visible\hrule\@height\else\vskip\fi\fboxrule}}}}
2501
2502 % \end{macrocode}
2503 %
2504 % \begin{macrocode}
2505 \long\def\frame#1{\if@visible\leavevmode
2506 \vbox{\vskip-\@halfwidth\hrule \@height\@halfwidth \@depth \@halfwidth
2507 \vskip-\@halfwidth\hbox{\hskip-\@halfwidth \vrule \@width\@wholewidth
2508 \hskip-\@halfwidth #1\hskip-\@halfwidth \vrule \@width \@wholewidth
2509 \hskip -\@halfwidth}\vskip -\@halfwidth\hrule \@height \@halfwidth
2510 \@depth \@halfwidth\vskip -\@halfwidth}\else #1\fi}
2511 % \end{macrocode}
2512 %
2513 % \changes{v2.0d}{1993/11/12}{Corrected \cs{@math} to \cs{m@th} in
2514 % definition of \cs{underline}.}
2515 %
2516 % \begin{macrocode}
2517 \message{mods,}
2518 % \end{macrocode}
2519 %
2520 %
2521 % \subsubsection{Other modifications to \TeX{} and \LaTeX{} commands}
2522 %
2523 % |\rule|
2524 % \begin{macrocode}
2525 \def\@rule[#1]#2#3{\@tempdima#3\advance\@tempdima #1\leavevmode
2526 \hbox{\if@visible\vrule
2527 \@width#2 \@height\@tempdima \@depth-#1\else
2528 \vrule \@width \z@ \@height\@tempdima \@depth-#1\vrule
2529 \@width#2 \@height\z@\fi}}
2530
2531 % \_ (Added 10 Nov 86)
2532
2533 \def\_{\leavevmode \kern.06em \if@visible\vbox{\hrule \@width.3em}\else
2534 \vbox{\hrule \@height \z@ \@width.3em}\vbox{\hrule \@width \z@}\fi}
2535 % \end{macrocode}
2536 %\begin{verbatim}
2537 % \overline, \underline, \frac and \sqrt
2538 %
2539 % \@mathbox{STYLE}{BOX}{MTEXT} : Called in math mode, typesets MTEXT and
2540 % stores result in BOX, using STYLE.
2541 %
2542 % \@bphant{BOX} : Creates a phantom with dimensions BOX.
2543 % \@vbphant{BOX} : Creates a phantom with ht of BOX and zero width.
2544 % \@hbphant{BOX} : Creates a phantom with width of BOX
2545 % and zero ht & dp.
2546 % \@hvsmash{STYLE}{MTEXT} : Creates a copy of MTEXT with zero height and
2547 % width in STYLE.
2548 %\end{verbatim}
2549 % \begin{macrocode}
2550 \def\@mathbox#1#2#3{\setbox#2\hbox{$\m@th#1{#3}$}}
2551
2552 \def\@vbphantom#1{\setbox\tw@\null \ht\tw@\ht #1\dp\tw@\dp #1%
2553 \box\tw@}
2554
2555 \def\@bphantom#1{\setbox\tw@\null
2556 \wd\tw@\wd #1\ht\tw@\ht #1\dp\tw@\dp #1%
2557 \box\tw@}
2558
2559 \def\@hbphantom#1{\setbox\tw@\null \wd\tw@\wd #1\ht\tw@\z@ \dp\tw@\z@
2560 \box\tw@}
2561
2562 \def\@hvsmash#1#2{\@mathbox#1\z@{#2}\ht\z@\z@ \dp\z@\z@ \wd\z@\z@
2563 \box\z@}
2564
2565 \def\underline#1{\relax\ifmmode
2566 \@xunderline{#1}\else $\m@th\@xunderline{\hbox{#1}}$\relax\fi}
2567
2568 \def\@xunderline#1{\mathchoice{\@xyunderline\displaystyle{#1}}%
2569 {\@xyunderline
2570 \textstyle{#1}}{\@xyunderline\scriptstyle{#1}}{\@xyunderline
2571 \scriptscriptstyle{#1}}}
2572
2573 \def\@xyunderline#1#2{%
2574 \@mathbox#1\@smashboxa{#2}\@hvsmash#1{\copy\@smashboxa}%
2575 \if@visible \@hvsmash#1{\@@underline{\@bphantom\@smashboxa}}\fi
2576 \@mathbox#1\@smashboxb{\@@underline{\box\@smashboxa}}%
2577 \@bphantom\@smashboxb}
2578
2579 \let\@@overline=\overline
2580
2581 \def\overline#1{\mathchoice{\@xoverline\displaystyle{#1}}{\@xoverline
2582 \textstyle{#1}}{\@xoverline\scriptstyle{#1}}{\@xoverline
2583 \scriptscriptstyle{#1}}}
2584
2585 \def\@xoverline#1#2{%
2586 \@mathbox#1\@smashboxa{#2}\@hvsmash#1{\copy\@smashboxa}%
2587 \if@visible \@hvsmash#1{\@@overline{\@bphantom\@smashboxa}}\fi
2588 \@mathbox#1\@smashboxb{\@@overline{\box\@smashboxa}}%
2589 \@bphantom\@smashboxb}
2590 % \end{macrocode}
2591 %
2592 % \changes{v2.0b}{1993/04/14}{Corrected \cs{frac} command.}
2593 % \changes{v2.0d}{1993/11/12}{Removed \cs{vcenter} in \cs{@frac}.}
2594 %
2595 %\begin{verbatim}
2596 % \@frac {STYLE}{DENOMSTYLE}{NUM}{DEN}{FONTSIZE} :
2597 % Creates \frac{NUM}{DENOM}
2598 % in style STYLE with NUM and DENOM in style DENOMSTYLE
2599 % FONTSIZE should be \textfont \scriptfont or \scriptscriptfont
2600 %\end{verbatim}
2601 % Added a group around the first argument of |\frac| to prevent
2602 % changes (for example font changes) to modify the contents of the
2603 % second argument.
2604 % \changes{v2.1c}{1993/12/13}{Added group around first arg.}
2605 % \begin{macrocode}
2606 \def\frac#1#2{\mathchoice
2607 {\@frac\displaystyle\textstyle{#1}{#2}\textfont}{\@frac
2608 \textstyle\scriptstyle{#1}{#2}\textfont}{\@frac
2609 \scriptstyle\scriptscriptstyle{#1}{#2}\scriptfont}{\@frac
2610 \scriptscriptstyle\scriptscriptstyle{#1}{#2}\scriptscriptfont}}
2611
2612 \def\@frac#1#2#3#4#5{%
2613 \@mathbox#1\@smashboxc{{\begingroup#3\endgroup\over#4}}%
2614 \setbox\tw@\null
2615 \ht\tw@ \ht\@smashboxc
2616 \dp\tw@ \dp\@smashboxc
2617 \wd\tw@ \wd\@smashboxc
2618 \box\if@visible\@smashboxc\else\tw@\fi}
2619
2620 \def\r@@t#1#2{\setbox\z@\hbox{$\m@th#1\@xysqrt#1{#2}$}%
2621 \dimen@\ht\z@ \advance\dimen@-\dp\z@
2622 \mskip5mu\raise.6\dimen@\copy\rootbox \mskip-10mu\box\z@}
2623 % \end{macrocode}
2624 % \changes{v2.3w}{1996/05/15}{Removed use of obsolete command
2625 % \cs{@@sqrt} (CAR)}
2626 % \begin{macrocode}
2627 \def\sqrt{\@ifnextchar[{\@sqrt}{\@xsqrt}}
2628 \def\@sqrt[#1]{\root #1\of}
2629 \def\@xsqrt#1{\mathchoice{\@xysqrt\displaystyle{#1}}{\@xysqrt
2630 \textstyle{#1}}{\@xysqrt\scriptstyle{#1}}{\@xysqrt
2631 \scriptscriptstyle{#1}}}
2632 \def\@xysqrt#1#2{\@mathbox#1\@smashboxa{#2}\if@visible
2633 \@hvsmash#1{\sqrtsign{\@bphantom\@smashboxa}}\fi
2634 \phantom{\sqrtsign{\@vbphantom\@smashboxa}}\box\@smashboxa}
2635
2636 \newbox\@smashboxa
2637 \newbox\@smashboxb
2638 \newbox\@smashboxc
2639 % \end{macrocode}
2640 %
2641 % array and tabular environments: changes to `\verb+|+', |\hline|,
2642 % |\cline|, and |\vline|,
2643 % added 8 Jun 88
2644 % \begin{macrocode}
2645 \def\@arrayrule{\if@visible\@addtopreamble{\hskip -.5\arrayrulewidth
2646 \vrule \@width \arrayrulewidth\hskip -.5\arrayrulewidth}\fi}
2647 % \end{macrocode}
2648 %
2649 % \changes{v2.3t}{1996/01/31}{Change in \cs{cline} calling interface}
2650 % \begin{macrocode}
2651 \def\cline#1{\if@visible\@cline#1\@nil\fi}
2652
2653 \def\hline{\noalign{\ifnum0=`}\fi
2654 \if@visible \hrule \@height \arrayrulewidth
2655 \else \hrule \@width \z@
2656 \fi
2657 \futurelet \reserved@a\@xhline}
2658
2659 \def\vline{\if@visible \vrule \@width \arrayrulewidth
2660 \else \vrule \@width \arrayrulewidth \@height \z@
2661 \@depth \z@ \fi}
2662 % \end{macrocode}
2663 %
2664 % \begin{macrocode}
2665 \message{output,}
2666 % \end{macrocode}
2667 %
2668 % \subsubsection{Changes to \LaTeX{} output routine}
2669 %
2670 %\begin{verbatim}
2671 % \@makecol ==
2672 % BEGIN
2673 % % Following test added for slides to check if extra page
2674 % if @makingslides = T
2675 % then if \c@page > 0
2676 % then if \c@note > 0
2677 % then type 'Note \thenote too long.'
2678 % else if \c@overlay > 0
2679 % then type 'Overlay \theoverlay too long.'
2680 % else type 'Slide \theslide too long'
2681 % fi fi fi fi
2682 % ifvoid \insert\footins
2683 % then \@outputbox := \box255
2684 % else \@outputbox := \vbox {\unvbox255
2685 % \vskip \skip\footins
2686 % \footnoterule
2687 % \unvbox\@footinsert
2688 % }
2689 % fi
2690 % \@freelist :=G \@freelist * \@midlist
2691 % \@midlist :=G empty
2692 % \@combinefloats
2693 % \@outputbox := \vbox to \@colht{\boxmaxdepth := \maxdepth
2694 % \vfil %%\vfil added for slides
2695 % \unvbox\@outputbox
2696 % \vfil } %%\vfil added for slides
2697 % \maxdepth :=G \@maxdepth
2698 % END
2699 %\end{verbatim}
2700 % FMi simple hack to allow none centered slides Should be revised
2701 % of course.
2702 % \begin{macrocode}
2703 \let\@topfil\vfil
2704
2705 \def\@makecol{\if@makingslides\ifnum\c@page>\z@ \@extraslide\fi\fi
2706 \ifvoid\footins \setbox\@outputbox\box\@cclv \let\@botfil\vfil
2707 \else\let\@botfil\relax\setbox\@outputbox
2708 \vbox{\unvbox\@cclv\vfil
2709 \vskip\skip\footins\footnoterule\unvbox\footins\vskip
2710 \z@ plus.1fil\relax}\fi
2711 \xdef\@freelist{\@freelist\@midlist}\gdef\@midlist{}\@combinefloats
2712 \setbox\@outputbox\vbox to\@colht{\boxmaxdepth\maxdepth
2713 \@topfil\unvbox\@outputbox\@botfil}\global\maxdepth\@maxdepth}
2714
2715 \def\@extraslide{\ifnum\c@note>\z@
2716 \ClassWarning{slides}{Note \thenote\space too long}\else
2717 \ifnum\c@overlay>\z@
2718 \ClassWarning{slides}{Overlay \theoverlay\space too long}\else
2719 \ClassWarning{slides}{Slide \theslide\space too long}\fi\fi}
2720 % \end{macrocode}
2721 %
2722 % \begin{macrocode}
2723 \message{init}
2724 % \end{macrocode}
2725 %
2726 %
2727 % \subsubsection{Special \SLiTeX{} initializations}
2728 %
2729 %FMi why not allow for ref's ?
2730 % \begin{macrocode}
2731 % \nofiles
2732
2733 \@visibletrue
2734 %</cmd>
2735 % \end{macrocode}
2736 %
2737 %
2738 % \Finale
2739 %
2740 \endinput