home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emtex04.zip / LATEXDOC.ZIP / EMTEX / TEXINPUT / SLIDES.DOC < prev    next >
Text File  |  1992-03-19  |  14KB  |  458 lines

  1. % SLIDES DOCUMENT STYLE -- released 04 Nov 1991
  2. %    for SliTeX version 2.09
  3. % Copyright (C) 1985, 1991 by Leslie Lamport
  4.  
  5.  
  6. \typeout{Document Style 'slides' -- released 04 Nov 91}
  7.  
  8. \def\@notinslitex{\errmessage{This command not allowed in SLiTeX.}}
  9.  
  10. %page layout
  11. \@twosidefalse
  12. \topmargin -10pt
  13. \oddsidemargin 17pt
  14. \evensidemargin 17pt
  15.  
  16. \def\ds@twoside{\@latexerr{No 'twoside' layout for slides}\@eha}
  17.  
  18. \headheight 14pt
  19. \headsep 15pt
  20. \footheight 14pt
  21. \footskip 25pt
  22. \textheight 600pt
  23. \textwidth 460pt
  24. \columnwidth \textwidth 
  25. \columnsep 10pt
  26. \columnseprule \z@
  27.  
  28. %footnotes
  29.  
  30. \skip\footins 10pt plus 2pt minus 4pt  % Space between last line of text
  31.                                        % and top of first footnote.
  32.  
  33. % \skip\@mpfootins : plays same role for footnotes in a minipage as
  34. %                    \skip\footins does for ordinary footnotes
  35.  
  36. \skip\@mpfootins = \skip\footins
  37.  
  38. \footnotesep 20pt     % Height of strut placed at the beginning of every
  39.                       % footnote.
  40.  
  41.  
  42.  
  43.  
  44. %floats and marginpar
  45. \marginparwidth 20pt 
  46. \marginparsep 5pt
  47. \marginparpush 5pt
  48.  
  49.  
  50.  
  51. %    ****************************************
  52. %    *               FONTS                  *
  53. %    ****************************************
  54. %
  55. %
  56. %  Note that SLITeX uses a different font-naming and size-defining
  57. %  convention than LaTeX.
  58.  
  59. \def\@mainsize{\@visibletrue\tiny}  
  60. \parindent 0pt
  61. \def\baselinestretch{1}
  62.  
  63. %% RmS 91/10/27: allowed \sc typeface in SliTeX
  64. %\def\sc{\@noslifont\sc}
  65. %\def\@noslifont#1{\@warning{No \string#1\space type style in SLiTeX}}
  66.  
  67. \def\Huge{\huge}
  68.  
  69. \def\huge{\@setsize\huge{60\p@ plus10\p@ minus6\p@}\@empty\@huge
  70. \lineskip 2\p@
  71. \def\@parskip{60\p@ plus30\p@ minus6\p@}%
  72. \parskip\@parskip
  73. \abovedisplayskip 24\p@ plus10\p@ minus6\p@
  74. \belowdisplayskip 24\p@ plus10\p@ minus6\p@
  75. \abovedisplayshortskip 12\p@ plus8\p@
  76. \belowdisplayshortskip 12\p@ plus8\p@
  77. \setbox\strutbox\hbox{\vrule \@height27\p@ \@depth11\p@ \@width\z@}}
  78.  
  79. \def\@huge{\if@visible\fortyonept\else\ifortyonept\fi}
  80.  
  81. \def\LARGE{\@setsize\LARGE{52\p@ plus10\p@ minus6\p@}\@empty\@LARGE
  82. \lineskip 2\p@
  83. \def\@parskip{52\p@ plus30\p@ minus6\p@}%
  84. \parskip\@parskip
  85. \abovedisplayskip 24\p@ plus10\p@ minus6\p@
  86. \belowdisplayskip 24\p@ plus10\p@ minus6\p@
  87. \abovedisplayshortskip 12\p@ plus8\p@
  88. \belowdisplayshortskip 12\p@ plus8\p@
  89. \setbox\strutbox\hbox{\vrule \@height27\p@ \@depth11\p@ \@width\z@}}
  90.  
  91. \def\@LARGE{\if@visible\thirtyfourpt\else\ithirtyfourpt\fi}
  92.  
  93. \def\Large{\@setsize\Large{48\p@ plus10\p@ minus6\p@}\@empty\@Large
  94. \lineskip 2\p@
  95. \def\@parskip{48\p@ plus30\p@ minus6\p@}%
  96. \parskip\@parskip
  97. \abovedisplayskip 24\p@ plus10\p@ minus6\p@
  98. \belowdisplayskip 24\p@ plus10\p@ minus6\p@
  99. \abovedisplayshortskip 12\p@ plus8\p@
  100. \belowdisplayshortskip 12\p@ plus8\p@
  101. \setbox\strutbox\hbox{\vrule \@height27\p@ \@depth11\p@ \@width\z@}}
  102.  
  103. \def\@Large{\if@visible\twentyninept\else\itwentyninept\fi}
  104.  
  105. \def\large{\@setsize\large{42\p@ plus8\p@ minus5\p@}\@empty\@large
  106. \lineskip 2\p@
  107. \def\@parskip{40\p@ plus20\p@ minus4\p@}%
  108. \parskip\@parskip
  109. \abovedisplayskip 20\p@ plus8\p@ minus3\p@
  110. \belowdisplayskip 20\p@ plus8\p@ minus3\p@
  111. \abovedisplayshortskip 10\p@ plus5\p@
  112. \belowdisplayshortskip 10\p@ plus5\p@
  113. \setbox\strutbox\hbox{\vrule \@height20\p@ \@depth8.5\p@ \@width\z@}}
  114.  
  115. \def\@large{\if@visible\twentyfourpt\else\itwentyfourpt\fi}
  116.  
  117.  
  118. \def\normalsize{\@setsize\normalsize{30\p@ plus3\p@ minus3\p@}\@empty
  119. \@normalsize
  120. \lineskip 2\p@
  121. \def\@parskip{30\p@ plus18\p@ minus9\p@}%
  122. \parskip\@parskip
  123. \abovedisplayskip 15\p@ plus3\p@ minus3\p@
  124. \belowdisplayskip 10\p@ plus3\p@ minus3\p@
  125. \abovedisplayshortskip 10\p@ plus3\p@
  126. \belowdisplayshortskip 10\p@ plus3\p@
  127. \setbox\strutbox\hbox{\vrule \@height17\p@ \@depth7\p@ \@width\z@}}
  128.  
  129. \def\@normalsize{\if@visible\twentypt\else\itwentypt\fi}
  130.  
  131. \def\small{\@setsize\small{19\p@ plus3\p@ minus\p@}\@empty\@small
  132. \lineskip 2\p@
  133. \def\@parskip{15\p@ plus15\p@ minus7\p@}%
  134. \parskip\@parskip
  135. \abovedisplayskip 12\p@ plus3\p@ minus3\p@
  136. \belowdisplayskip 9\p@ plus3\p@ minus3\p@
  137. \abovedisplayshortskip 6\p@ plus3\p@
  138. \belowdisplayshortskip 6\p@ plus3\p@
  139. \setbox\strutbox\hbox{\vrule \@height13.5\p@ \@depth5.6\p@ \@width\z@}}
  140.  
  141. \def\@small{\if@visible\seventeenpt\else\iseventeenpt\fi}
  142.  
  143. \let\footnotesize=\small
  144.  
  145. \let\scriptsize=\small
  146.  
  147. \def\tiny{\@setsize\tiny{16\p@ plus2\p@ minus\p@}\@empty\@tiny
  148. \lineskip 2\p@
  149. \def\@parskip{11\p@ plus11\p@ minus5\p@}%
  150. \parskip\@parskip
  151. \abovedisplayskip 14\p@ plus3\p@ minus10\p@
  152. \belowdisplayskip 14\p@ plus3\p@ minus10\p@
  153. \abovedisplayshortskip \z@ plus3\p@
  154. \belowdisplayshortskip 8\p@ plus3\p@ minus5\p@
  155. \setbox\strutbox\hbox{\vrule \@height10\p@ \@depth4\p@ \@width\z@}}
  156.  
  157. \def\@tiny{\if@visible\fourteenpt\else\ifourteenpt\fi}
  158.  
  159.  
  160. %    ****************************************
  161. %    *            PAGE STYLES               *
  162. %    ****************************************
  163. %
  164. %  The page styles of slides is determined by the 'slide' page
  165. %  style, the slide environment executing a \thispagestyle{slide}
  166. %  command.  The page styles of overlays and notes are similarly
  167. %  determined by 'overlay' and 'note' page styles.  The command
  168. %  standard 'headings', 'plain' and 'empty' page styles work by 
  169. %  redefining the 'slide', 'overlay', and 'note' styles.
  170. %
  171.  
  172. \def\ps@headings{%
  173. \def\ps@slide{\def\@oddfoot{\@mainsize +\hfil\hbox to3em{\theslide
  174.                                                           \hss}}%
  175.  \def\@oddhead{\@mainsize +\hfil +}%
  176.  \def\@evenfoot{\@mainsize +\hfil\hbox to3em{\theslide\hss}}%
  177.  \def\@evenhead{\@mainsize +\hfil +}}
  178. \def\ps@overlay{\def\@oddfoot{\@mainsize +\hfil\hbox to3em{\theoverlay
  179.                                                            \hss}}%
  180.  \def\@oddhead{\@mainsize +\hfil +}%
  181.  \def\@evenfoot{\@mainsize +\hfil\hbox to3em{\theoverlay\hss}}%
  182.  \def\@evenhead{\@mainsize +\hfil +}}
  183. \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
  184.  \def\@oddhead{}%
  185.  \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
  186.  \def\@evenhead{}}}
  187.  
  188. \def\ps@plain{\def\ps@slide{%
  189.  \def\@oddfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\theslide\hss}}%
  190.  \def\@oddhead{}%
  191.  \def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\theslide\hss}}%
  192.  \def\@evenhead{}}
  193. \def\ps@overlay{\def\@oddfoot{\@mainsize 
  194.    \mbox{}\hfil\hbox to 3em{\theoverlay\hss}}%
  195.  \def\@oddhead{}%
  196.  \def\@evenfoot{\@mainsize \mbox{}\hfil\hbox to 3em{\theoverlay\hss}}%
  197.  \def\@evenhead{}}
  198. \def\ps@note{\def\@oddfoot{\@mainsize \hbox{}\hfil\thenote}%
  199.  \def\@oddhead{}%
  200.  \def\@evenfoot{\@mainsize \hbox{}\hfil\thenote}%
  201.  \def\@evenhead{}}}
  202.  
  203. \def\ps@empty{%
  204. \def\ps@slide{\def\@oddhead{}\def\@oddfoot{}%
  205. \def\@evenhead{}\def\@evenfoot{}}%
  206. \def\ps@overlay{\def\@oddhead{}\def\@oddfoot{}%
  207. \def\@evenhead{}\def\@evenfoot{}}%
  208. \def\ps@note{\def\@oddhead{}\def\@oddfoot{}%
  209. \def\@evenhead{}\def\@evenfoot{}}}
  210.  
  211. % Default definition the 'slide', 'overlay', and 'note' page styles.
  212. \ps@headings
  213.  
  214. % Set ordinary page style to 'empty'
  215. \def\@oddhead{}\def\@oddfoot{}%
  216. \def\@evenhead{}\def\@evenfoot{}
  217.  
  218.  
  219.  
  220. % The \@options command causes the execution of every command \ds@FOO 
  221. % which is defined and for which the user typed the FOO option in his
  222. % \documentstyle command.  For every option BAR he typed for which
  223. % \ds@BAR is not defined, the file BAR.sty will be read after the
  224. % present (main) .STY file is executed.
  225.  
  226. \@options
  227.  
  228.  
  229.  
  230. %    ****************************************
  231. %    *           ENVIRONMENTS               *
  232. %    ****************************************
  233. %
  234. % titlepage
  235. %
  236. \def\titlepage{\newpage\thispagestyle{empty}\c@page\z@}
  237. \def\endtitlepage{\newpage}
  238.  
  239. % Default values for list environment.
  240.  
  241. \leftmargini 38pt
  242. \leftmarginii 30pt
  243. \leftmarginiii 20pt
  244. \leftmarginiv 15pt
  245. \leftmarginv 15pt
  246. \leftmarginvi 10pt
  247.  
  248. \def\@listi{\parsep .5\parskip
  249. \topsep \parsep
  250. \itemsep\parskip
  251. \partopsep \z@}
  252.  
  253. \def\@listii{\leftmargin\leftmarginii
  254.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  255.    \parsep .5\parskip
  256.    \topsep \parsep
  257.    \itemsep\parskip}
  258.  
  259. \def\@listiii{\leftmargin\leftmarginiii
  260.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep}
  261.  
  262. \def\@listiv{\leftmargin\leftmarginiv
  263.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  264.  
  265. \def\@listv{\leftmargin\leftmarginv
  266.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  267.  
  268. \def\@listvi{\leftmargin\leftmarginvi
  269.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  270.  
  271.  
  272.  
  273. \labelsep 10pt
  274. \tabbingsep \labelsep
  275. \leftmargin\leftmargini
  276. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  277.  
  278.  
  279.  
  280. %                PARAGRAPH-FORMATTING ENVIRONMENTS
  281. %                ---------------------------------
  282. % VERSE
  283. %   \CR ends line
  284. %   Line continuations indented further.
  285. %   Blank line makes new paragraph with \parskip space
  286. %
  287. \def\verse{\let\\=\@centercr \list{}{\itemsep\z@ 
  288.   \itemindent -15\p@\listparindent \itemindent 
  289.   \rightmargin\leftmargin\advance\leftmargin 15\p@}\item[]}
  290. \let\endverse\endlist
  291.  
  292. % QUOTATION
  293. %   Fills lines
  294. %   Indents paragraph
  295. %   
  296. \def\quotation{\list{}{\listparindent 20\p@\relax
  297.     \itemindent\listparindent
  298.     \rightmargin\leftmargin}\item[]}
  299. \let\endquotation=\endlist
  300.  
  301. % QUOTE -- same as quotation except no paragraph indentation,
  302. \def\quote{\list{}{\rightmargin\leftmargin}\item[]}
  303. \let\endquote=\endlist
  304.  
  305. %                 LIST-MAKING ENVIRONMENTS
  306. %                 ------------------------
  307. %
  308. % DESCRIPTION 
  309. %
  310. %  To change the formatting of the label, you must redefine 
  311. %  \descriptionlabel.  
  312.  
  313. \def\descriptionlabel#1{\hspace\labelsep \bf #1}
  314. \def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
  315.        \let\makelabel\descriptionlabel}}
  316.  
  317. \let\enddescription\endlist
  318.  
  319.  
  320.  
  321. % ENUMERATE
  322. %  Enumeration is done with four counters: enumi, enumii, enumiii
  323. %  and enumiv, where enumN controls the numbering of the Nth level
  324. %  enumeration.  The label is generated by the commands \labelenumi 
  325. %  ... \labelenumiv.  The expansion of \p@enumN\theenumN defines the 
  326. %  output of a \ref command.  
  327.  
  328. \def\labelenumi{\arabic{enumi}.}    
  329. \def\theenumi{\arabic{enumi}}     
  330.  
  331. \def\labelenumii{(\alph{enumii})}
  332. \def\theenumii{\alph{enumii}}
  333. \def\p@enumii{\theenumi}
  334.  
  335. \def\labelenumiii{\roman{enumiii}.}
  336. \def\theenumiii{\roman{enumiii}}
  337. \def\p@enumiii{\theenumi(\theenumii)}
  338.  
  339. \def\labelenumiv{\Alph{enumiv}.}
  340. \def\theenumiv{\Alph{enumiv}}     
  341. \def\p@enumiv{\p@enumiii\theenumiii}
  342.  
  343. % ITEMIZE
  344. % Itemization is controlled by four commands: \labelitemi, \labelitemii,
  345. % \labelitemiii, and \labelitemiv, which define the labels of the
  346. % various itemization levels.
  347.  
  348. \def\labelitemi{$\m@th\bullet$}
  349. \def\labelitemii{\bf --}
  350. \def\labelitemiii{$\m@th\ast$}
  351. \def\labelitemiv{$\m@th\cdot$}
  352.  
  353. % Theorem environments 
  354. % \@begintheorem ... \@endtheorem are the commands executed at the
  355. % beginning and end of a (user-defined) theorem-like environment.
  356. % Except \@opargbegintheorem is executed when an optional argument is
  357. % given.  Cf. LATEX.TEX.
  358. %
  359. % \def\@begintheorem#1#2{\it \trivlist
  360. %       \item[\hskip \labelsep{\bf #1\ #2}]}
  361. % \def\@opargbegintheorem#1#2#3{\it \trivlist
  362. %       \item[\hskip \labelsep{\bf #1\ #2\ (#3)}]}
  363. % \def\@endtheorem{\endtrivlist}
  364.  
  365. % Array and tabular environment parameters
  366. \arraycolsep 8pt
  367. \tabcolsep 10pt
  368. \arrayrulewidth .6pt
  369. \doublerulesep 3pt
  370.  
  371. % \fbox parameters
  372. \fboxsep = 5pt
  373. \fboxrule = .6pt
  374.  
  375. % Date
  376. \def\today{\ifcase\month\or
  377.   January\or February\or March\or April\or May\or June\or
  378.   July\or August\or September\or October\or November\or December\fi
  379.   \space\number\day, \number\year}
  380.  
  381.  
  382.  
  383. %    ****************************************
  384. %    *             FOOTNOTES                *
  385. %    ****************************************
  386. %
  387.  
  388. % Following makes footnotes numbered *, dagger, etc., with numbering
  389. % begun again on every slide, note, or overlay.
  390.  
  391. \def\thefootnote{\fnsymbol{footnote}}
  392. \@addtoreset{footnote}{slide}
  393. \@addtoreset{footnote}{overlay}
  394. \@addtoreset{footnote}{note}
  395.  
  396. % \footnoterule is a macro to draw the rule separating the footnotes
  397. % from the text.  It should take zero vertical space, so it needs a
  398. % negative skip to compensate for any positive space taken by the
  399. % rule.  (See PLAIN.TEX.)  The resulting rule will appear on all color
  400. % layers, so it's best not to draw a rule.
  401.  
  402. \let\footnoterule=\relax
  403.  
  404. %   \@makefntext{NOTE} :
  405. %        Must produce the actual footnote, using \@thefnmark as the
  406. %        mark of the footnote and NOTE as the text.  It is called when
  407. %        effectively inside a \parbox of width \columnwidth (i.e., with
  408. %        \hsize = \columnwidth).  The following macro indents all
  409. %        lines of the footnote by 10pt, and indents the first line of a
  410. %        new paragraph by 1em.  To change these dimensions, just
  411. %        substitute the desired value for '10pt' [in both places] or
  412. %        '1em'. The mark is flushright against the footnote. 
  413. %
  414. %        It is much easier to write a macro in which the footnote text
  415. %        is set like an ordinary text paragraph, with no indentation
  416. %        except on the first line of a paragraph, and the first line of
  417. %        the footnote.  In that case, all the macro must do is set
  418. %        \parindent to the appropriate value for succeeding paragraphs
  419. %        and put the proper indentation before mark.
  420.  
  421. \long\def\@makefntext#1{\noindent % Macro to make the text of a footnote
  422.     \hangindent 10\p@\hbox 
  423.     to10\p@{\hss $\m@th^{\@thefnmark}$}#1}
  424.  
  425. % \@makefnmark : A macro to generate the footnote marker that goes
  426. %                in the text.  
  427.  
  428.  
  429.  
  430.  
  431. \def\theequation{\@arabic{\c@equation}}
  432.  
  433. % The following stuff isn't used, but needs to be defined.
  434. \def\@figsep{7\p@}
  435. \def\@textfigsep{5\p@}
  436. \def\@captionskip{6\p@}
  437. \def\topfraction{.7}
  438. \def\bottomfraction{.3}
  439. \def\textfraction{.2}
  440. \def\floatpagefraction{.5}
  441. \def\dbltopfraction{.7}
  442. \def\dblfloatpagefraction{.5}
  443.  
  444.  
  445.  
  446.  
  447. %    ****************************************
  448. %    *           INITIALIZATION             *
  449. %    ****************************************
  450. %
  451. % Default initializations
  452.  
  453. \pagenumbering{arabic}
  454. \onecolumn
  455. \normalsize
  456.  
  457. \endinput
  458.