home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / useful / text / tex / pastex / macros / latex2e / base / slides.def < prev    next >
Text File  |  1994-06-14  |  19KB  |  511 lines

  1. %% 
  2. %% This is file `slides.def', generated 
  3. %% on <1994/6/14> with the docstrip utility (2.2h).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% slides.dtx  (with options: `cmd')
  8. %% 
  9. %% Copyright 1994 the LaTeX3 project and the individual authors. 
  10. %% All rights reserved. For further copyright information see the file 
  11. %% legal.txt, and any other copyright indicated in this file. 
  12. %% 
  13. %% This file is part of the LaTeX2e system. 
  14. %% ---------------------------------------- 
  15. %% 
  16. %% This system is distributed in the hope that it will be useful, 
  17. %% but WITHOUT ANY WARRANTY; without even the implied warranty of 
  18. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  19. %% 
  20. %% 
  21. %% IMPORTANT NOTICE: 
  22. %% 
  23. %% For error reports in case of UNCHANGED versions see bugs.txt. 
  24. %% 
  25. %% Please do not request updates from us directly. Distribution is 
  26. %% done through Mail-Servers and TeX organizations. 
  27. %% 
  28. %% You are not allowed to change this file. 
  29. %% 
  30. %% You are allowed to distribute this file under the condition that 
  31. %% it is distributed together with all files mentioned in manifest.txt. 
  32. %% 
  33. %% If you receive only some of these files from someone, complain! 
  34. %% 
  35. %% You are NOT ALLOWED to distribute this file alone. You are NOT 
  36. %% ALLOWED to take money for the distribution or use of either this 
  37. %% file or a changed version, except for a nominal charge for copying 
  38. %% etc. 
  39. %% \CharacterTable
  40. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  41. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  42. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  43. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  44. %%   Dollar        \$     Percent       \%     Ampersand     \&
  45. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  46. %%   Asterisk      \*     Plus          \+     Comma         \,
  47. %%   Minus         \-     Point         \.     Solidus       \/
  48. %%   Colon         \:     Semicolon     \;     Less than     \<
  49. %%   Equals        \=     Greater than  \>     Question mark \?
  50. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  51. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  52. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  53. %%   Right brace   \}     Tilde         \~}
  54. \ProvidesFile{slides.def}
  55.               [1994/06/01 v2.3h
  56.                SLiTeX definitions]
  57. \message{hacks,}
  58.  
  59. \outer\def\newifG#1{\count@\escapechar \escapechar\m@ne
  60.   \expandafter\expandafter\expandafter
  61.    \edef\@ifG#1{true}{\global\let\noexpand#1\noexpand\iftrue}%
  62.   \expandafter\expandafter\expandafter
  63.    \edef\@ifG#1{false}{\global\let\noexpand#1\noexpand\iffalse}%
  64.   \@ifG#1{false}\escapechar\count@} % the condition starts out false
  65. \def\@ifG#1#2{\csname\expandafter\ifG@\string#1#2\endcsname}
  66. {\uccode`1=`i \uccode`2=`f \uccode`3=`G \uppercase{\gdef\ifG@123{G}}}
  67.  % `ifG' is required
  68.  
  69. \def\@gobbletoend#1{\def\@argend{#1}\@ggobtoend}
  70.  
  71. \long\def\@ggobtoend#1\end#2{\fi\def\@tempa{#2}%
  72. \ifx\@tempa\@argend\else\@ggobtoend\fi}
  73.  \message{slides,}
  74. \newif\if@bw
  75. \newif\if@visible
  76. \newif\if@onlyslidesw \@onlyslideswfalse
  77. \newif\if@onlynotesw  \@onlynoteswfalse
  78. \newif\if@makingslides
  79. \newifG\ifG@slidesw
  80. \countdef\c@slide=0 \c@slide=0
  81. \def\cl@slide{}
  82. \countdef\c@overlay=1 \c@overlay=0
  83. \def\cl@overlay{}
  84. \countdef\c@note=2 \c@note=0
  85. \def\cl@note{}
  86.  
  87. \@addtoreset{overlay}{slide}
  88. \@addtoreset{note}{slide}
  89. \@definecounter{page}
  90. \@addtoreset{page}{slide}
  91. \@addtoreset{page}{note}
  92. \@addtoreset{page}{overlay}
  93.  
  94. \def\theslide{\@arabic\c@slide}
  95. \def\theoverlay{\theslide-\@alph\c@overlay}
  96. \def\thenote{\theslide-\@arabic\c@note}
  97. \def\@sl@getargs#1-#2-#3\relax#4#5{\xdef#4{#1}\xdef#5{#2}}
  98. \def\@sl@ccdr#1,#2\relax#3#4{\xdef#3{#1-#1-}\xdef#4{#2}}
  99.  
  100. \def\@setlimits #1#2#3{\expandafter\@sl@ccdr#1\relax\@sl@gtmp #1%
  101. \expandafter\@sl@getargs\@sl@gtmp\relax#2#3}
  102. \def\onlyslides#1{\@onlyslideswtrue
  103.    \gdef\@doglslidelist{#1,999999,999999}%
  104.    \if@onlynotesw \else
  105.       \@onlynoteswtrue\gdef\@doglnotelist{999999,999999}\fi
  106.    \typeout{Only Slides #1}}
  107. \def\onlynotes#1{\@onlynoteswtrue
  108.    \gdef\@doglnotelist{#1,999999,999999}%
  109.    \if@onlyslidesw \else
  110.       \@onlyslideswtrue\gdef\@doglslidelist{999999,999999}\fi
  111.    \typeout{Only Notes #1}}
  112. \if@compatibility
  113. \def\blackandwhite#1{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
  114. \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
  115. \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
  116. \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
  117. \@setlimits\@donotelist\@donotelow\@donotehigh\fi
  118. \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
  119. \setcounter{note}{0}\@makingslidestrue\input #1\@makingslidesfalse}
  120. \def\colors#1{\@for\@colortemp:=#1\do{\expandafter
  121.   \xdef\csname\@colortemp\endcsname{\noexpand\@color{\@colortemp}}}\ifx
  122.   \@colorlist\@empty \gdef\@colorlist{#1}%
  123.     \else \xdef\@colorlist{\@colorlist,#1}\fi}
  124.  
  125. \def\@colorlist{}
  126. \def\colorslides#1{\newpage\setcounter{page}{0}\@bwfalse
  127. \@for\@currcolor:=\@colorlist\do
  128. {\@visibletrue
  129. \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
  130. \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
  131. \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
  132. \@setlimits\@donotelist\@donotelow\@donotehigh\fi
  133. \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
  134. \setcounter{note}{0}\typeout{color \@currcolor}%
  135. \newpage
  136. \begin{huge}%
  137. \begin{center}%
  138. COLOR LAYER\\[.75in]%
  139. \@currcolor
  140. \end{center}%
  141. \end{huge}%
  142. \newpage
  143. \@makingslidestrue
  144. \input #1
  145. \@makingslidesfalse}}
  146. \else  %% if@compatibility
  147. \def\setupcounters{\newpage\setcounter{page}{0}\@bwtrue\@visibletrue
  148. \if@onlyslidesw \xdef\@doslidelist{\@doglslidelist}%
  149. \@setlimits\@doslidelist\@doslidelow\@doslidehigh\fi
  150. \if@onlynotesw \xdef\@donotelist{\@doglnotelist}%
  151. \@setlimits\@donotelist\@donotelow\@donotehigh\fi
  152. \normalsize\setcounter{slide}{0}\setcounter{overlay}{0}%
  153. \setcounter{note}{0}\@makingslidesfalse}
  154.  
  155. \AtBeginDocument{\setupcounters}
  156. \fi %% if@compatibility
  157. \if@compatibility
  158. \def\slide#1{\stepcounter{slide}\G@slideswtrue\if@onlyslidesw
  159. \@whilenum \c@slide >\@doslidehigh\relax
  160. \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
  161. \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
  162. \ifG@slidesw
  163.   \G@slideswfalse
  164.   \if@bw\G@slideswtrue\else
  165.     \@color{#1}\if@visible \G@slideswtrue \fi
  166.   \fi
  167. \fi
  168. \ifG@slidesw \newpage\thispagestyle{slide}%
  169. \csname \last@color \endcsname
  170. \else\end{slide}\@gobbletoend{slide}\fi}
  171. \else  %% if@compatibility
  172. \def\slide{\par\break
  173. \stepcounter{slide}\setcounter{page}{0}\G@slideswtrue\if@onlyslidesw
  174. \@whilenum \c@slide >\@doslidehigh\relax
  175. \do{\@setlimits\@doslidelist\@doslidelow\@doslidehigh}\ifnum
  176. \c@slide <\@doslidelow\relax\G@slideswfalse\fi\fi
  177. \ifG@slidesw
  178.   \G@slideswfalse
  179.   \if@bw\G@slideswtrue\else
  180.     \if@visible \G@slideswtrue \fi
  181.   \fi
  182. \fi
  183. \ifG@slidesw \@makingslidestrue\thispagestyle{slide}%
  184. \csname \last@color \endcsname
  185. \else\end{slide}\@gobbletoend{slide}\fi}
  186. \fi %% if@compatibility
  187.  
  188. \let\last@color\@empty
  189.  
  190. \def\endslide{\par\break}
  191. \if@compatibility
  192. \def\overlay#1{\stepcounter{overlay}\G@slideswtrue%
  193. \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
  194. \G@slideswfalse\fi\fi
  195. \ifG@slidesw \G@slideswfalse\begingroup\if@bw\G@slideswtrue%
  196. \else\@color{#1}\if@visible \G@slideswtrue\fi\fi\endgroup\fi
  197. \ifG@slidesw \newpage\thispagestyle{overlay}%
  198. \else\end{overlay}\@gobbletoend{overlay}\fi}
  199. \else %%if@compatibility
  200. \def\overlay{\par\break
  201.   \stepcounter{overlay}%
  202.   \setcounter{page}{0}%
  203.   \G@slideswtrue%
  204.   \if@onlyslidesw\ifnum \c@slide <\@doslidelow\relax
  205.     \G@slideswfalse\fi\fi
  206.   \ifG@slidesw \G@slideswfalse
  207.     \begingroup\if@bw\G@slideswtrue%
  208.                \else\if@visible \G@slideswtrue\fi\fi
  209.     \endgroup\fi
  210.   \ifG@slidesw \@makingslidestrue\thispagestyle{overlay}%
  211.   \else\end{overlay}\@gobbletoend{overlay}\fi}
  212. \fi %%if@compatibility
  213.  
  214. \def\endoverlay{\par\break}
  215. \if@compatibility
  216. \def\note{\stepcounter{note}%
  217.    \if@bw
  218.       \G@slideswtrue
  219.       \if@onlynotesw\@whilenum \c@slide >\@donotehigh\relax
  220.       \do{\@setlimits\@donotelist\@donotelow\@donotehigh}\ifnum
  221.         \c@slide <\@donotelow\relax \G@slideswfalse\fi\fi
  222.       \else\G@slideswfalse\fi
  223.       \ifG@slidesw \newpage\thispagestyle{note}\else
  224.       \end{note}\@gobbletoend{note}\fi}
  225. \else %%if@compatibility
  226. \def\n