| 1 |
%% |
| 2 |
%% This file may be distributed and/or modified under the conditions of |
| 3 |
%% the LaTeX Project Public License, either version 1.2 of this license |
| 4 |
%% or (at your option) any later version. The latest version of this |
| 5 |
%% license is in: |
| 6 |
%% |
| 7 |
%% http://www.latex-project.org/lppl.txt |
| 8 |
%% |
| 9 |
%% and version 1.2 or later is part of all distributions of LaTeX version |
| 10 |
%% 1999/12/01 or later. |
| 11 |
%% |
| 12 |
%% BEGIN seminar.bug |
| 13 |
% LAST MODIFIED: December 1997 |
| 14 |
% The latest version of this file can be obtained from Princeton.EDU. |
| 15 |
|
| 16 |
% This file list some bugs and latebreaking news for seminar.sty, |
| 17 |
% version 1.0, released April 1, 1993. |
| 18 |
|
| 19 |
% 1. Typo in the user's guide: \espfslidesize should be \epsfslidesize. |
| 20 |
|
| 21 |
% 2. fancyheadings.sty does not work well with slides. |
| 22 |
% WORKAROUND: Ignore the footnote in the User's Guide that discusses this. |
| 23 |
% Instead: |
| 24 |
% |
| 25 |
% - If you want the width of the header to be "\textwidth" |
| 26 |
% (the usual state of affairs), then put |
| 27 |
% |
| 28 |
% \renewcommand{\headwidth}{\textwidth} |
| 29 |
% |
| 30 |
% in the preamble and do not change "\headwidth" after that. |
| 31 |
% |
| 32 |
% - If you want to set the width to something else, then you have to scale |
| 33 |
% it appropriately. E.g., use |
| 34 |
% |
| 35 |
% \setslidelength{\headwidth}{<dim>} |
| 36 |
% |
| 37 |
% or, if are using the "fancy" page style with both the article and |
| 38 |
% slides formats, use |
| 39 |
% \ifarticle |
| 40 |
% \setartlength{\headwidth}{<dim1>} |
| 41 |
% \else |
| 42 |
% \setslidelength{\headwidth}{<dim2>} |
| 43 |
% \fi |
| 44 |
|
| 45 |
% 3. Some people prefer that the headers/footers automatically adjust their |
| 46 |
% size to the width of the framed slide (I don't, which I guess is why |
| 47 |
% seminar.sty does not work this way.) I have added an option for this. |
| 48 |
% Put the command |
| 49 |
% |
| 50 |
% \autoslidemarginstrue |
| 51 |
% |
| 52 |
% in the preamble. You must also input this file (seminar.bug), which |
| 53 |
% contains the patch. |
| 54 |
|
| 55 |
% 4. The optional argument in \twoup[int] does not work with the |
| 56 |
% portrait option and slides format. |
| 57 |
% PATCH: Input this file. |
| 58 |
|
| 59 |
% 5. Slide labels can come out in the wrong size font. |
| 60 |
% PATCH: Input this file. |
| 61 |
|
| 62 |
% 6. When \newslide is used inside a list environment, subsequent nested |
| 63 |
% list environments can have the wrong line width. |
| 64 |
% PATCH: Input this file. |
| 65 |
|
| 66 |
% 7. \overlaypagestyle and \layerpagestyle commands ignored. |
| 67 |
% PATCH: Input this file, AFTER inputting semlayer.sty. |
| 68 |
|
| 69 |
% 8. boxedEPS.tex won't work inside slide environments (because seminar.sty |
| 70 |
% erroneously modifies \read so that it is preceded by \immediate). |
| 71 |
% PATCH: Input this file. |
| 72 |
|
| 73 |
%%%% PATCHES |
| 74 |
|
| 75 |
\edef\TheAtCode{\the\catcode`\@} |
| 76 |
\catcode`\@=11 |
| 77 |
|
| 78 |
% 3. |
| 79 |
\newif\ifautoslidemargins |
| 80 |
\ifarticle\else |
| 81 |
\def\output@slide{% |
| 82 |
\begingroup |
| 83 |
\hoffset=-\inverseslidesmag in |
| 84 |
\voffset=-\inverseslidesmag in |
| 85 |
\setslidelength\@tempdima{% |
| 86 |
\ifportrait\paperwidth\else\paperheight\fi}% |
| 87 |
\setslidelength\@tempdimb{% |
| 88 |
\ifportrait\paperheight\else\paperwidth\fi}% |
| 89 |
\ifrotateheaders |
| 90 |
\@ifrotateslide{% |
| 91 |
\dimen@=\@tempdima |
| 92 |
\@tempdima=\@tempdimb |
| 93 |
\@tempdimb=\dimen@}% |
| 94 |
\fi |
| 95 |
% \oddsidemargin, \evensidemargin, \headheight, \footheight |
| 96 |
% used for scratch: |
| 97 |
% Some page styles like to know \textwidth: |
| 98 |
\setslidelength\headheight\slidetopmargin |
| 99 |
\setslidelength\footheight\slidebottommargin |
| 100 |
\ifautoslidemargins |
| 101 |
\textwidth=\wd\@slidebox |
| 102 |
\oddsidemargin=\@tempdima |
| 103 |
\advance\oddsidemargin-\textwidth |
| 104 |
\divide\oddsidemargin 2 |
| 105 |
\else |
| 106 |
\setslidelength\oddsidemargin\slideleftmargin |
| 107 |
\setslidelength\evensidemargin\sliderightmargin |
| 108 |
\textwidth=\@tempdima |
| 109 |
\advance\textwidth-\oddsidemargin |
| 110 |
\advance\textwidth-\evensidemargin |
| 111 |
\fi |
| 112 |
\setbox\@slidebox=\hbox to \@tempdima{% |
| 113 |
\kern\oddsidemargin |
| 114 |
\vbox to\@tempdimb{% |
| 115 |
\ifnum\fancyput@flag>-1 |
| 116 |
\hbox{\kern-\oddsidemargin\do@fancyput}% |
| 117 |
\fi |
| 118 |
\let\label\@gobble |
| 119 |
\let\index\@gobble |
| 120 |
\let\glossary\@gobble |
| 121 |
\vbox to\headheight{% |
| 122 |
\vfill |
| 123 |
\hbox{% |
| 124 |
\slideheadfont\relax\strut |
| 125 |
\hbox to\textwidth{\@oddhead}}% |
| 126 |
\kern\z@}% |
| 127 |
\vfill |
| 128 |
\hbox to\textwidth{\hss\box\@slidebox\hss}% |
| 129 |
\vfill |
| 130 |
\vbox to\footheight{% |
| 131 |
\hbox{% |
| 132 |
\slidefootfont\relax\strut |
| 133 |
\hbox to\textwidth{\@oddfoot}}% |
| 134 |
\vfill}}% |
| 135 |
\hss}% |
| 136 |
\ifrotateheaders\@ifrotateslide\rotate@slide\fi |
| 137 |
\insert@specials |
| 138 |
\shipout\box\@slidebox |
| 139 |
\endgroup |
| 140 |
\let\firstmark\botmark} |
| 141 |
\@ifundefined{fancyput@flag}{\def\fancyput@flag{-1}}{} |
| 142 |
\fi |
| 143 |
|
| 144 |
% 4. |
| 145 |
\ifarticle\else |
| 146 |
\ifportrait |
| 147 |
\def\@twoup[#1]{% |
| 148 |
\@tempcnta=\the@slidesmag\relax |
| 149 |
\@tempcntb=\@tempcnta |
| 150 |
\advance\@tempcntb by #1\relax |
| 151 |
\advance\@tempcntb by -3\relax |
| 152 |
\ifnum\@tempcntb>-6\relax |
| 153 |
\@@input 2up.tex |
| 154 |
\source{\@magstep\@tempcnta}{\paperwidth}{\paperheight}% |
| 155 |
\target{\@magstep\@tempcntb}{\paperheight}{\paperwidth}% |
| 156 |
\printlandscapetrue |
| 157 |
\else |
| 158 |
\@seminarerr{Slides magnification is too low for |
| 159 |
\string\twoup\space to handle}\@eha |
| 160 |
\fi |
| 161 |
\def\slidesmag##1{\@semtwoupmagerr\slidesmag}} |
| 162 |
\fi |
| 163 |
\fi |
| 164 |
|
| 165 |
% 5. |
| 166 |
\def\reset@slideoutput{% |
| 167 |
\let\par\@@par |
| 168 |
\reset@font |
| 169 |
\normalsize |
| 170 |
\def\baselinestretch{1}% |
| 171 |
\@nameuse{1\@ptsize @semptsize}% |
| 172 |
\catcode`\ =10 |
| 173 |
\let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii} |
| 174 |
|
| 175 |
% 6. |
| 176 |
\def\extraslideheight#1{% |
| 177 |
\@tempdima #1\relax |
| 178 |
\edef\X@SlideHeight{\number\@tempdima sp} |
| 179 |
\ifslide\set@slideheight\fi} |
| 180 |
\def\set@slideheight{% |
| 181 |
\iflandscape |
| 182 |
\vsize=\inverseslidesmag\slideheight |
| 183 |
\else |
| 184 |
\vsize=\inverseslidesmag\slidewidth |
| 185 |
\fi |
| 186 |
\edef\slide@vsize{\number\vsize sp}% |
| 187 |
\textheight\vsize |
| 188 |
\advance\vsize\X@SlideHeight\relax} |
| 189 |
\def\newslide{% |
| 190 |
\par\penalty-\@M |
| 191 |
\def\do##1{\setcounter{##1}\z@}\slide@reset |
| 192 |
\the\before@newslide} |
| 193 |
|
| 194 |
% 7. Must be input after semlayer.sty. |
| 195 |
\def\layer@prep{% |
| 196 |
\ifarticle\else\pagestyle{\layer@pagestyle}\fi |
| 197 |
\let\thepage\thelayer |
| 198 |
\ifx\thelayerframe\@empty\else\let\theslideframe\thelayerframe\fi |
| 199 |
\let\slidelabel\layerlabel} |
| 200 |
\def\overlay@prep{% |
| 201 |
\ifarticle\else\pagestyle{\overlay@pagestyle}\fi |
| 202 |
\let\thepage\theoverlay |
| 203 |
\ifx\theoverlayframe\@empty\else\let\theslideframe\theoverlayframe\fi |
| 204 |
\let\slidelabel\overlaylabel} |
| 205 |
|
| 206 |
|
| 207 |
\catcode`\@=\TheAtCode\relax |
| 208 |
\endinput |
| 209 |
%% END seminar.bug |