summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/rnl-slides.sty
blob: cedc241c5300c739beb21d65b4cdb0d05de9efe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
 
 
    Hallo,
 
        Jemandem hat gefragt ob es m"oglich w"are einen Rand um einer TeXt
        herum zu machen. Bernd hat als `hint' gegeben dass das mit
        \@oddhead und \@evenhead geht.
        Hierbei ist eine SliTeX Stylefile der genau dass macht. Warnung:
        die File kann nicht ohne "Anderungen benutzt werden, denn es
        versucht mit einem \special eine LN03-sixel-File zu lesen.
        Aber vielleicht hilft es?
 
    Mit freundlichem Gruss,
 
        Johannes Braams
 
PTT Research Neher Laboratorium,        P.O. box 421,
2260 AK Leidschendam,                   The Netherlands.
Phone    : +31 70 3325051               E-mail : JL_Braams@pttrnl.nl
Fax      : +31 70 3326477
-------------------------------------------------------------------------------
% RNL-slides DOCUMENT STYLE
%    for SliTeX version 2.09
% Copyright (C) 1991 by Johannes Braams
% This style is based on the SLIDE style, Copyright (C) 1985 by Leslie Lamport
%
\def\fileversion{0.2}
\def\filedate{25 januari 1990}
\typeout{Documentstyle 'RNL-slides' version \fileversion\space <\filedate>}
 
\def\@notinslitex{\errmessage{This command not allowed in SLiTeX.}}
 
%page layout
\@twosidefalse
\topmargin -10pt
\oddsidemargin 17pt
\evensidemargin 17pt
 
\def\pl@twoside{\@latexerr{No 'twoside' layout for slides}\@eha}
 
\advance\hoffset by -1cm
\advance\voffset by -0.3cm
\headheight 0pt
\headsep 2.3pc
\footheight 0pt
\footskip 45pt
\newdimen\boxwidth\newdimen\boxheight
\boxwidth  = 63.2pc \textwidth  = \boxwidth  \advance\textwidth  by -4pc
\boxheight = 39.5pc \textheight = \boxheight \advance\textheight by -4.6pc
\columnwidth \textwidth
\columnsep 10pt
\columnseprule \z@
 
%footnotes
 
\skip\footins 10pt plus 2pt minus 4pt  % Space between last line of text and
                                       % top of first footnote.
 
% \skip\@mpfootins : plays same role for footnotes in a minipage as
%                    \skip\footins does for ordinary footnotes
 
\skip\@mpfootins = \skip\footins
 
\footnotesep 20pt     % Height of strut placed at the beginning of every
                      % footnote.
 
 
 
 
%floats and marginpar
\marginparwidth 0pt
\marginparsep 0pt
\marginparpush 0pt
 
 
 
 
 
 
 
 
 
%    ****************************************
%    *               FONTS                  *
%    ****************************************
%
%
%  Note that SLITeX uses a different font-naming and size-defining convention
%  than LaTeX.
%
\font\trm lcmss8
\def\@mainsize{\@visibletrue\tiny}
\parindent 0pt
\def\baselinestretch{1}
 
\def\sc{\@noslifont\sc}
\def\@noslifont#1{\@warning{No \string#1\space type style in SLiTeX}}
 
\def\Huge{\huge}
 
\def\huge{\@nomath\huge\@LARGE\@huge\def\@currsize{\@huge}\rm
\baselineskip 60pt plus 10pt minus 6pt%
\lineskip 2pt%
\def\@parskip{60pt plus 30pt minus 6pt}%
\parskip\@parskip
\abovedisplayskip 24pt plus 10pt minus 6pt%
\belowdisplayskip 24pt plus 10pt minus 6pt%
\abovedisplayshortskip 12pt plus 8pt%
\belowdisplayshortskip 12pt plus 8pt%
\setbox\strutbox=\hbox{\vrule height27pt depth11pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@huge{\if@visible\fortyonept\else\ifortyonept\fi}
 
\def\LARGE{\@nomath\LARGE\@LARGE\def\@currsize{\@LARGE}\rm
\baselineskip 52pt plus 10pt minus 6pt%
\lineskip 2pt%
\def\@parskip{52pt plus 30pt minus 6pt}%
\parskip\@parskip
\abovedisplayskip 24pt plus 10pt minus 6pt%
\belowdisplayskip 24pt plus 10pt minus 6pt%
\abovedisplayshortskip 12pt plus 8pt%
\belowdisplayshortskip 12pt plus 8pt%
\setbox\strutbox=\hbox{\vrule height27pt depth11pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@LARGE{\if@visible\thirtyfourpt\else\ithirtyfourpt\fi}
 
\def\Large{\@nomath\Large\@Large\def\@currsize{\@Large}\rm
\baselineskip 48pt plus 10pt minus 6pt%
\lineskip 2pt%
\def\@parskip{48pt plus 30pt minus 6pt}%
\parskip\@parskip
\abovedisplayskip 24pt plus 10pt minus 6pt%
\belowdisplayskip 24pt plus 10pt minus 6pt%
\abovedisplayshortskip 12pt plus 8pt%
\belowdisplayshortskip 12pt plus 8pt%
\setbox\strutbox=\hbox{\vrule height27pt depth11pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@Large{\if@visible\twentyninept\else\itwentyninept\fi}
 
\def\large{\@nomath\large\@large\def\@currsize{\@large}\rm
\baselineskip 42pt plus 8pt minus 5pt%
\lineskip 2pt%
\def\@parskip{40pt plus 20pt minus 4pt}%
\parskip\@parskip
\abovedisplayskip 20pt plus 8pt minus 3pt%
\belowdisplayskip 20pt plus 8pt minus 3pt%
\abovedisplayshortskip 10pt plus 5pt%
\belowdisplayshortskip 10pt plus 5pt%
\setbox\strutbox=\hbox{\vrule height20pt depth8.5pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@large{\if@visible\twentyfourpt\else\itwentyfourpt\fi}
 
 
\def\normalsize{\@nomath\normalsize\@normalsize\def\@currsize{\@normalsize}\rm
\baselineskip 30pt plus 3pt minus 3pt%
\lineskip 2pt%
\def\@parskip{30pt plus 12pt minus 6pt}%
\parskip\@parskip
\abovedisplayskip 10pt plus 2pt minus 2pt%
\belowdisplayskip 6pt plus 2pt minus 2pt%
\abovedisplayshortskip 6pt plus 2pt%
\belowdisplayshortskip 6pt plus 2pt%
\setbox\strutbox=\hbox{\vrule height17pt depth7pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@normalsize{\if@visible\twentypt\else\itwentypt\fi}
 
\def\small{\@nomath\small\@small\def\@currsize{\@small}\rm
\baselineskip 19pt plus 3pt minus 1pt%
\lineskip 2pt%
\def\@parskip{15pt plus 10pt minus 6pt}%
\parskip\@parskip
\abovedisplayskip 9pt plus 2pt minus 2pt%
\belowdisplayskip 6pt plus 2pt minus 2pt%
\abovedisplayshortskip 4pt plus 2pt%
\belowdisplayshortskip 4pt plus 2pt%
\setbox\strutbox=\hbox{\vrule height13.5pt depth5.6pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@small{\if@visible\seventeenpt\else\iseventeenpt\fi}
 
\let\footnotesize=\small
 
\let\scriptsize=\small
 
\def\tiny{\@nomath\tiny\@tiny\def\@currsize{\@tiny}\rm
\baselineskip 16pt plus 2pt minus 1pt%
\lineskip 2pt%
\def\@parskip{11pt plus 11pt minus 5pt}%
\parskip\@parskip
\abovedisplayskip  9pt plus 2pt minus  6pt%
\belowdisplayskip  9pt plus 2pt minus  6pt%
\abovedisplayshortskip 0pt plus 2pt%
\belowdisplayshortskip 0pt plus 2pt%
\setbox\strutbox=\hbox{\vrule height10pt depth4pt width0pt}%
\baselineskip\baselinestretch\baselineskip
\normalbaselineskip\baselineskip}
 
\def\@tiny{\if@visible\fourteenpt\else\ifourteenpt\fi}
 
%
%\change{0.2a}{25/01/91}{Redefine {\tt\bsl @arrayparbox} to fit \SLiTeX}
%
\def\@arrayparboxrestore{\let\par\@@par
    \let\-\@dischyph
    \let\'\@acci \let\`\@accii \let\=\@acciii
    \parindent\z@ \parskip\@parskip
    \everypar{}\linewidth\hsize
    \@totalleftmargin\z@ \leftskip\z@ \rightskip\z@ \@rightskip\z@
    \parfillskip\@flushglue \lineskip\normallineskip
    \baselineskip\normalbaselineskip\sloppy}
 
 
 
 
 
 
 
 
 
%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
\newbox\rand
\setbox\rand=\vbox to\boxheight{\hsize\boxwidth\offinterlineskip
\rlap{\hbox{\rule[-2pt]{\boxwidth}{2pt}}}
\vskip-2pt
\rlap{\hbox to \boxwidth{\rule[-\boxheight]{2pt}{\boxheight}\hfill
                         \rule[-\boxheight]{2pt}{\boxheight}}}
\vskip-2pt
\rlap{\hbox{\rule{\boxwidth}{2pt}}}
}
\ht\rand=\z@ \dp\rand=\z@ \wd\rand=\z@
 
\newbox\l@g@
\setbox\l@g@\hbox to 122pt{%
  \special{ln03:plotfile texinputs:research.six}\hfill\null}
\newbox\@slidenum
\def\pagebox#1{%
\setbox\@slidenum\vbox to 0pt{\vskip 18pt
\hbox{\hskip-33pt\trm 910128.#1}\vss}
\box\@slidenum}
%
%  The page styles of slides is determined by the 'slide' page
%  style, the slide environment executing a \thispagestyle{slide}
%  command.  The page styles of overlays and notes are similarly
%  determined by 'overlay' and 'note' page styles.  The command
%  standard 'headings', 'plain' and 'empty' page styles work by
%  redefining the 'slide', 'overlay', and 'note' styles.
%
 
\def\ps@headings{%
\def\ps@slide{%
    \def\@oddfoot{\pagebox{\theslide}\hfill\copy\l@g@}
    \def\@oddhead{\hskip-2pc\copy\rand\hfill\null}
    \let\@evenfoot\@oddfoot
    \let\@evenfoot\@oddfoot
    }
\def\ps@overlay{%
    \def\@oddfoot{\pagebox{\theoverlay}\hfill\copy\l@g@}
    \def\@oddhead{\hskip-2pc\copy\rand\hfill\null}
    \let\@evenfoot\@oddfoot
    \let\@evenfoot\@oddfoot
    }
\def\ps@note{%
    \def\@oddfoot{\pagebox{\thenote}\hfill\copy\l@g@}
    \def\@oddhead{\hskip-2pc\copy\rand\hfill\null}
    \let\@evenfoot\@oddfoot
    \let\@evenfoot\@oddfoot
    }
}
 
\let\ps@plain\ps@headings
\let\ps@empty\ps@headings
%
%\def\ps@plain{\def\ps@slide{%
%\def\@oddfoot{\@mainsize \mtbox{}\hfil\hbox to 3em{\theslide\hss}}%
%\def\@oddhead{}%
%%\def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\theslide\hss}}%
%\def\@evenhead{}}
%\def\ps@overlay{\def\@oddfoot{\@mainsize
%   \mbox{}\hfil\hbox to 3em{\theoverlay\hss}}%
%\def\@oddhead{}%
%\def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\theoverlay\hss}}%
%\def\@evenhead{}}
%\def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
%\def\@oddhead{}%
%\def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
%\def\@evenhead{}}}
 
%\def\ps@empty{%
%\def\ps@slide{\def\@oddhead{}\def\@oddfoot{}%
%\def\@evenhead{}\def\@evenfoot{}}%
%\def\ps@overlay{\def\@oddhead{}\def\@oddfoot{}%
%\def\@evenhead{}\def\@evenfoot{}}%
%\def\ps@note{\def\@oddhead{}\def\@oddfoot{}%
%\def\@evenhead{}\def\@evenfoot{}}}
 
% Default definition the 'slide', 'overlay', and 'note' page styles.
\ps@headings
 
% Set ordinary page style to 'empty'
%\def\@oddhead{}\def\@oddfoot{}%
%\def\@evenhead{}\def\@evenfoot{}
 
 
 
% The \@options command causes the execution of every command \ds@FOO
% which is defined and for which the user typed the FOO option in his
% \documentstyle command.  For every option BAR he typed for which
% \ds@BAR is not defined, the file BAR.sty will be read after the present
% (main) .STY file is executed.
 
\@options
 
 
 
 
 
 
 
 
 
%    ****************************************
%    *           ENVIRONMENTS               *
%    ****************************************
%
% titlepage
%
\def\titlepage{\newpage\thispagestyle{empty}\c@page\z@}
\def\endtitlepage{\newpage}
 
% Default values for list environment.
 
\leftmargini 38pt
\leftmarginii 30pt
\leftmarginiii 20pt
\leftmarginiv 15pt
\leftmarginv 15pt
\leftmarginvi 10pt
 
\labelsep 10pt
\tabbingsep \labelsep
 
\def\@listi{\leftmargin\leftmargini
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\parsep .5\parskip
\topsep \parsep
\itemsep\parskip
\partopsep 0pt}
 
\def\@listii{\leftmargin\leftmarginii
   \labelwidth\leftmarginii\advance\labelwidth-\labelsep
   \parsep .5\parskip
   \topsep \parsep
   \itemsep\parskip}
 
\def\@listiii{\leftmargin\leftmarginiii
    \labelwidth\leftmarginiii\advance\labelwidth-\labelsep}
 
\def\@listiv{\leftmargin\leftmarginiv
     \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
 
\def\@listv{\leftmargin\leftmarginv
     \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
 
\def\@listvi{\leftmargin\leftmarginvi
     \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
 
 
 
 
%                PARAGRAPH-FORMATTING ENVIRONMENTS
%                ---------------------------------
% VERSE
%   \CR ends line
%   Line continuations indented further.
%   Blank line makes new paragraph with \parskip space
%
\def\verse{\let\\=\@centercr \list{}{\itemsep\z@
  \itemindent -15pt\listparindent \itemindent
  \rightmargin\leftmargin\advance\leftmargin 15pt}\item[]}
\let\endverse\endlist
 
% QUOTATION
%   Fills lines
%   Indents paragraph
%
\def\quotation{\list{}{\listparindent 20pt\relax\itemindent\listparindent
    \rightmargin\leftmargin}\item[]}
\let\endquotation=\endlist
 
% QUOTE -- same as quotation except no paragraph indentation,
\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
\let\endquote=\endlist
 
%                 LIST-MAKING ENVIRONMENTS
%                 ------------------------
%
% DESCRIPTION
%
%  To change the formatting of the label, you must redefine
%  \descriptionlabel.
 
\def\descriptionlabel#1{\hspace\labelsep \bf #1}
\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
       \let\makelabel\descriptionlabel}}
 
\let\enddescription\endlist
 
 
 
% ENUMERATE
%  Enumeration is done with four counters: enumi, enumii, enumiii
%  and enumiv, where enumN controls the numbering of the Nth level
%  enumeration.  The label is generated by the commands \labelenumi
%  ... \labelenumiv.  The expansion of \p@enumN\theenumN defines the
%  output of a \ref command.
 
\def\labelenumi{\arabic{enumi}.}
\def\theenumi{\arabic{enumi}}
 
\def\labelenumii{(\alph{enumii})}
\def\theenumii{\alph{enumii}}
\def\p@enumii{\theenumi}
 
\def\labelenumiii{\roman{enumiii}.}
\def\theenumiii{\roman{enumiii}}
\def\p@enumiii{\theenumi(\theenumii)}
 
\def\labelenumiv{\Alph{enumiv}.}
\def\theenumiv{\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}
 
% ITEMIZE
% Itemization is controlled by four commands: \labelitemi, \labelitemii,
% \labelitemiii, and \labelitemiv, which define the labels of the various
% itemization levels.
 
\def\labelitemi{$\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\ast$}
\def\labelitemiv{$\cdot$}
 
%\change{0.2}{26/01/91}{Added {\tt\bsl freelines} and {\tt centerlist}
%                        environment}
% CENTERLIST
%
\def\freelines{\@rightskip 0\p@ plus 2em \rightskip\@rightskip}%
%  \leftskip\z@%
%  \parindent\z@%
%  \parfillskip = 0.1\hsize plus 1fil%
%  \parskip\z@}%
 
\def\centerlist#1#2{\center\minipage[t]{#2}
\freelines%\leftmargini=0pt
\csname #1\endcsname
\def\endcenterlist{\csname end#1\endcsname\endminipage\endcenter}}
 
\def\vcenter{\null\vfill}
\def\endvcenter{\vfill\null}
 
% Theorem environments
% \@begintheorem ... \@endtheorem are the commands executed at the
% beginning and end of a (user-defined) theorem-like environment.
% Except \@opargbegintheorem is executed when an optional argument is
% given.  Cf. LATEX.TEX.
%
% \def\@begintheorem#1#2{\it \trivlist \item[\hskip \labelsep{\bf #1\ #2}]}
% \def\@opargbegintheorem#1#2#3{\it \trivlist
%       \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
% \def\@endtheorem{\endtrivlist}
 
% Array and tabular environment parameters
\arraycolsep 8pt
\tabcolsep 10pt
\arrayrulewidth .6pt
\doublerulesep 3pt
 
% \fbox parameters
\fboxsep = 5pt
\fboxrule = .6pt
 
% Date
\def\today{\ifcase\month\or
  January\or February\or March\or April\or May\or June\or
  July\or August\or September\or October\or November\or December\fi
  \space\number\day, \number\year}
 
 
 
 
 
 
 
 
 
%    ****************************************
%    *             FOOTNOTES                *
%    ****************************************
%
 
% Following makes footnotes numbered *, dagger, etc., with numbering
% begun again on every slide, note, or overlay.
 
\def\thefootnote{\fnsymbol{footnote}}
\@addtoreset{footnote}{slide}
\@addtoreset{footnote}{overlay}
\@addtoreset{footnote}{note}
 
% \footnoterule is a macro to draw the rule separating the footnotes from
% the text.  It should take zero vertical space, so it needs a negative
% skip to compensate for any positive space taken by the rule.  (See
% PLAIN.TEX.)  The resulting rule will appear on all color layers, so
% it's best not to draw a rule.
 
\let\footnoterule=\relax
 
%   \@makefntext{NOTE} :
%        Must produce the actual footnote, using \@thefnmark as the mark
%        of the footnote and NOTE as the text.  It is called when effectively
%        inside a \parbox of width \columnwidth (i.e., with \hsize =
%        \columnwidth).  The following macro indents
%        all lines of the footnote by 10pt, and indents the first line of
%        a new paragraph by 1em.  To change these dimensions, just substitute
%        the desired value for '10pt' [in both places] or '1em'.
%        The mark is flushright against the footnote.
%
%        It is much easier to write a macro in which the footnote text is
%        set like an ordinary text paragraph, with no indentation except
%        on the first line of a paragraph, and the first line of the
%        footnote.  In that case, all the macro must do is set \parindent
%        to the appropriate value for succeeding paragraphs and put the
%        proper indentation before mark.
 
\long\def\@makefntext#1{\noindent % Macro to make the text of a footnote
    \hangindent 10pt\hbox
    to 10pt{\hss $^{\@thefnmark}$}#1}
 
% \@makefnmark : A macro to generate the footnote marker that goes
%                in the text.
 
 
 
 
 
 
 
 
 
 
\def\theequation{\@arabic{\c@equation}}
 
% The following stuff isn't used, but needs to be defined.
\def\@figsep{7pt}
\def\@textfigsep{5pt}
\def\@captionskip{6pt}
\def\topfraction{.7}
\def\bottomfraction{.3}
\def\textfraction{.2}
\def\floatpagefraction{.5}
\def\dbltopfraction{.7}
\def\dblfloatpagefraction{.5}
 
 
 
 
 
 
 
 
 
%    ****************************************
%    *           INITIALIZATION             *
%    ****************************************
%
% Default initializations
 
\pagenumbering{arabic}
\onecolumn
\normalsize