| 1 |
%% @texfile{ |
| 2 |
%% filename = "tugboat.sty", |
| 3 |
%% copyright = "Copyright 1993,1999,2003,2006,2011-2025 TeX Users Group. |
| 4 |
%% Unlimited copying and redistribution of this file |
| 5 |
%% are permitted as long as this file is not |
| 6 |
%% modified. Modifications (and redistribution of |
| 7 |
%% modified versions) are also permitted, but only if |
| 8 |
%% the resulting file is renamed." |
| 9 |
%% version = "see below \fileversion" |
| 10 |
%% date = "see below \filedate", |
| 11 |
%% filetype = "Plain TeX macros for TUGboat", |
| 12 |
%% requires = "tugboat.cmn", |
| 13 |
%% supported = "yes", |
| 14 |
%% email = "[email protected]", |
| 15 |
%% codetable = "ISO/ASCII", |
| 16 |
%% keywords = "tex users group, tugboat, plain tex", |
| 17 |
%% abstract = "This file contains the plain-based macros |
| 18 |
%% for preparation of items in TUGboat, the |
| 19 |
%% Communications of the TeX Users Group.", |
| 20 |
%% } |
| 21 |
%% $Id: tugboat.sty 648 2025-06-16 17:12:34Z karl $ |
| 22 |
|
| 23 |
\def\thistubstyle{plain} |
| 24 |
\def\fileversion{v1.32} |
| 25 |
\def\filedate{2025-06-16} |
| 26 |
|
| 27 |
% general items |
| 28 |
|
| 29 |
\def\makeatletter{\catcode`\@=11 } |
| 30 |
\makeatletter % used, as in PLAIN, in protected control sequences |
| 31 |
|
| 32 |
% stop reading this file if it's been loaded already |
| 33 |
\ifx\tugstyloaded@\thistubstyle\makeatother\initializearticle |
| 34 |
\endinput\else\let\tugstyloaded@\thistubstyle\fi |
| 35 |
|
| 36 |
\message{File `TUGBOAT.STY' \fileversion \space\space <\filedate>} |
| 37 |
|
| 38 |
\input tugboat.cmn % macros intended to be common to tugboat.sty and |
| 39 |
% ltugboat.sty (latex style file) |
| 40 |
|
| 41 |
|
| 42 |
% some things with the same names as in, or reiterated from, AMS-TeX |
| 43 |
|
| 44 |
\def\document{} % override an AMS-TeX convention |
| 45 |
|
| 46 |
\output{\output@} |
| 47 |
|
| 48 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 49 |
% |
| 50 |
% Directory. |
| 51 |
% |
| 52 |
% ** fonts |
| 53 |
% ** page dimensions |
| 54 |
% ** headers/footers |
| 55 |
% ** page adjustment |
| 56 |
% ** output |
| 57 |
% ** general mechanism for tags |
| 58 |
% ** titles, authors, addresses |
| 59 |
% ** heads |
| 60 |
% ** text and subtext |
| 61 |
% ** lists |
| 62 |
% ** verbatim |
| 63 |
% ** figures |
| 64 |
% ** utilities |
| 65 |
% ** initialization |
| 66 |
|
| 67 |
%% |
| 68 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 69 |
% |
| 70 |
% ***** fonts ***** |
| 71 |
% |
| 72 |
|
| 73 |
% Struts give ascenders and descenders to assist in baseline alignment |
| 74 |
% (e.g. of adjoining vertical boxes); useful only with text fonts. |
| 75 |
% |
| 76 |
% \strut is defined in PLAIN . The structure of \strutt is equivalent. |
| 77 |
|
| 78 |
\newbox\struttbox |
| 79 |
\def\strutt{\relax\ifmmode\copy\struttbox\else\unhcopy\struttbox\fi} |
| 80 |
|
| 81 |
% Struts are given the following dimensions for use in TUGboat: |
| 82 |
% |
| 83 |
% \strut = height/depth of parenthesis in current font |
| 84 |
% (not the same as PLAIN) |
| 85 |
% \strutt height + depth = \normalbaselineskip, |
| 86 |
% height = same as \strut |
| 87 |
% (equivalent to PLAIN \strut ) |
| 88 |
|
| 89 |
|
| 90 |
% The fonts below are sufficient for most ordinary TUGboat production. |
| 91 |
% Additional titling fonts are defined elsewhere, and occasionally an |
| 92 |
% extra font will be needed for a particular item (e.g. the device |
| 93 |
% charts) and defined in that file. |
| 94 |
|
| 95 |
% All PLAIN CM fonts. |
| 96 |
|
| 97 |
\font\tenrm=cmr10 |
| 98 |
\font\ninerm=cmr9 |
| 99 |
\font\eightrm=cmr8 |
| 100 |
\font\sevenrm=cmr7 |
| 101 |
\font\sixrm=cmr6 |
| 102 |
\font\fiverm=cmr5 |
| 103 |
|
| 104 |
\font\teni=cmmi10 \skewchar\teni='177 |
| 105 |
\font\ninei=cmmi9 \skewchar\ninei='177 |
| 106 |
\font\eighti=cmmi8 \skewchar\eighti='177 |
| 107 |
\font\seveni=cmmi7 \skewchar\seveni='177 |
| 108 |
\font\sixi=cmmi6 \skewchar\sixi='177 |
| 109 |
\font\fivei=cmmi5 \skewchar\fivei='177 |
| 110 |
|
| 111 |
\font\tensy=cmsy10 \skewchar\tensy='60 |
| 112 |
\font\ninesy=cmsy9 \skewchar\ninesy='60 |
| 113 |
\font\eightsy=cmsy8 \skewchar\eightsy='60 |
| 114 |
\font\sevensy=cmsy7 \skewchar\sevensy='60 |
| 115 |
\font\sixsy=cmsy6 \skewchar\sixsy='60 |
| 116 |
\font\fivesy=cmsy5 \skewchar\fivesy='60 |
| 117 |
|
| 118 |
\font\tenex=cmex10 |
| 119 |
|
| 120 |
\font\tenbf=cmbx10 |
| 121 |
\font\ninebf=cmbx9 |
| 122 |
\font\eightbf=cmbx8 |
| 123 |
\font\sevenbf=cmbx7 |
| 124 |
\font\sixbf=cmbx6 |
| 125 |
\font\fivebf=cmbx5 |
| 126 |
|
| 127 |
\font\tentt=cmtt10 |
| 128 |
\font\ninett=cmtt9 |
| 129 |
\font\eighttt=cmtt8 |
| 130 |
|
| 131 |
\ifx\tubhyphenatett\@thisisundefined |
| 132 |
% do not hyphenate typewriter unless explicitly requested (as |
| 133 |
% tb0hyf.tex does). |
| 134 |
\hyphenchar\tentt=-1 |
| 135 |
\hyphenchar\ninett=-1 |
| 136 |
\hyphenchar\eighttt=-1 |
| 137 |
\fi |
| 138 |
|
| 139 |
\font\tensl=cmsl10 |
| 140 |
\font\ninesl=cmsl9 |
| 141 |
\font\eightsl=cmsl8 |
| 142 |
\font\sevensl=cmti7 % Would use cmsl7 if it were standard. |
| 143 |
% Currently needed only for \def of \LaTeX |
| 144 |
|
| 145 |
\font\tenit=cmti10 |
| 146 |
\font\nineit=cmti9 |
| 147 |
\font\eightit=cmti8 |
| 148 |
\font\sevenit=cmti7 |
| 149 |
|
| 150 |
\font\tenuit=cmu10 |
| 151 |
\font\tenbfsl=cmbxsl10 |
| 152 |
|
| 153 |
\font\tensmc=cmcsc10 |
| 154 |
\font\ninesmc=cmcsc10 % redefine if cmcsc9 and/or cmcsc8 exist |
| 155 |
\font\eightsmc=cmcsc10 |
| 156 |
|
| 157 |
\font\tentex=cmtex10 % for ASCII character set |
| 158 |
|
| 159 |
\font\tenlogo=logo10 |
| 160 |
\font\ninelogo=logo9 |
| 161 |
\font\eightlogo=logo8 |
| 162 |
% |
| 163 |
\font\tenlogosl=logosl10 |
| 164 |
\font\ninelogosl=logosl10 at 9pt |
| 165 |
\font\eightlogosl=logosl10 at 8pt |
| 166 |
|
| 167 |
\def\mit{\fam\@ne} % from plain |
| 168 |
\def\cal{\fam\tw@} % from plain |
| 169 |
\def\sy{\cal} |
| 170 |
|
| 171 |
% cmss fonts are not needed all the time. Permit as-needed access. |
| 172 |
\def\LoadSansFonts{% |
| 173 |
\global\font\twelvess=cmss10 scaled \magstep1 |
| 174 |
\global\font\tenss=cmss10 |
| 175 |
\global\font\niness=cmss9 |
| 176 |
\global\font\eightss=cmss8 |
| 177 |
\addto\tenpoint{\def\ssf{\tenss}} |
| 178 |
\addto\ninepoint{\def\ssf{\niness}} |
| 179 |
\addto\eightpoint{\def\ssf{\eightss}} |
| 180 |
\gdef\LoadSansFonts{}} |
| 181 |
|
| 182 |
% TUGboat section heads |
| 183 |
\font \seventeenssb=cmssbx10 scaled \magstep3 |
| 184 |
\font \twelvessb=cmssbx10 scaled \magstep1 |
| 185 |
|
| 186 |
\newfam\sectitlefam |
| 187 |
\textfont\sectitlefam=\seventeenssb \scriptfont\sectitlefam=\twelvessb |
| 188 |
|
| 189 |
% \stbaselineskip set in tugboat.com |
| 190 |
\def\sectitlefont{% |
| 191 |
\fam\sectitlefam \seventeenssb \baselineskip=\stbaselineskip } |
| 192 |
|
| 193 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 194 |
% |
| 195 |
% ***** Definitions of \tenpoint, \ninepoint, etc. ***** |
| 196 |
% |
| 197 |
|
| 198 |
% Following is a facility for adding commands to \tenpoint, \ninepoint |
| 199 |
% and \eightpoint. \LoadSansFonts uses this technique above. |
| 200 |
% Also used to add math families, as with: |
| 201 |
% \addto\tenpoint{\textfont\frakfam...} |
| 202 |
% to add a Fraktur family. |
| 203 |
% |
| 204 |
\def\addto#1#2{% |
| 205 |
\csname @addsto\string#1\endcsname= |
| 206 |
\expandafter{\the\csname @addsto\string#1\endcsname#2}} |
| 207 |
\def\@additionsto#1{\expandafter\the\csname @addsto\string#1\endcsname} |
| 208 |
\expandafter\newtoks\csname @addsto\string\tenpoint\endcsname |
| 209 |
\expandafter\newtoks\csname @addsto\string\ninepoint\endcsname |
| 210 |
\expandafter\newtoks\csname @addsto\string\eightpoint\endcsname |
| 211 |
|
| 212 |
|
| 213 |
\newskip\ttglue |
| 214 |
\def\setttglue{% |
| 215 |
\edef\@thefont{\the\font}% to restore this font after the setting |
| 216 |
\tt \ttglue=.5em plus .25em minus .15em |
| 217 |
\@thefont} |
| 218 |
|
| 219 |
% We assume that \scriptscriptfonts remain the same throughout |
| 220 |
\scriptscriptfont\z@=\fiverm |
| 221 |
\scriptscriptfont\@ne=\fivei |
| 222 |
\scriptscriptfont\tw@=\fivesy |
| 223 |
\scriptscriptfont\thr@@=\tenex |
| 224 |
\scriptscriptfont\bffam=\sixbf |
| 225 |
|
| 226 |
\newdimen\normaltenpointstretch \normaltenpointstretch=1.6667pt |
| 227 |
\def\NormalTenPointSpacing{\AdjustNormalSpacing\tenpoint{}} |
| 228 |
\def\StretchyTenPointSpacing{\AdjustNormalSpacing\tenpoint{2.4}} |
| 229 |
|
| 230 |
\def\tenpoint{% |
| 231 |
\normalbaselineskip=12pt |
| 232 |
\abovedisplayskip=3pt plus 3pt minus 1pt |
| 233 |
\belowdisplayskip=3pt plus 3pt minus 1pt |
| 234 |
\abovedisplayshortskip=0pt plus 3pt |
| 235 |
\belowdisplayshortskip=1pt plus 3pt minus 1pt |
| 236 |
\def\rm{\def\sl{\fam\slfam\tensl}\def\SMC{\ninerm}\fam\z@\tenrm}% |
| 237 |
\textfont\z@=\tenrm \scriptfont\z@=\sevenrm |
| 238 |
\def\oldstyle{\fam\@ne\teni}% |
| 239 |
\textfont\@ne=\teni \scriptfont\@ne=\seveni |
| 240 |
\textfont\tw@=\tensy \scriptfont\tw@=\sevensy |
| 241 |
\textfont\thr@@=\tenex \scriptfont\thr@@=\tenex |
| 242 |
\def\it{\def\SMC{\nineit}\fam\itfam\tenit}% |
| 243 |
\textfont\itfam=\tenit \scriptfont\itfam=\sevenit |
| 244 |
\def\sl{\def\SMC{\ninesl}\fam\slfam\tensl}% |
| 245 |
\textfont\slfam=\tensl \scriptfont\slfam=\sevensl |
| 246 |
\def\bf{\def\sl{\tenbfsl}\def\SMC{\ninebf}\fam\bffam\tenbf}% |
| 247 |
\textfont\bffam=\tenbf \scriptfont\bffam=\eightbf |
| 248 |
\def\smc{\tensmc}% |
| 249 |
\let\manual=\tenlogo |
| 250 |
\let\manualsl=\tenlogosl |
| 251 |
\def\tt{\tentt}\setttglue |
| 252 |
\def\upright{\tenuit}% |
| 253 |
\setbox\strutbox=\hbox{\vrule height7.5pt depth2.5pt width\z@}% |
| 254 |
\setbox\struttbox=\hbox{\vrule height8.5pt depth3.5pt width\z@}% |
| 255 |
\normalbaselines \rm |
| 256 |
\@additionsto\tenpoint} |
| 257 |
|
| 258 |
\tenpoint % initialize -- default font |
| 259 |
|
| 260 |
|
| 261 |
\newdimen\normalninepointstretch \normalninepointstretch=1.5pt |
| 262 |
\def\NormalNinePointSpacing{\AdjustNormalSpacing\ninepoint{}} |
| 263 |
\def\StretchyNinePointSpacing{\AdjustNormalSpacing\ninepoint{2.4}} |
| 264 |
|
| 265 |
\def\ninepoint{\normalbaselineskip=11pt |
| 266 |
\abovedisplayskip=2.5pt plus 2.5pt minus 1pt |
| 267 |
\belowdisplayskip=2.5pt plus 2.5pt minus 1pt |
| 268 |
\abovedisplayshortskip=0pt plus 2.5pt |
| 269 |
\belowdisplayshortskip=1pt plus 2.5pt minus 1pt |
| 270 |
\def\rm{\def\SMC{\eightrm}\fam\z@\ninerm}% |
| 271 |
\textfont\z@=\ninerm \scriptfont\z@=\sevenrm |
| 272 |
\def\oldstyle{\fam\@ne\ninei}% |
| 273 |
\textfont\@ne=\ninei \scriptfont\@ne=\seveni |
| 274 |
\textfont\tw@=\ninesy \scriptfont\tw@=\sevensy |
| 275 |
\def\it{\def\SMC{\eightit}\fam\itfam\nineit}% |
| 276 |
\textfont\itfam=\nineit |
| 277 |
\def\sl{\def\SMC{\eightsl}\fam\slfam\ninesl}% |
| 278 |
\textfont\slfam=\ninesl |
| 279 |
\def\bf{\def\SMC{\eightbf}\fam\bffam\ninebf}% |
| 280 |
\textfont\bffam=\ninebf \scriptfont\bffam=\sevenbf |
| 281 |
\def\smc{\ninesmc}% |
| 282 |
\let\manual\ninelogo |
| 283 |
\let\manualsl=\ninelogosl |
| 284 |
\def\tt{\ninett}\setttglue |
| 285 |
\setbox\strutbox=\hbox{\vrule height 6.75pt depth 2.25pt width\z@}% |
| 286 |
\setbox\struttbox=\hbox{\vrule height 7.75pt depth 3.25pt width\z@}% |
| 287 |
\normalbaselines \rm |
| 288 |
\@additionsto\ninepoint } |
| 289 |
|
| 290 |
% The following setting can be used when baselineskip = 10pt |
| 291 |
% \setbox\struttbox=\hbox{\vrule height 7.25pt depth 2.75pt width\z@}% |
| 292 |
|
| 293 |
|
| 294 |
\newdimen\normaleightpointstretch \normaleightpointstretch=1.333pt |
| 295 |
\def\NormalEightPointSpacing{\AdjustNormalSpacing\eightpoint{}} |
| 296 |
\def\StretchyEightPointSpacing{\AdjustNormalSpacing\eightpoint{2.25}} |
| 297 |
|
| 298 |
\def\eightpoint{\normalbaselineskip=10pt |
| 299 |
\abovedisplayskip=2pt plus 2pt minus 1pt |
| 300 |
\belowdisplayskip=2pt plus 2pt minus 1pt |
| 301 |
\abovedisplayshortskip=0pt plus 2pt |
| 302 |
\belowdisplayshortskip=1pt plus 2pt minus 1pt |
| 303 |
\def\rm{\def\SMC{\sevenrm}\fam\z@\eightrm}% |
| 304 |
\textfont\z@=\eightrm \scriptfont\z@=\sixrm |
| 305 |
\def\oldstyle{\fam\@ne\eighti}% |
| 306 |
\textfont\@ne=\eighti \scriptfont\@ne=\sixi |
| 307 |
\textfont\tw@=\eightsy \scriptfont\tw@=\sixsy |
| 308 |
% \textfont\thr@@=\eightex \scriptfont\thr@@=\eightex |
| 309 |
\def\it{\def\SMC{\sevenit}\fam\itfam\eightit}% |
| 310 |
\textfont\itfam=\eightit |
| 311 |
\def\sl{\def\SMC{\sevensl}\fam\slfam\eightsl}% |
| 312 |
\textfont\slfam=\eightsl |
| 313 |
\def\bf{\def\SMC{\sevenbf}\fam\bffam\eightbf}% |
| 314 |
\textfont\bffam=\eightbf \scriptfont\bffam=\sixbf |
| 315 |
\def\smc{\eightsmc}% |
| 316 |
\let\manual\eightlogo |
| 317 |
\let\manualsl\eightlogosl |
| 318 |
\def\tt{\eighttt}\setttglue |
| 319 |
\setbox\strutbox=\hbox{\vrule height 6pt depth 2pt width\z@}% |
| 320 |
\setbox\struttbox=\hbox{\vrule height 7pt depth 3pt width\z@}% |
| 321 |
\normalbaselines \rm |
| 322 |
\@additionsto\eightpoint } |
| 323 |
|
| 324 |
% The 8pt cap/small cap font is not loaded. See a corresponding remark |
| 325 |
% above for the 9pt csc font. |
| 326 |
|
| 327 |
% this is equivalent to baselineskip = 9pt |
| 328 |
% \setbox\struttbox=\hbox{\vrule height 6.5pt depth 2.5pt width\z@}% |
| 329 |
|
| 330 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 331 |
|
| 332 |
% Following will allow text to be a bit stretchier than the built-in |
| 333 |
% setting; TeXbook, page 433, 355 |
| 334 |
|
| 335 |
\def\@setstretch{\fontdimen3\the\font=} |
| 336 |
\def\AdjustNormalSpacing#1#2{% #1=pointsize, #2=adjustment factor |
| 337 |
{\T@stDimen=#2\csname normal\expandafter\gobble\string#1stretch\endcsname |
| 338 |
#1% |
| 339 |
\rm\@setstretch\T@stDimen |
| 340 |
\it\@setstretch\T@stDimen |
| 341 |
\bf\@setstretch\T@stDimen |
| 342 |
}} |
| 343 |
|
| 344 |
% ring accent, which plain.tex defines no macro for. \r is the LaTeX name. |
| 345 |
\def\r#1{\accent"17 #1} |
| 346 |
|
| 347 |
% Anticipated changes to this font handling scheme: |
| 348 |
% |
| 349 |
% Dynamic loading of fonts, probably in groups according to size |
| 350 |
% Removal of \rm, \bf, etc., from \*point expansions, replacement |
| 351 |
% by generic \rm, \bf, etc. definitions |
| 352 |
% Mechanism for switching neatly between serif and sans-serif |
| 353 |
|
| 354 |
%% |
| 355 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 356 |
% |
| 357 |
% ***** page dimensions ***** |
| 358 |
% |
| 359 |
|
| 360 |
% vertical dimensions |
| 361 |
|
| 362 |
\newdimen\trimlgt \trimlgt=11in % 10.5in (vols 7-9) |
| 363 |
\newdimen\headmargin \headmargin=3.5pc % 2.5pc (vols 7-9) |
| 364 |
\newdimen\pagelgt |
| 365 |
\newdimen\rheadlgt \rheadlgt=2.5pc % + headmargin = 6pc = 1in |
| 366 |
\newdimen\toplgt \toplgt=\z@ |
| 367 |
\newdimen\normalcollgt \normalcollgt=54pc % 52pc for 5#2 |
| 368 |
\newdimen\collgt \collgt=\normalcollgt |
| 369 |
\newdimen\Collgt |
| 370 |
\maxdepth=2pt |
| 371 |
\newdimen\botlgt \botlgt=\z@ |
| 372 |
\newdimen\rfootlgt \rfootlgt=2pc |
| 373 |
|
| 374 |
\newif\ifThisIsFirstPage \ThisIsFirstPagefalse |
| 375 |
|
| 376 |
\def\resetpagelgt{% |
| 377 |
\pagelgt=\collgt \Collgt=\collgt |
| 378 |
\advance\pagelgt by \rheadlgt |
| 379 |
\ifThisIsFirstPage \advance\Collgt by-\toplgt |
| 380 |
\advance\Collgt by-\botlgt \fi |
| 381 |
\advance\pagelgt by \maxdepth |
| 382 |
\global\advance\pagelgt by \rfootlgt |
| 383 |
\global\vsize=\Collgt } |
| 384 |
|
| 385 |
\def\resetfpagelgt{% |
| 386 |
\global\ThisIsFirstPagetrue |
| 387 |
\resetpagelgt } % exclude special first page material |
| 388 |
|
| 389 |
\resetpagelgt |
| 390 |
\raggedbottom |
| 391 |
|
| 392 |
% horizontal dimensions |
| 393 |
|
| 394 |
\newdimen\colwd |
| 395 |
\newdimen\intercolwd \intercolwd=\z@ |
| 396 |
\newdimen\pagewd \pagewd=39pc |
| 397 |
\newdimen\trimwd \trimwd=\pagewd |
| 398 |
\newdimen\oddleftindent \oddleftindent\z@ |
| 399 |
\newdimen\evenleftindent \evenleftindent\z@ |
| 400 |
|
| 401 |
\def\onecol{\colwd=\pagewd \OneCol } |
| 402 |
|
| 403 |
\newdimen\onenarrowcolwd \onenarrowcolwd=30pc |
| 404 |
\def\onenarrow{\colwd=\onenarrowcolwd \OneCol } |
| 405 |
|
| 406 |
% before 5#2, `narrow' was 34pc |
| 407 |
\newdimen\onemediumcolwd \onemediumcolwd=34pc |
| 408 |
\def\onemedium{\colwd=\onemediumcolwd \OneCol } |
| 409 |
|
| 410 |
\newdimen\twocolcolwd \twocolcolwd=18.75pc |
| 411 |
\def\twocol{\colwd=\twocolcolwd \intercolwd=1.5pc \TwoCol } |
| 412 |
|
| 413 |
\newdimen\threecolcolwd \threecolcolwd=12pc |
| 414 |
\def\threecol{\colwd=\threecolcolwd \intercolwd=1.5pc \ThreeCol } |
| 415 |
|
| 416 |
\def\CenterOneCol{% |
| 417 |
\oddleftindent\pagewd |
| 418 |
\advance\oddleftindent -\colwd |
| 419 |
\divide\oddleftindent\tw@ |
| 420 |
\evenleftindent\oddleftindent |
| 421 |
\coloffset\ifodd\pageno\oddleftindent\else\evenleftindent\fi |
| 422 |
} |
| 423 |
|
| 424 |
\def\OneCol{\hsize=\colwd \CenterOneCol \numcols=1 \resetmaxcols} |
| 425 |
\def\ZeroLeftIndents{\oddleftindent\z@ \evenleftindent\z@ \coloffset\z@ } |
| 426 |
\def\TwoCol{\hsize=\colwd \numcols=2 \resetmaxcols \ZeroLeftIndents} |
| 427 |
\def\ThreeCol{\hsize=\colwd \numcols=3 \resetmaxcols \ZeroLeftIndents} |
| 428 |
|
| 429 |
\def\resetmaxcols{% |
| 430 |
\ifnum\numcols>\maxcols |
| 431 |
\ifOverlaysinTeX \maxcols=\numcols |
| 432 |
\else \immediate\write\sixt@@n{% |
| 433 |
The new setting of \string\numcols is greater than \string\maxcols.^^J |
| 434 |
Either allow overlays in TeX or increase \string\maxcols.}\fi |
| 435 |
\fi} |
| 436 |
|
| 437 |
%% |
| 438 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 439 |
% |
| 440 |
% ***** headers/footers ***** |
| 441 |
% |
| 442 |
|
| 443 |
\def\pagenoprefix{} |
| 444 |
|
| 445 |
\def\rtitlex{\def\tubfont{\tenpoint\rm}\TUB, \volx } |
| 446 |
\def\rtitle{% |
| 447 |
\hbox to \pagewd{% |
| 448 |
\tenrm |
| 449 |
\makestrut[10pt;\z@]% |
| 450 |
\ifodd\pageno \rtitlex\qquad\midrtitle\hfil\pagenoprefix\number\pageno |
| 451 |
\else \pagenoprefix\number\pageno\hfil\midrtitle\qquad\rtitlex \fi |
| 452 |
}% |
| 453 |
} |
| 454 |
|
| 455 |
\def\runhead{\vbox to \rheadlgt{\rtitle \vfil }} |
| 456 |
|
| 457 |
\def\rfoot{% |
| 458 |
\hbox to \pagewd{% |
| 459 |
\tenpoint \frenchspacing |
| 460 |
\def\\{\unskip\ \ignorespaces}% line break commands produce normal space |
| 461 |
\let\newline=\\% |
| 462 |
\tubtypesetdoi |
| 463 |
\makestrut[\z@;0.5pc]% |
| 464 |
\ifPrelimDraft |
| 465 |
\midrtitle\hfil\midrtitle |
| 466 |
\else |
| 467 |
\ifodd\pageno |
| 468 |
\hfil\thetitle |
| 469 |
\else |
| 470 |
\footauthors\hfil |
| 471 |
\fi |
| 472 |
\fi |
| 473 |
}% |
| 474 |
} |
| 475 |
|
| 476 |
\def\footauthors{% |
| 477 |
\bgroup |
| 478 |
\count1=1 |
| 479 |
\authorloop |
| 480 |
\egroup} |
| 481 |
|
| 482 |
\def\authorloop{% |
| 483 |
\ifnum\count1>1 |
| 484 |
\ifnum\count1<\authornumber |
| 485 |
, % Wanted space. |
| 486 |
\else |
| 487 |
, % Idem. Was "{} and", but we prefer all commas now. |
| 488 |
\fi |
| 489 |
\fi |
| 490 |
\theauthor{\the\count1}% |
| 491 |
\ifnum\count1<\authornumber |
| 492 |
\advance\count1 by 1 |
| 493 |
\authorloop |
| 494 |
\fi} |
| 495 |
|
| 496 |
\def\runfoot{\vbox to \rfootlgt{\vfil \rfoot }} |
| 497 |
|
| 498 |
% DOI output. See tugboat.dtx for comments. |
| 499 |
% |
| 500 |
% Macros so we can use the same code as tugboat.dtx. |
| 501 |
\newif\iftubomitdoioption % explicit option when posting early |
| 502 |
|
| 503 |
\newif\iftubsecondcolstart % when we splice, e.g., tb139wermuth-isdim |
| 504 |
\newdimen\tubcolwidthandgutter |
| 505 |
\newif\iftubfinaloption % set in tugboat.dates |
| 506 |
\def\scriptsize{\let\rm=\sevenrm \font\tt=cmtt8 at 7pt % fake 7pt match LaTeX |
| 507 |
\baselineskip=8pt \relax} % fake |
| 508 |
\def\@empty{} |
| 509 |
% |
| 510 |
\def\tubdoiprefix{10.47397/tb} % the number crossref assigned us |
| 511 |
% |
| 512 |
\def\tubtypesetdoi{\iftubomitdoioption\else % if not explicit omission ... |
| 513 |
\ifnum\authornumber>0 % our convention: no doi if no author |
| 514 |
\iftubfinaloption % do this if [final], even if pageno>900 |
| 515 |
\vbox to 0pt{% don't impact normal layout |
| 516 |
\scriptsize |
| 517 |
\edef\thedoi{\ifnum\count0>900 xnot\fi % but make url invalid if >900 |
| 518 |
\tbsurl{doi.org/\tubdoiprefix/\tbissident/\jobname}}% |
| 519 |
\vskip\baselineskip |
| 520 |
\iftubsecondcolstart \moveright\tubcolwidthandgutter \fi |
| 521 |
\rlap{\expandafter\tbsurl\expandafter{\thedoi}}% |
| 522 |
\vss |
| 523 |
}% |
| 524 |
\global\let\tubtypesetdoi\@empty % only do it once, no matter what. |
| 525 |
\fi |
| 526 |
\fi |
| 527 |
\fi} |
| 528 |
|
| 529 |
% Macros to produce extra running heads for stripping onto pages |
| 530 |
% received as camera copy. Format must be preset to \OneCol, and |
| 531 |
% start on a new page. |
| 532 |
|
| 533 |
% Generate 5 (4 + normal running head) per page. |
| 534 |
|
| 535 |
\def\DrawT@pLines{% |
| 536 |
\vskip\topskip |
| 537 |
\ulap{% |
| 538 |
\line{% |
| 539 |
\raise 1ex\rlap{\leaders\hrule\hskip\pagewd}% |
| 540 |
\leaders\hrule\hfill |
| 541 |
}} |
| 542 |
\medskip} |
| 543 |
|
| 544 |
\def\r@nhead{% |
| 545 |
\vbox to .23\vsize{% |
| 546 |
\basezero \hsize=\pagewd \vfil |
| 547 |
\topregister \vskip\headmargin \runhead \DrawT@pLines } |
| 548 |
\medskip |
| 549 |
\advancepageno } |
| 550 |
|
| 551 |
\def\nextrunner{% |
| 552 |
\ifnum\T@stCount>0 |
| 553 |
\ifnum\T@stCount>5 \TestCount=5 \else\TestCount=\T@stCount \fi |
| 554 |
\advance\T@stCount by-\TestCount |
| 555 |
\DrawT@pLines % always one at top of page |
| 556 |
\loop\ifnum\TestCount>1 \r@nhead \advance\TestCount by\m@ne \repeat |
| 557 |
\newpage |
| 558 |
\def\@next{\nextrunner}% |
| 559 |
\else \def\@next{}% |
| 560 |
\fi |
| 561 |
\@next } |
| 562 |
|
| 563 |
% Use \ExtraRunheads to generate running heads for stripping (e.g. for |
| 564 |
% author-supplied camera-ready copy). E.g., ``\ExtraRunheads 12, {}.'' will |
| 565 |
% generate 12 TUGboat running heads, up to 5 per page, starting with |
| 566 |
% the current page number. |
| 567 |
|
| 568 |
\def\ExtraRunheads #1, #2.{% |
| 569 |
\T@stCount=#1 |
| 570 |
\gdef\pageprefix{#2}% % as in A-10 for appendices; not used just now |
| 571 |
\nextrunner } |
| 572 |
|
| 573 |
%% |
| 574 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 575 |
% |
| 576 |
% ***** insertions ***** |
| 577 |
% |
| 578 |
|
| 579 |
\newif\if@floatable \@floatabletrue % sometimes we don't want |
| 580 |
\def\nofloat{\@floatablefalse} % midinsertions to float |
| 581 |
|
| 582 |
% redefine \@ins to avoid the \par of PLAIN |
| 583 |
\def\@ins{\begingroup\setbox\z@\vbox\bgroup} |
| 584 |
|
| 585 |
\newinsert\botins |
| 586 |
\newif\ifp@ge \newif\if@mid \newif\if@bot |
| 587 |
\def\topinsert{\@midfalse\p@gefalse\@botfalse\@ins} |
| 588 |
\def\botinsert{\@midfalse\p@gefalse\@bottrue\@ins} |
| 589 |
\def\midinsert{\@midtrue\@botfalse\@ins} |
| 590 |
\def\pageinsert{\@midfalse\@botfalse\p@getrue\@ins} |
| 591 |
\skip\botins=\z@skip |
| 592 |
\count\botins=1000 |
| 593 |
\dimen\botins=\maxdimen |
| 594 |
\def\endinsert{\egroup % finish the \vbox |
| 595 |
\gdef\@next{}% |
| 596 |
\if@mid \dimen@\ht\z@ \advance\dimen@\dp\z@ |
| 597 |
\advance\dimen@12\p@ \advance\dimen@\pagetotal |
| 598 |
\if@floatable |
| 599 |
\ifdim\dimen@>\pagegoal\@midfalse\@botfalse\p@gefalse\fi\fi |
| 600 |
\fi |
| 601 |
\if@mid |
| 602 |
\vskip\abovedisplayskip |
| 603 |
\box\z@ |
| 604 |
\vskip\belowdisplayskip |
| 605 |
\gdef\@next{\@asifbelowdisplay}% |
| 606 |
\else\insert\if@bot\botins\else\topins\fi |
| 607 |
{\penalty100 % floating insertion |
| 608 |
\if@bot\medskip\nobreak\fi |
| 609 |
\splittopskip\z@skip |
| 610 |
\splitmaxdepth\maxdimen \floatingpenalty\z@ |
| 611 |
\ifp@ge \dimen@\dp\z@ |
| 612 |
\vbox to\vsize{\unvbox\z@\kern-\dimen@}% depth is zero |
| 613 |
\else \box\z@\fi |
| 614 |
\if@bot\else\medskip\fi |
| 615 |
}% |
| 616 |
\fi\endgroup\@next} |
| 617 |
|
| 618 |
% Footnotes are mainly supported by PLAIN format, with these |
| 619 |
% exceptions. |
| 620 |
|
| 621 |
\skip\footins=10pt |
| 622 |
\def\footnoterule{\kern-5pt |
| 623 |
\hrule width 5pc \kern 4.6pt } % the \hrule is .4pt high |
| 624 |
|
| 625 |
\newif\ifDelayFirstPar \DelayFirstParfalse |
| 626 |
\def\vfootnote#1{\ifFirstPar \DelayFirstPartrue \fi |
| 627 |
\insert\footins\bgroup |
| 628 |
\interlinepenalty\interfootnotelinepenalty |
| 629 |
\splittopskip\ht\strutbox % top baseline for broken footnotes |
| 630 |
\splitmaxdepth\dp\strutbox \floatingpenalty\@MM |
| 631 |
\leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip |
| 632 |
\rm \parindent=\normalparindent % always indent footnotes; added for TUGboat |
| 633 |
\TUBstartfootnotehook |
| 634 |
\textindent{#1}\makestrut[10pt;\z@]\futurelet\next\fo@t} |
| 635 |
\def\@foot{\strut\egroup\TUBendfootnotehook |
| 636 |
\ifDelayFirstPar \SetupFirstPar \global\DelayFirstParfalse \fi } |
| 637 |
\newif\ifFirstPar \FirstParfalse |
| 638 |
\def\SetupFirstPar{\global\parindent=\z@ \global\FirstPartrue } |
| 639 |
|
| 640 |
\def\TUBstartfootnotehook{} |
| 641 |
\def\TUBendfootnotehook{} |
| 642 |
|
| 643 |
%% |
| 644 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 645 |
% |
| 646 |
% ***** output ***** |
| 647 |
% |
| 648 |
|
| 649 |
% Reorganize \pagecontents from PLAIN to put footnotes at very |
| 650 |
% bottom of page, even if \raggedbottom. Also add bottom insertions. |
| 651 |
|
| 652 |
\def\pagecontents{% |
| 653 |
\ifvoid\topins\else\unvbox\topins\fi |
| 654 |
\dimen@=\dp\@cclv \unvbox\@cclv % open up \box255 |
| 655 |
\ifr@ggedbottom \kern-\dimen@ \vfil \fi |
| 656 |
\ifvoid\footins\else % footnote info is present |
| 657 |
\vskip\skip\footins |
| 658 |
\footnoterule |
| 659 |
\unvbox\footins\fi |
| 660 |
\ifvoid\botins\else |
| 661 |
\vskip\skip\botins |
| 662 |
\unvbox\botins\fi } |
| 663 |
|
| 664 |
|
| 665 |
% Trim (registration) marks may or may not be placed around the pages; |
| 666 |
% Overlaying may or may not be done within TeX (as opposed |
| 667 |
% to the device driver). |
| 668 |
|
| 669 |
\newif\ifTrimmarks \Trimmarksfalse |
| 670 |
\newif\ifOverlaysinTeX \OverlaysinTeXtrue |
| 671 |
|
| 672 |
|
| 673 |
% All columns containing data are formatted by \midpage. Trim marks |
| 674 |
% are put on all columns, but running heads only on the last column |
| 675 |
% (i.e. column number = \numcols) |
| 676 |
|
| 677 |
\def\midpage#1{% |
| 678 |
\vbox{ |
| 679 |
\basezero |
| 680 |
\hrule height\z@ depth\z@ width\p@ |
| 681 |
\ifTrimmarks |
| 682 |
\vskip-1in % default offset for laser printers |
| 683 |
% this puts top trim at edge of paper |
| 684 |
\vbox to \trimlgt \bgroup |
| 685 |
\topregister |
| 686 |
\vskip \headmargin |
| 687 |
\else |
| 688 |
\vskip-\rheadlgt % this puts runhead above default offset |
| 689 |
\fi |
| 690 |
\vbox to \pagelgt{ |
| 691 |
\ifnum\xcol=\numcols \runhead \else \vbox to \rheadlgt{}\fi |
| 692 |
\ifThisIsFirstPage \firsthead \fi |
| 693 |
\hbox to \pagewd{#1} % \vsize applied in \pagebody |
| 694 |
\ifThisIsFirstPage \firstfoot \fi |
| 695 |
\vfil % if no depth, avoid underfull box |
| 696 |
\ifnum\xcol=\numcols \runfoot \else \vbox to \rfootlgt{}\fi |
| 697 |
} |
| 698 |
\ifTrimmarks \vfill \botregister \egroup \fi |
| 699 |
}} |
| 700 |
|
| 701 |
% The production version includes trim marks, which are required |
| 702 |
% on photographic paper, but are unsuitable for laser printer output |
| 703 |
% (because they land at the edges of the page). For multiple |
| 704 |
% column output, allowance is made for column overlays either |
| 705 |
% within TeX or by the driver. The default is to have all |
| 706 |
% overlays done within TeX, but large pages or matters of efficiency |
| 707 |
% may dictate that driver-overlay is more appropriate. |
| 708 |
|
| 709 |
% When the overlaying is done within TeX, the .dvi contains just |
| 710 |
% one page for each page to be printed. However, in the case |
| 711 |
% that a driver is to do the overlaying we must anticipate that |
| 712 |
% it will not be smart enough to properly overlay different numbers |
| 713 |
% of .dvi pages for different printed pages (e.g. in the case that |
| 714 |
% one job has both single- and double-column layout). Thus, for |
| 715 |
% each printed page, TeX constructs a constant number (=\maxcols) |
| 716 |
% of .dvi pages. Columns 1 through and including \numcols will |
| 717 |
% be usual .dvi pages containing information for the typeset columns. |
| 718 |
% Upon reaching column number \numcols, TeX will `fill out' the |
| 719 |
% printed page with empty columns to \maxcols. |
| 720 |
|
| 721 |
|
| 722 |
% set up auxiliary `page numbers' |
| 723 |
% \pageno = \count0 as used in PLAIN |
| 724 |
|
| 725 |
% \xcol is the column number within a page; ranges from 1 to \maxcols |
| 726 |
\countdef\xcol=1 \xcol=1 |
| 727 |
|
| 728 |
% \spoolno is the ordinal number of `.dvi' pages (i.e. the number |
| 729 |
% of \shipouts performed) |
| 730 |
\countdef\spoolno=2 \spoolno=0 |
| 731 |
|
| 732 |
\def\newcol{\endgraf\vfill\eject} |
| 733 |
|
| 734 |
\def\newpage{% |
| 735 |
\vfill\eject |
| 736 |
\loop |
| 737 |
\ifnum\xcol>1 |
| 738 |
{\leavevmode\endgraf\vfill\eject} % \xcol is advanced in the output routine |
| 739 |
\repeat |
| 740 |
} |
| 741 |
|
| 742 |
\newcount\numcols % `real' number of columns |
| 743 |
|
| 744 |
\newcount\@maxcolsofar % internal counter for box allocation |
| 745 |
\@maxcolsofar=0 |
| 746 |
|
| 747 |
\newcount\maxcols % job-wide maximum number of columns |
| 748 |
\maxcols=2 |
| 749 |
|
| 750 |
|
| 751 |
% save the column or ship it out |
| 752 |
\def\@saveorship{% |
| 753 |
\ifOverlaysinTeX |
| 754 |
\ifnum\xcol>\@maxcolsofar % if we need another column box allocated |
| 755 |
\global\advance\@maxcolsofar\@ne |
| 756 |
\newboxcs{column\number\xcol}% |
| 757 |
\fi |
| 758 |
\global\setboxcs{column\number\xcol}% |
| 759 |
\else |
| 760 |
\global\advance\spoolno\@ne |
| 761 |
\shipout |
| 762 |
\fi |
| 763 |
} |
| 764 |
|
| 765 |
% horizontal offset of column from left edge of page |
| 766 |
\newdimen\coloffset \coloffset\z@ |
| 767 |
\def\incrcoloffset{% |
| 768 |
\global\advance\coloffset\colwd |
| 769 |
\global\advance\coloffset\intercolwd |
| 770 |
} |
| 771 |
|
| 772 |
\def\output@{% |
| 773 |
\@saveorship\midpage{\kern\coloffset\pagebody\hfil} |
| 774 |
\incrcoloffset |
| 775 |
\ifnum\xcol=\numcols % if at `real' last column, fill out page with |
| 776 |
\loop % empty columns |
| 777 |
\ifnum\xcol<\maxcols |
| 778 |
\global\advance\xcol\@ne |
| 779 |
\@saveorship\midpage{\vbox to \collgt{}\hfil} |
| 780 |
\repeat |
| 781 |
\fi |
| 782 |
\ifnum\xcol=\maxcols % put page together if TeX is overlaying |
| 783 |
\ifOverlaysinTeX |
| 784 |
\global\advance\spoolno\@ne |
| 785 |
\shipout\hbox{% |
| 786 |
\xcol=1 |
| 787 |
\loop \rlap{\boxcs{column\number\xcol}}% |
| 788 |
\ifnum\xcol<\maxcols |
| 789 |
\global\advance\xcol\@ne |
| 790 |
\repeat |
| 791 |
\hbox to \pagewd{}% |
| 792 |
}% |
| 793 |
\fi |
| 794 |
\D@EndPage % possible shortening of next page |
| 795 |
\global\coloffset\ifodd\pageno\oddleftindent\else\evenleftindent\fi |
| 796 |
\global\xcol=1 |
| 797 |
\else |
| 798 |
\global\advance\xcol\@ne |
| 799 |
\fi |
| 800 |
\ExecuteNextDC % possible `Delayed Command' |
| 801 |
} |
| 802 |
|
| 803 |
%% |
| 804 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 805 |
% |
| 806 |
% ***** page adjustment ***** |
| 807 |
% |
| 808 |
|
| 809 |
% In the absence of automatic column-balancing, provide a mechanism |
| 810 |
% for manually shortening a specified page. |
| 811 |
|
| 812 |
\newif\ifSh@rtPage \Sh@rtPagefalse |
| 813 |
\newif\ifSh@rtPagePending \Sh@rtPagePendingfalse |
| 814 |
\newcount\Sh@rtPageNo |
| 815 |
\newdimen\Sh@rtPageLgt |
| 816 |
|
| 817 |
\def\@to{to} \def\@by{by} |
| 818 |
% #1 = to/by; #2 = \dimen; #3 = <dimen>; #4 = * of Shorten*Page |
| 819 |
\def\@toby#1#2#3#4{% |
| 820 |
\def\@tb{#1}% |
| 821 |
\ifx \@tb\@to \global #2=#3 |
| 822 |
\else \ifx \@tb\@by \T@stDimen=#3 % accommodate negative #3 |
| 823 |
#2=\normalcollgt \global\advance #2 by -\T@stDimen |
| 824 |
\else \errmessage{#1 is invalid syntax; \string\Shorten#4Page |
| 825 |
requires "to" or "by"}\fi |
| 826 |
\fi } |
| 827 |
|
| 828 |
\def\@plusno#1#2;{% |
| 829 |
\if +#1\T@stCount=\pageno \advance\T@stCount by #2 |
| 830 |
\else \T@stCount=#1#2 \fi } |
| 831 |
|
| 832 |
\def\ShortenPage #1 #2 #3. {% |
| 833 |
\global\Sh@rtPagePendingtrue |
| 834 |
\@plusno#1;\global\Sh@rtPageNo=\T@stCount |
| 835 |
\@toby{#2}{\Sh@rtPageLgt}{#3}{}} |
| 836 |
\def\ShortenThisPage #1 #2. {% |
| 837 |
\global\Sh@rtPagetrue |
| 838 |
\@toby{#1}{\vsize}{#2}{This}} |
| 839 |
|
| 840 |
% Two cases: 0 = last page was nonstandard; reset \vsize |
| 841 |
% 1 = do not reset \vsize: okay or length already reset |
| 842 |
\def\D@EndPage{% |
| 843 |
\advancepageno |
| 844 |
\T@stCount=1 |
| 845 |
\ifThisIsFirstPage \T@stCount=0 \global\ThisIsFirstPagefalse |
| 846 |
\resetfirsthead \resetfirstfoot |
| 847 |
\global\collgt=\normalcollgt \fi |
| 848 |
\ifSh@rtPage \T@stCount=0 \global\Sh@rtPagefalse \fi |
| 849 |
\ifSh@rtPagePending |
| 850 |
\ifnum\pageno = \Sh@rtPageNo \T@stCount=1 |
| 851 |
\global\vsize=\Sh@rtPageLgt |
| 852 |
\global\Sh@rtPagePendingfalse |
| 853 |
\global\Sh@rtPagetrue \fi |
| 854 |
\fi |
| 855 |
\ifcase \T@stCount \resetpagelgt \fi } |
| 856 |
|
| 857 |
% Add more powerful means of adjusting pages by keeping a list of |
| 858 |
% commands to be executed prior to making up the next page. This |
| 859 |
% technique will be expanded in the next version of the output |
| 860 |
% routine. |
| 861 |
|
| 862 |
% "\DelayedCommand <page number> <column number> <command>\endCommand" |
| 863 |
% places the token list <command> at the end of a list of "things to do". |
| 864 |
% At the end of every column, the output routine checks this list to |
| 865 |
% see whether the head of the list should be "executed" prior to |
| 866 |
% building the next column. If so, the execution is performed. |
| 867 |
% Right now, items must be placed in the execution list in order, |
| 868 |
% and all items for a given column must be combined into a single |
| 869 |
% token list. |
| 870 |
|
| 871 |
% Natural applications are double column figures and column size |
| 872 |
% adjustments. E.g. |
| 873 |
% \DelayedCommand +5 1 \global\advance\vsize by 2\baselineskip\endCommand |
| 874 |
% will increase the \vsize of the first column of the page 5 pages from |
| 875 |
% "now" by 2 baselines. To pull the \vsize back to normal would require |
| 876 |
% another use of \DelayedCommand. Double column figures can be achieved |
| 877 |
% with insertions called by \DelayedCommand. |
| 878 |
|
| 879 |
% Right now the technique is messy, but it can be used by those who know |
| 880 |
% how it's implemented and know its limitations. |
| 881 |
|
| 882 |
\newtoks\@DelayedCommandList |
| 883 |
|
| 884 |
\def\DelayedCommand #1 #2 #3\endCommand{% |
| 885 |
\@plusno#1;% |
| 886 |
\edef\@temp{\the\@DelayedCommandList<\number\T@stCount>}% |
| 887 |
\global\@DelayedCommandList=\expandafter{\@temp<#2>#3\endCommand}% |
| 888 |
} |
| 889 |
|
| 890 |
\def\@FindNextDCPoint <#1><#2>#3\endList{% |
| 891 |
\def\DCpage{#1}\def\DCcolumn{#2}} |
| 892 |
|
| 893 |
\def\FindNextDCPoint{% |
| 894 |
\edef\@temp{\the\@DelayedCommandList}% |
| 895 |
\ifx\@temp\empty \def\DCpage{\@M}\def\DCcolumn{0}% |
| 896 |
\else |
| 897 |
\edef\@form{% |
| 898 |
\noexpand\@FindNextDCPoint\the\@DelayedCommandList\noexpand\endList}% |
| 899 |
\@form |
| 900 |
\fi} |
| 901 |
|
| 902 |
\def\@ExecuteNextDC <#1><#2>#3\endCommand#4\endList{% |
| 903 |
\global\@DelayedCommandList={#4}% |
| 904 |
#3} |
| 905 |
|
| 906 |
\def\ExecuteNextDC{% |
| 907 |
\FindNextDCPoint |
| 908 |
\ifnum \pageno=\DCpage \ifnum\xcol=\DCcolumn |
| 909 |
\edef\@form{% |
| 910 |
\noexpand\@ExecuteNextDC\the\@DelayedCommandList\noexpand\endList}% |
| 911 |
\@form |
| 912 |
\fi \fi} |
| 913 |
|
| 914 |
%% |
| 915 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 916 |
% |
| 917 |
% ***** general mechanism for tags ***** |
| 918 |
% |
| 919 |
|
| 920 |
% Upon sensing an opening tag (call it `\foo' here), the following process |
| 921 |
% is set in motion: |
| 922 |
% 1. \begingroup (so definitions and settings are localized); |
| 923 |
% 2. the default situation for \foo is set up; |
| 924 |
% 3. if appropriate, an \everyfoo list is read (this allows one |
| 925 |
% to override the TUGboat.sty factory defaults); |
| 926 |
% 4. optional commands are read. This involves looking ahead for |
| 927 |
% a `[' and `normalizing' the optional environment so that |
| 928 |
% backslashes and braces are interpreted as their standard selves. |
| 929 |
% After the options are read, the `\',`{', and `}' are restored |
| 930 |
% to their status appropriate to \foo; |
| 931 |
% 5. the \@beginfoo macro is executed. This |
| 932 |
% may involve branching dependent upon flags set by options. It may |
| 933 |
% also be a place where spaces and carriage-returns are activated. |
| 934 |
% 6. the `argument' to \foo is read and stored or processed on |
| 935 |
% the fly (the method employed is generally fixed for each tag). |
| 936 |
% The argument may be delimited by *...* (called the `short-form' |
| 937 |
% here), or up to ...\endfoo (called the `long-form'). |
| 938 |
% 7. a cleanup macro is executed which also ends the current group. |
| 939 |
% This may do all the work if an argument has been read and stored. |
| 940 |
|
| 941 |
% Checking ahead. |
| 942 |
% Often we check ahead to determine the next course of action. |
| 943 |
% \@checknexttoken is used to check for optional commands, to check for the |
| 944 |
% short-form argument-delimiter, and to ignore characters in certain |
| 945 |
% situations. The macro is just a check; applications must do whatever |
| 946 |
% is appropriate with the ensuing token. |
| 947 |
|
| 948 |
% \@checknexttoken checks the next token against argument #1. If the |
| 949 |
% two are the same, #2 is executed, otherwise #3. The comparison is |
| 950 |
% done with \ifx. Since we check ahead with \futurelet, the first |
| 951 |
% argument is stored with \let as well. To include the case |
| 952 |
% where #1 may be a space, we have to go through a small contortion |
| 953 |
% to \let\@basetoken= that space. |
| 954 |
|
| 955 |
% At times, the \@nexttoken will be \outer and this will prevent its |
| 956 |
% being incorporated in the definition of \@next below. For this reason, |
| 957 |
% we store `\ifx\@basetoken\@nexttoken' away in a definition at a time |
| 958 |
% when \@nexttoken is undefined and won't cause a problem. |
| 959 |
|
| 960 |
\def\if@baseis@next{\ifx\@basetoken\@nexttoken} |
| 961 |
|
| 962 |
\long\def\@checknexttoken #1#2#3{% |
| 963 |
\futurelet\@basetoken\iffalse#1\fi |
| 964 |
\long\def\@next{% |
| 965 |
% \ifx \@basetoken\@nexttoken |
| 966 |
\if@baseis@next |
| 967 |
\long\def\@@next{#2}% |
| 968 |
\else\long\def\@@next{#3}\fi |
| 969 |
\@@next}% |
| 970 |
\futurelet\@nexttoken\@next} |
| 971 |
|
| 972 |
% Eliminating characters from input. |
| 973 |
% The following macros check ahead to see whether the next token is a |
| 974 |
% token to be parsed from the input stream. \@ignoreall keeps |
| 975 |
% checking to eliminate all such characters, whereas \@ignoreone drops |
| 976 |
% at most one. Argument #2 is executed after characters are eliminated. |
| 977 |
|
| 978 |
% The token is removed by defining a control sequence whose |
| 979 |
% contextual form includes the token. |
| 980 |
|
| 981 |
% execute #2 after ignoring (possibly) one occurrence of #1 |
| 982 |
\long\def\@ignoreone#1#2{% |
| 983 |
\def\@ignoreform#1{#2}% |
| 984 |
\@checknexttoken{#1}{\@ignoreform}{#2}% |
| 985 |
} |
| 986 |
|
| 987 |
% execute #2 after ignoring all occurrences of #1 |
| 988 |
\long\def\@ignoreall#1#2{% |
| 989 |
\def\@ignoreform#1{\@ignoretest}% |
| 990 |
\def\@ignoretest{\@checknexttoken{#1}{\@ignoreform}{#2}}% |
| 991 |
\@ignoretest |
| 992 |
} |
| 993 |
|
| 994 |
% Particularly useful ignorances. |
| 995 |
|
| 996 |
% execute #1 after ignoring spaces |
| 997 |
\def\DeleteOptionalSpaces#1{% |
| 998 |
\@ignoreall{ }{#1}% |
| 999 |
} |
| 1000 |
% execute #1 after ignoring spaces and \pars |
| 1001 |
\def\DeleteOptionalSpacesandPars#1{% |
| 1002 |
\@ignoreall{ }{\@ignoreall{\par}{#1}}% |
| 1003 |
} |
| 1004 |
|
| 1005 |
|
| 1006 |
% Checking and reading options. |
| 1007 |
% To check for the next optional argument, the macros must look |
| 1008 |
% ahead to the next character. If the next character is a `[', |
| 1009 |
% the option-reading mechanism is invoked. This check may be suppressed if |
| 1010 |
% the user has executed the \lastoption option. If \@lastoption is |
| 1011 |
% "true" or if the [ is NOT next, the macro goes on to reading any |
| 1012 |
% arguments and executing appropriately. |
| 1013 |
|
| 1014 |
\def\@checkoptions{% |
| 1015 |
\if@lastoption |
| 1016 |
\def\@next{\@executetoend}% |
| 1017 |
\else |
| 1018 |
\def\@next{\@checknexttoken {[}{\@readoptions}{\@executetoend}}% |
| 1019 |
\fi |
| 1020 |
\@next |
| 1021 |
} |
| 1022 |
|
| 1023 |
% Default "options" on start-up. Unless over-ridden, the situation |
| 1024 |
% will be: |
| 1025 |
% 1. there may be another option to check (i.e. \@lastoptionfalse); |
| 1026 |
% 2. it will be necessary to read the input file to determine the |
| 1027 |
% method of marking arguments (i.e. \@longformfalse); |
| 1028 |
% 3. arguments will be handled on the fly (i.e. \@savingargumentfalse); |
| 1029 |
% 4. the long-form ending delimiter will be \end... (where ... is |
| 1030 |
% the tag with which we're currently operating. |
| 1031 |
|
| 1032 |
\newif\if@lastoption \@lastoptionfalse |
| 1033 |
\def\lastoption{\@lastoptiontrue} |
| 1034 |
|
| 1035 |
\newif\if@longform \@longformfalse |
| 1036 |
\def\longform{\@longformtrue} |
| 1037 |
|
| 1038 |
\newif\if@savingargument \@savingargumentfalse |
| 1039 |
|
| 1040 |
\newtoks\enddelim |
| 1041 |
|
| 1042 |
\def\@defaultoptions{% |
| 1043 |
\@lastoptionfalse |
| 1044 |
\@longformfalse |
| 1045 |
\@savingargumentfalse |
| 1046 |
\enddelim=\expandafter{\csname end\CurrentTag\endcsname}% |
| 1047 |
\let\@long\empty |
| 1048 |
} |
| 1049 |
|
| 1050 |
% To read an optional command, \catcodes of \ { } are restored to their plain |
| 1051 |
% values, and the [...] form is parsed out by \@@readoptions. The argument |
| 1052 |
% to \@@readoptions is then executed, the 3 specials are restored and |
| 1053 |
% the we check again for [ after deleting spaces. One might, alternatively, |
| 1054 |
% parse out the initial `[' and activate the `]' to end options, but |
| 1055 |
% this would make it awkward to place options within other macros (since |
| 1056 |
% the `]' would have to be \catcoded properly for the definition). |
| 1057 |
|
| 1058 |
\def\@readoptions{% |
| 1059 |
\savecat\\\makeescape\\% |
| 1060 |
\savecat\{\makebgroup\{% |
| 1061 |
\savecat\}\makeegroup\}% |
| 1062 |
\@@readoptions} |
| 1063 |
|
| 1064 |
\def\@@readoptions[#1]{% |
| 1065 |
#1% |
| 1066 |
\restorecat\\\restorecat\{\restorecat\}% |
| 1067 |
\DeleteOptionalSpaces{\@checkoptions}% |
| 1068 |
} |
| 1069 |
|
| 1070 |
|
| 1071 |
% Short Form Tagging. |
| 1072 |
% We specify a character (*) to be used as a begin/end delimiter |
| 1073 |
% for the argument to most tags. This code could be copied and |
| 1074 |
% altered a bit to use another character. |
| 1075 |
|
| 1076 |
% The character will be encountered as either type `other' or as |
| 1077 |
% an `active' character. |
| 1078 |
|
| 1079 |
\newtoks\@otherSFD |
| 1080 |
\@otherSFD={*} |
| 1081 |
\let\@SFD=* % used in \@checknexttoken |
| 1082 |
|
| 1083 |
\newtoks\@activeSFD |
| 1084 |
{\makeactive\* |
| 1085 |
\global\@activeSFD={*}% |
| 1086 |
} |
| 1087 |
|
| 1088 |
\let\@plainast=\ast |
| 1089 |
\def\ast{\ifmmode\@plainast\else *\fi} |
| 1090 |
|
| 1091 |
|
| 1092 |
% Reading to the end-tag. |
| 1093 |
% Macros may just do their business after options have been |
| 1094 |
% read. In this case, there is no end-tag to worry about. |
| 1095 |
% Otherwise, the macros either read to the "long-form" of end-tag |
| 1096 |
% (e.g. \endtitle or \endauthor) or to the short-form (assumed to |
| 1097 |
% be * here). Unless an option has specified |
| 1098 |
% that the long-form is to be used, the macros look ahead to |
| 1099 |
% see whether the short-form delimiter occurs next. If so, |
| 1100 |
% it is assumed that the short-form is being used. In any case, |
| 1101 |
% the appropriate \@begin... macro is executed before the argument is |
| 1102 |
% handled. |
| 1103 |
|
| 1104 |
\newcount\@numarguments \@numarguments=1 |
| 1105 |
|
| 1106 |
\def\@executetoend{% |
| 1107 |
\ifnum\@numarguments>0 |
| 1108 |
\if@longform \def\@afterbegintag{\@longparse}% |
| 1109 |
\else |
| 1110 |
\def\@afterbegintag{\@checknexttoken |
| 1111 |
{\@SFD}{\@shortparse}{\@longparse}}% |
| 1112 |
\fi |
| 1113 |
\else |
| 1114 |
\def\@afterbegintag{}% |
| 1115 |
\fi |
| 1116 |
\csname @begin\CurrentTag\endcsname |
| 1117 |
\@afterbegintag |
| 1118 |
} |
| 1119 |
|
| 1120 |
% If the short-form is being used and an argument is to be saved, |
| 1121 |
% we must define a "form" which TeX may follow to pull out the |
| 1122 |
% tag's argument. The argument is stored away in the token register |
| 1123 |
% \@argument, and the appropriate end-operation is performed. |
| 1124 |
% Otherwise (the `argument' is processed on-the-fly), we parse out |
| 1125 |
% the initial short-form delimiter and activate the ending one. |
| 1126 |
|
| 1127 |
\newtoks\@argument |
| 1128 |
|
| 1129 |
\def\@shortparse{% |
| 1130 |
\if@savingargument |
| 1131 |
\edef\@form{% |
| 1132 |
\def\noexpand\@@shortparse\the\@otherSFD####1\the\@otherSFD}% |
| 1133 |
\@long\@form{\@argument{##1}\csname end\CurrentTag\endcsname}% |
| 1134 |
\else |
| 1135 |
\expandafter\makeactive\csname\the\@otherSFD\endcsname |
| 1136 |
\expandafter\def\the\@activeSFD |
| 1137 |
{\csname end\CurrentTag\endcsname |
| 1138 |
\expandafter\makeother\csname\the\@otherSFD\endcsname}% |
| 1139 |
\def\@@shortparse{% |
| 1140 |
\expandafter\@ignoreone\expandafter{\the\@otherSFD}% |
| 1141 |
{}% |
| 1142 |
}% |
| 1143 |
\fi |
| 1144 |
\@@shortparse} |
| 1145 |
|
| 1146 |
% On the other hand, if the long form is used, TeX must parse to |
| 1147 |
% the long-form ending tag. Ordinarily we know the ending-tag |
| 1148 |
% because it is just the \end... which corresponds to the tag |
| 1149 |
% which initiated the process. We do allow for the possibility, |
| 1150 |
% however, that we may want to switch this for some reason. E.g. |
| 1151 |
% the different \verbatim styles allow for \verbatim...\endverbatim |
| 1152 |
% and ||...||. The easiest way to implement the || style is |
| 1153 |
% to have the first || call \verbatim and have \verbatim know |
| 1154 |
% to look for || as the end-tag instead of \endverbatim. This may |
| 1155 |
% be accomplished by allowing for the possibility of different |
| 1156 |
% end-tags as below. |
| 1157 |
|
| 1158 |
\def\@longparse{% |
| 1159 |
\if@savingargument |
| 1160 |
\edef\@form{\def\noexpand\@@longparse####1\the\enddelim}% |
| 1161 |
\@long\@form{\@argument{##1}\csname end\CurrentTag\endcsname}% |
| 1162 |
\else \def\@@longparse{}\fi |
| 1163 |
\@@longparse |
| 1164 |
} |
| 1165 |
|
| 1166 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1167 |
% Macros generally available to tags. |
| 1168 |
|
| 1169 |
\def\longargument{\def\@long{\long}} |
| 1170 |
|
| 1171 |
\def\@authorstyle{\@@@a} |
| 1172 |
\def\@inlinestyle{\@@@i} |
| 1173 |
\def\@displaystyle{\@@@d} |
| 1174 |
\def\@altinlinestyle{} |
| 1175 |
\def\@altdisplaystyle{} |
| 1176 |
|
| 1177 |
\newif\if@removeprewhite \@removeprewhitefalse |
| 1178 |
\newif\if@removepostwhite \@removepostwhitefalse |
| 1179 |
\def\removeprewhite{\@removeprewhitetrue} |
| 1180 |
\def\removepostwhite{\@removepostwhitetrue} |
| 1181 |
|
| 1182 |
% Allow for line numbers on a listing as well as rules above and below. |
| 1183 |
\newif\if@ruled \@ruledfalse |
| 1184 |
\newif\if@numbered \@numberedfalse |
| 1185 |
\newcount\linenumber |
| 1186 |
\newcount\globallinenumber \globallinenumber = 0 |
| 1187 |
\newif\if@continuingnumbers \@continuingnumbersfalse |
| 1188 |
\def\continuenumbers{\numbered\@continuingnumberstrue} |
| 1189 |
|
| 1190 |
%% |
| 1191 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1192 |
% |
| 1193 |
% ***** title, section title, authors, addresses ***** |
| 1194 |
% |
| 1195 |
|
| 1196 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1197 |
% |
| 1198 |
% title |
| 1199 |
|
| 1200 |
\def\title{% |
| 1201 |
\begingroup |
| 1202 |
\def\CurrentTag{title}% |
| 1203 |
\@defaultoptions |
| 1204 |
\@savingargumenttrue |
| 1205 |
\@checkoptions} |
| 1206 |
|
| 1207 |
\def\endtitle{% |
| 1208 |
\global\toks@=\expandafter{\the\@argument}% |
| 1209 |
\endgroup |
| 1210 |
\edef\thetitle{\ignorespaces\the\toks@\unskip}% |
| 1211 |
} |
| 1212 |
|
| 1213 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1214 |
% |
| 1215 |
% section titles |
| 1216 |
|
| 1217 |
% Material mostly in tugboat.com now |
| 1218 |
|
| 1219 |
\setbox\T@stBox=\hbox{\sectitlefont O} |
| 1220 |
\newdimen\stfontheight \stfontheight=\ht\T@stBox |
| 1221 |
|
| 1222 |
\def\sectitle{% |
| 1223 |
\begingroup |
| 1224 |
\def\CurrentTag{sectitle}% |
| 1225 |
\@defaultoptions |
| 1226 |
\@savingargumenttrue |
| 1227 |
\global\SecTitletrue |
| 1228 |
\@checkoptions} |
| 1229 |
|
| 1230 |
\def\endsectitle{% |
| 1231 |
\@sectitle{\the\@argument}% |
| 1232 |
\endgroup |
| 1233 |
} |
| 1234 |
|
| 1235 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1236 |
% |
| 1237 |
% authors |
| 1238 |
|
| 1239 |
\newcount\authornumber |
| 1240 |
|
| 1241 |
\def\author{% |
| 1242 |
\begingroup |
| 1243 |
\def\CurrentTag{author}% |
| 1244 |
\global\advance\authornumber by 1 |
| 1245 |
\@defaultoptions |
| 1246 |
\@savingargumenttrue |
| 1247 |
\@checkoptions} |
| 1248 |
|
| 1249 |
\def\endauthor{% |
| 1250 |
\global\toks@=\expandafter{\the\@argument}% |
| 1251 |
\endgroup |
| 1252 |
\expandafter\edef\csname theauthor\number\authornumber\endcsname |
| 1253 |
{\ignorespaces\the\toks@\unskip}% |
| 1254 |
\expandafter\let\csname theaddress\number\authornumber\endcsname\relax |
| 1255 |
\expandafter\let\csname thenetaddress\number\authornumber\endcsname\relax |
| 1256 |
} |
| 1257 |
|
| 1258 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1259 |
% |
| 1260 |
% addresses |
| 1261 |
|
| 1262 |
\newif\if@address \@addressfalse |
| 1263 |
\def\address{% |
| 1264 |
\@addresstrue |
| 1265 |
\begingroup |
| 1266 |
\def\CurrentTag{address}% |
| 1267 |
\@defaultoptions |
| 1268 |
\@savingargumenttrue |
| 1269 |
\let\@addressstyle=\@authorstyle |
| 1270 |
\def\inline{\let\@addressstyle=\@inlinestyle}% |
| 1271 |
\def\display{\let\@addressstyle=\@displaystyle}% |
| 1272 |
\@checkoptions} |
| 1273 |
|
| 1274 |
\def\endaddress{% |
| 1275 |
\ifx\@addressstyle\@inlinestyle |
| 1276 |
\def\\{, }\the\@argument |
| 1277 |
\endgroup |
| 1278 |
\def\@next{}% |
| 1279 |
\else\ifx\@addressstyle\@displaystyle |
| 1280 |
\endgraf\raggedright |
| 1281 |
\everypar={\hangindent 1.5\parindent}% |
| 1282 |
\def\\{\endgraf}% |
| 1283 |
\def\|{\unskip\hfil\break}% |
| 1284 |
\vskip\abovedisplayskip |
| 1285 |
\the\@argument\endgraf |
| 1286 |
\vskip\belowdisplayskip |
| 1287 |
\@asifbelowdisplay |
| 1288 |
\endgroup |
| 1289 |
\def\@next{\ignorespaces}% |
| 1290 |
\else |
| 1291 |
\global\toks@=\expandafter{\the\@argument}% |
| 1292 |
\endgroup |
| 1293 |
\expandafter\edef\csname theaddress\number\authornumber\endcsname |
| 1294 |
{\ignorespaces\the\toks@\unskip}% |
| 1295 |
\def\@next{}% |
| 1296 |
\fi \fi |
| 1297 |
\@next |
| 1298 |
} |
| 1299 |
|
| 1300 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1301 |
% |
| 1302 |
% network addresses |
| 1303 |
|
| 1304 |
\def\netaddress{% |
| 1305 |
\begingroup |
| 1306 |
\def\CurrentTag{netaddress}% |
| 1307 |
\@defaultoptions |
| 1308 |
\@savingargumenttrue |
| 1309 |
\let\@network\relax |
| 1310 |
\def\network##1{\def\@network{##1: }}% |
| 1311 |
\@SpecialsGetOther |
| 1312 |
\makeescape\\% |
| 1313 |
\netaddrat |
| 1314 |
\netaddrpercent |
| 1315 |
\@checkoptions} |
| 1316 |
|
| 1317 |
{\makeactive\@ |
| 1318 |
\gdef\netaddrat{\makeactive\@\def@{\char"40\discretionary{}{}{}}} |
| 1319 |
\makeactive\% |
| 1320 |
\gdef\netaddrpercent{\makeactive\%\def%{\char"25\discretionary{}{}{}}} |
| 1321 |
} |
| 1322 |
|
| 1323 |
% We want the definition of \thenetaddress... to land at the right |
| 1324 |
% nesting level, so we have to first pull it to the top, then |
| 1325 |
% drop back to where we are. |
| 1326 |
|
| 1327 |
\def\endnetaddress{% |
| 1328 |
\global\toks@=\expandafter{\the\@argument}% |
| 1329 |
\ifx\@network\relax |
| 1330 |
\gdef\@@network{}% |
| 1331 |
\else |
| 1332 |
\xdef\@@network{\@network}% |
| 1333 |
\fi |
| 1334 |
\endgroup |
| 1335 |
\expandafter\edef\csname thenetaddress\number\authornumber\endcsname |
| 1336 |
{{\noexpand\rm\@@network}% |
| 1337 |
{\noexpand\netaddrat\noexpand\netaddrpercent\noexpand\net |
| 1338 |
\ignorespaces\the\toks@\unskip}}% |
| 1339 |
} |
| 1340 |
|
| 1341 |
\def\net{\tt} |
| 1342 |
|
| 1343 |
% Overrides to default author and signature formats |
| 1344 |
|
| 1345 |
\def\authorlist#1{\def\@authorlist{#1}} |
| 1346 |
|
| 1347 |
% Except for the first article in a section, beginnings of articles |
| 1348 |
% are announced by a horizontal rule the width of the column. |
| 1349 |
% In the case that this rule happens to fall at the top of a column, |
| 1350 |
% we have to make sure that it appears at the VERY top of the column |
| 1351 |
% and not just on the first baseline. To accomplish this, we insert |
| 1352 |
% an empty rule first and then jump back over it to place the rule that |
| 1353 |
% readers will see. |
| 1354 |
|
| 1355 |
\def\article{% |
| 1356 |
\@allowspanningfigsfalse |
| 1357 |
\iftubsecondcolstart % if splicing, start in col.2 |
| 1358 |
\null\newcol % and set horizontal shift |
| 1359 |
\tubcolwidthandgutter=\colwd \advance\tubcolwidthandgutter by \intercolwd |
| 1360 |
\fi |
| 1361 |
\ifSecTitle \global\SecTitlefalse |
| 1362 |
\else \vskip\AboveTitleSkip |
| 1363 |
\kern\topskip |
| 1364 |
\nullhrule |
| 1365 |
\kern-\topskip |
| 1366 |
\kern-\strulethickness |
| 1367 |
\hrule height\strulethickness depth\z@ |
| 1368 |
\nobreak |
| 1369 |
\kern\medskipamount |
| 1370 |
\fi |
| 1371 |
\ifx\thetitle\relax |
| 1372 |
\else |
| 1373 |
\nobreak |
| 1374 |
{\parskip\z@\interlinepenalty\@M |
| 1375 |
\noindent\def\\{\unskip\break}\raggedstretch=.3\colwd\raggedright\bf |
| 1376 |
\ignorespaces\thetitle\unskip\endgraf}% |
| 1377 |
\fi |
| 1378 |
\ifnum\authornumber>0 |
| 1379 |
\nobreak |
| 1380 |
\vskip4pt |
| 1381 |
{\parskip\z@\interlinepenalty\@M |
| 1382 |
\def\\{\unskip\hfil\break}\hangindent\parindent\raggedright |
| 1383 |
\@authorlist\endgraf} |
| 1384 |
\fi |
| 1385 |
\nobreak |
| 1386 |
\vskip \BelowTitleSkip |
| 1387 |
\vskip -\parskip |
| 1388 |
\tenpoint |
| 1389 |
\DeleteOptionalSpacesandPars{\noindent\ignorespaces}% |
| 1390 |
} |
| 1391 |
|
| 1392 |
|
| 1393 |
% without the \nobreak, we can end up with an empty last page |
| 1394 |
% (tb139wermuth-isdim). As Udo explains (13may24): |
| 1395 |
% After TeX adjusts the page height the tugboat.sty output routine |
| 1396 |
% starts the \ExecuteNextDC macro that prepares for a new page. This |
| 1397 |
% page gets a \topskip and more input is read next. Only \endarticle is |
| 1398 |
% left so a \vfill finishes the started column and your routine adds |
| 1399 |
% another one to complete the page. That's all that ends up on the page. |
| 1400 |
% With the \nobreak, the signature will be put on the last page, and the |
| 1401 |
% previous page will be underfull, so it becomes obvious that a little |
| 1402 |
% space should be taken away somewhere. |
| 1403 |
\def\endarticle{\nobreak\vfil\end} |
| 1404 |
|
| 1405 |
%% |
| 1406 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1407 |
% |
| 1408 |
% ***** heads ***** |
| 1409 |
% |
| 1410 |
|
| 1411 |
% Heads are set by first saving the text of the head in \@argument |
| 1412 |
% and then operating appropriately depending upon the \headlevel. |
| 1413 |
% Selection among the different heads is made by an \ifcase. |
| 1414 |
|
| 1415 |
% To remove extra \par tokens between heads and ensuing text in the |
| 1416 |
% input file, we call \DeleteOptionalSpacesandPars. To do this outside |
| 1417 |
% the `head' group and just before TeX returns to the normal input stream |
| 1418 |
% following a call to \head, we must define (globally) a control sequence |
| 1419 |
% (\@next) and call it at the very end. |
| 1420 |
|
| 1421 |
\newcount\headlevel \headlevel=1 |
| 1422 |
|
| 1423 |
\def\head{% |
| 1424 |
\begingroup |
| 1425 |
\def\CurrentTag{head}% |
| 1426 |
\@allowindentfalse |
| 1427 |
\@defaultoptions |
| 1428 |
\@savingargumenttrue |
| 1429 |
\def\\{\break}% |
| 1430 |
\@checkoptions} |
| 1431 |
|
| 1432 |
\def\endhead{% |
| 1433 |
\endgraf |
| 1434 |
\ifcase\headlevel\or\@domainhead\or\@dosubhead\or\@dosubsubhead\fi |
| 1435 |
\endgroup |
| 1436 |
\@next |
| 1437 |
} |
| 1438 |
|
| 1439 |
\def\@domainhead{% |
| 1440 |
\if@removeprewhite\else\vskip\baselineskip\fi |
| 1441 |
\noindent{\raggedright\bf\ignorespaces\the\@argument\unskip\endgraf}% |
| 1442 |
\if@removepostwhite % usually we want the white space |
| 1443 |
\else\kern0.5\baselineskip\fi |
| 1444 |
\nobreak |
| 1445 |
\gdef\@next{% |
| 1446 |
\if@allowindent\def\@next{}% usually we don't want to indent here |
| 1447 |
\else\def\@next{\DeleteOptionalSpacesandPars{\noindent\ignorespaces}}\fi |
| 1448 |
\@next |
| 1449 |
}% |
| 1450 |
} |
| 1451 |
|
| 1452 |
\def\@dosubhead{% |
| 1453 |
\if@removeprewhite\else\medskip\fi |
| 1454 |
\noindent{\frenchspacing\bf\ignorespaces\the\@argument |
| 1455 |
\unskip\if@headpunctuation.\fi}% |
| 1456 |
\hskip 0.5em plus \fontdimen3\the\font |
| 1457 |
\gdef\@next{\DeleteOptionalSpacesandPars{}}% |
| 1458 |
} |
| 1459 |
|
| 1460 |
\def\@dosubsubhead{% |
| 1461 |
{\frenchspacing\bf\ignorespaces\the\@argument\unskip}% |
| 1462 |
\hskip 0.5em plus \fontdimen3\the\font |
| 1463 |
\gdef\@next{\DeleteOptionalSpacesandPars{}}% |
| 1464 |
} |
| 1465 |
|
| 1466 |
\def\subhead{\head[\headlevel=2]} |
| 1467 |
\def\subsubhead{\head[\headlevel=3]} |
| 1468 |
|
| 1469 |
\newif\if@headpunctuation \@headpunctuationtrue |
| 1470 |
\def\nopunctuation{\@headpunctuationfalse} |
| 1471 |
|
| 1472 |
\newif\if@allowindent |
| 1473 |
\def\allowindent{\global\@allowindenttrue} |
| 1474 |
|
| 1475 |
%% |
| 1476 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1477 |
% |
| 1478 |
% ***** text and subtext ***** |
| 1479 |
% |
| 1480 |
|
| 1481 |
% The code here exists primarily to implement \subtext. The treatment |
| 1482 |
% is similar to that for \head in that an \ifcase statement is called |
| 1483 |
% to choose between the various text levels. Here, however, we handle |
| 1484 |
% the `text' on the fly instead of saving it as an argument. |
| 1485 |
|
| 1486 |
\newcount\textlevel \textlevel=1 |
| 1487 |
|
| 1488 |
\def\text{% |
| 1489 |
\begingroup |
| 1490 |
\def\CurrentTag{text}% |
| 1491 |
\@defaultoptions |
| 1492 |
\@savingargumentfalse |
| 1493 |
\@checkoptions} |
| 1494 |
|
| 1495 |
\def\@begintext{% |
| 1496 |
\endgraf |
| 1497 |
\ifcase\textlevel\or\or\@setupsubtext\fi |
| 1498 |
} |
| 1499 |
|
| 1500 |
\def\@setupsubtext{% |
| 1501 |
\vskip\abovedisplayskip |
| 1502 |
\advance\leftskip by 0.5\parindent |
| 1503 |
\advance\rightskip by 0.5\parindent |
| 1504 |
\ninepoint\rm |
| 1505 |
} |
| 1506 |
|
| 1507 |
\def\endtext{% |
| 1508 |
\gdef\@next{}% |
| 1509 |
\ifcase\textlevel\or\or\@dosubtext\fi |
| 1510 |
\endgroup |
| 1511 |
\@next |
| 1512 |
} |
| 1513 |
|
| 1514 |
\def\@dosubtext{% |
| 1515 |
\endgraf |
| 1516 |
\vskip\belowdisplayskip |
| 1517 |
\gdef\@next{\@asifbelowdisplay}% |
| 1518 |
} |
| 1519 |
|
| 1520 |
\def\subtext{\text[\textlevel=2]} |
| 1521 |
|
| 1522 |
%% |
| 1523 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1524 |
% |
| 1525 |
% ***** lists ***** |
| 1526 |
% |
| 1527 |
|
| 1528 |
\newcount\listlevel \listlevel=1 |
| 1529 |
\newif\if@itemized |
| 1530 |
\newcount\itemnumber |
| 1531 |
\newtoks\@itemtag |
| 1532 |
\newcount\@cols % number of columns in list |
| 1533 |
\newdimen\colsepwidth |
| 1534 |
\newdimen\@listindent |
| 1535 |
\newdimen\@listhangindent |
| 1536 |
\newif\if@firstitem % when first item is handled differently |
| 1537 |
\newtoks\everylist |
| 1538 |
|
| 1539 |
\def\list{% |
| 1540 |
\begingroup |
| 1541 |
\def\CurrentTag{list}% |
| 1542 |
\let\@liststyle=\@displaystyle |
| 1543 |
\def\inline{\let\@liststyle=\@inlinestyle}% |
| 1544 |
\def\display{\let\@liststyle=\@displaystyle}% |
| 1545 |
\def\displaystyle##1{\def\@altdisplaystyle{##1}}% |
| 1546 |
\def\inlinestyle##1{\def\@altinlinestyle{##1}}% |
| 1547 |
\def\item{% |
| 1548 |
\begingroup |
| 1549 |
\def\CurrentTag{item}% |
| 1550 |
\@numarguments=0 |
| 1551 |
\@checkoptions}% |
| 1552 |
\@itemtag={$\bullet$}% |
| 1553 |
\def\tag##1{\@itemtag{##1}}% |
| 1554 |
\def\tagform##1{\llap{##1\strutt\enspace}}% |
| 1555 |
\@itemizedtrue |
| 1556 |
\def\unitemized{\@itemizedfalse}% |
| 1557 |
\itemnumber=0 |
| 1558 |
\def\numbered{\@itemtag={\number\itemnumber.}}% |
| 1559 |
\def\romannumeraled{\@itemtag={\romannumeral\itemnumber.}}% |
| 1560 |
\def\Romannumeraled{\@itemtag= |
| 1561 |
{\uppercase\expandafter{\romannumeral\itemnumber.}}}% |
| 1562 |
\def\lettered{\itemnumber="60 \@itemtag={\char\itemnumber.}}% |
| 1563 |
\def\Lettered{\itemnumber="40 \@itemtag={\char\itemnumber.}}% |
| 1564 |
\def\ruled{\@ruledtrue}% |
| 1565 |
\@ruledfalse |
| 1566 |
\@cols=1 |
| 1567 |
\def\cols{\@cols}% |
| 1568 |
\@firstitemtrue |
| 1569 |
\def\@itemseparator{, }% |
| 1570 |
\def\itemseparator##1{\def\@itemseparator{##1}}% |
| 1571 |
\@defaultoptions |
| 1572 |
\@savingargumentfalse |
| 1573 |
\the\everylist |
| 1574 |
\@checkoptions} |
| 1575 |
|
| 1576 |
\def\@beginlist{% |
| 1577 |
\ifx\@liststyle\@displaystyle |
| 1578 |
\endgraf |
| 1579 |
\ifnum\listlevel=1 |
| 1580 |
\if@ruled \if@removeprewhite\else\medskip\fi \hrule\kern5pt \nobreak |
| 1581 |
\else \if@removeprewhite\else\vskip\abovedisplayskip \fi\fi |
| 1582 |
\fi |
| 1583 |
\advance\leftskip\parindent |
| 1584 |
\@listindent=\parindent |
| 1585 |
\@listhangindent=\@listindent |
| 1586 |
\parindent\@listindent |
| 1587 |
\lineskip\z@ |
| 1588 |
\if@itemized |
| 1589 |
\else |
| 1590 |
\parskip\z@skip |
| 1591 |
\parindent\z@ |
| 1592 |
\raggedright |
| 1593 |
\everypar={\advance\itemnumber\@ne |
| 1594 |
\tagform{\the\@itemtag}}% |
| 1595 |
\makeCtrlMendgraf |
| 1596 |
\fi |
| 1597 |
\def\colsep{% |
| 1598 |
\global\count@\itemnumber |
| 1599 |
\egroup\kern\colsepwidth |
| 1600 |
\vtop\bgroup |
| 1601 |
\@altdisplaystyle |
| 1602 |
\itemnumber=\count@\ignoreendline}% |
| 1603 |
\ifnum\@cols>1 |
| 1604 |
\dimen@\colsepwidth |
| 1605 |
\multiply\dimen@\@cols |
| 1606 |
\advance\dimen@-\colsepwidth |
| 1607 |
\advance\hsize-\dimen@ |
| 1608 |
\divide\hsize by\@cols |
| 1609 |
\hbox\bgroup\vtop\bgroup |
| 1610 |
\fi |
| 1611 |
\@altdisplaystyle |
| 1612 |
\else |
| 1613 |
\def\tagform##1{##1\strutt\ }% |
| 1614 |
\if@itemized |
| 1615 |
\else |
| 1616 |
\makeCtrlMseparator |
| 1617 |
\advance\itemnumber by \@ne |
| 1618 |
\tagform{\the\@itemtag}% |
| 1619 |
\fi |
| 1620 |
\def\colsep{}% |
| 1621 |
\@altinlinestyle |
| 1622 |
\fi |
| 1623 |
} |
| 1624 |
|
| 1625 |
|
| 1626 |
\def\endlist{% |
| 1627 |
\ifx\@liststyle\@displaystyle |
| 1628 |
\if@itemized\endgraf\fi |
| 1629 |
\ifnum\@cols>1 |
| 1630 |
\egroup % vtop |
| 1631 |
\egroup % hbox |
| 1632 |
\fi |
| 1633 |
\ifnum\listlevel=1 |
| 1634 |
\if@ruled \kern5pt\hrule\nobreak\vskip2\medskipamount |
| 1635 |
\else %\nobreak |
| 1636 |
\if@removepostwhite\else\vskip\belowdisplayskip\fi |
| 1637 |
\fi |
| 1638 |
\gdef\@next{\@asifbelowdisplay}% |
| 1639 |
\fi |
| 1640 |
\else \gdef\@next{}% |
| 1641 |
\fi |
| 1642 |
\endgroup % list |
| 1643 |
\@next |
| 1644 |
} |
| 1645 |
|
| 1646 |
\def\sublist{\list[\listlevel=2]} |
| 1647 |
|
| 1648 |
|
| 1649 |
\newtoks\everyitem \everyitem{} |
| 1650 |
|
| 1651 |
|
| 1652 |
\def\@beginitem{% |
| 1653 |
\ifx\@liststyle\@displaystyle |
| 1654 |
\endgraf |
| 1655 |
\if@firstitem\@firstitemfalse\else\vskip\smallskipamount\fi |
| 1656 |
\advance\itemnumber by \@ne |
| 1657 |
\noindent\leavevmode |
| 1658 |
\the\everyitem |
| 1659 |
\tagform{\the\@itemtag}% |
| 1660 |
\else |
| 1661 |
\def\item{\if@firstitem\@firstitemfalse\else\unskip\@itemseparator\fi |
| 1662 |
\advance\itemnumber by \@ne\the\@itemtag\enspace}% |
| 1663 |
\fi |
| 1664 |
\global\count@\itemnumber |
| 1665 |
\global\dimen@\hangindent |
| 1666 |
\endgroup |
| 1667 |
\itemnumber\count@ |
| 1668 |
\hangindent\dimen@ |
| 1669 |
} |
| 1670 |
|
| 1671 |
%% |
| 1672 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1673 |
% |
| 1674 |
% ***** verbatim ***** |
| 1675 |
% |
| 1676 |
|
| 1677 |
% Operation here is very similar to that for the other tags. |
| 1678 |
% The opening tag sets up the situation and looks for optional |
| 1679 |
% commands and the short-form delimiters. Since initial setup |
| 1680 |
% involves changing the special characters to characters of |
| 1681 |
% type other, some juggling must be done when optional commands |
| 1682 |
% are read. In addition, to allow for implementation of the |
| 1683 |
% |...| style using the more verbose \verbatim...\endverbatim, |
| 1684 |
% we parameterize the ending-delimiter. |
| 1685 |
|
| 1686 |
% sets default to display style |
| 1687 |
\def\verbatim{\@verbatim[\display]} |
| 1688 |
|
| 1689 |
\def\@verbatim{% |
| 1690 |
\begingroup |
| 1691 |
\setupverbatim |
| 1692 |
\@checkoptions |
| 1693 |
} |
| 1694 |
|
| 1695 |
\def\setupverbatim{% |
| 1696 |
\def\CurrentTag{verbatim}% |
| 1697 |
\@defaultoptions |
| 1698 |
\def\inline{\let\@verbstyle\@inlinestyle}% |
| 1699 |
\def\display{\par\smallverbdisplay\let\@verbstyle\@displaystyle}% |
| 1700 |
\def\displaystyle##1{\def\@altdisplaystyle{##1}}% |
| 1701 |
\def\inlinestyle##1{\def\@altinlinestyle{##1}}% |
| 1702 |
\def\numbered{\@numberedtrue}% |
| 1703 |
\def\ruled{\@ruledtrue}% |
| 1704 |
\def\smallcode{\ninepoint\tt }% |
| 1705 |
\let\@verbinputvar\relax |
| 1706 |
\let\@verbinputfile\relax |
| 1707 |
\@SpecialsGetOther |
| 1708 |
\enddelim=\expandafter{\endverbdelimiter}% |
| 1709 |
\normalspaces\frenchspacing |
| 1710 |
\obeylines |
| 1711 |
\@savingargumenttrue |
| 1712 |
\the\everyverbatim |
| 1713 |
} |
| 1714 |
|
| 1715 |
% By default, switch to 9pt tt for verbatim displays. |
| 1716 |
\def\smallverbdisplay{\smallcode} |
| 1717 |
|
| 1718 |
\def\@SpecialsGetOther{% |
| 1719 |
\catcode`\\=\other |
| 1720 |
\catcode`\{=\other \catcode`\}=\other \catcode`\$=\other |
| 1721 |
\catcode`\&=\other \catcode`\#=\other \catcode`\%=\other |
| 1722 |
\catcode`\~=\other \catcode`\_=\other \catcode`\^=\other |
| 1723 |
\the\@AdditionsToSpecialsGetOther} |
| 1724 |
|
| 1725 |
% The \@Additions... register above should be used whenever another |
| 1726 |
% character is declared to be special for some purpose. E.g., |
| 1727 |
% we will use the | for the short-form |...| verbatim notation. |
| 1728 |
% Since the | is generally active for this purpose, its category |
| 1729 |
% won't get changed to \other for use in \verbatim...\endverbatim |
| 1730 |
% unless we add it via this mechanism. |
| 1731 |
|
| 1732 |
\newtoks\@AdditionsToSpecialsGetOther |
| 1733 |
|
| 1734 |
\def\AddToSpecialsGetOther#1{% |
| 1735 |
\@AdditionsToSpecialsGetOther= |
| 1736 |
\expandafter{\the\@AdditionsToSpecialsGetOther#1}} |
| 1737 |
|
| 1738 |
% Altering the verbatim setup. |
| 1739 |
% Users can alter the setup to their purpose by |
| 1740 |
% putting tokens in the register \everyverbatim. |
| 1741 |
|
| 1742 |
\newtoks\everyverbatim |
| 1743 |
|
| 1744 |
% Ordinarily the end-tag would be the single token `\endverbatim'. |
| 1745 |
% The following allows us to `see' the tag when `\' is of type `other'. |
| 1746 |
{\catcode`\|=0 \catcode`\\=\other |
| 1747 |
|gdef|endverbdelimiter{\endverbatim}} |
| 1748 |
|
| 1749 |
% Input from an external variable or file |
| 1750 |
|
| 1751 |
\def\inputfromvar#1{\def\@verbinputvar{#1}}% |
| 1752 |
\def\inputfromfile#1{\def\@verbinputfile{#1}}% |
| 1753 |
\let\@verbinputvar\relax |
| 1754 |
\let\@verbinputfile\relax |
| 1755 |
|
| 1756 |
% Outputs |
| 1757 |
|
| 1758 |
\newif\if@outputtotype \@outputtotypetrue |
| 1759 |
\def\notype{\@outputtotypefalse} |
| 1760 |
\def\outputtovar#1{\def\@verboutputvar{#1}} |
| 1761 |
\def\outputtofile#1{\def\@verboutputfile{#1}} |
| 1762 |
\let\@verboutputvar\relax |
| 1763 |
\let\@verboutputfile\relax |
| 1764 |
\newwrite\verboutfile |
| 1765 |
|
| 1766 |
\def\@beginverbatim{\obeyspaces}%\obeylines} |
| 1767 |
|
| 1768 |
\def\endverbatim{% |
| 1769 |
\ifx\@verboutputvar\relax\else % output to `variable' |
| 1770 |
\expandafter\xdef\csname\@verboutputvar\endcsname{\the\@argument}% |
| 1771 |
\fi |
| 1772 |
\ifx\@verboutputfile\relax\else % output to file |
| 1773 |
\immediate\openout\verboutfile=\@verboutputfile |
| 1774 |
\makeCtrlMnewlinechar |
| 1775 |
\iffalse{\fi\expandafter\@setupverbwrite\the\@argument}% use \@setupwrite to |
| 1776 |
\immediate\closeout\verboutfile % get rid of initial ^^M |
| 1777 |
\fi |
| 1778 |
\gdef\@next{}% % in case following clause is false |
| 1779 |
\if@outputtotype % output typeset on page |
| 1780 |
\tt |
| 1781 |
\ifx\@verbstyle\@inlinestyle |
| 1782 |
\@beforeverbinline |
| 1783 |
\@altinlinestyle |
| 1784 |
\else |
| 1785 |
\@beforeverbdisplay |
| 1786 |
\@altdisplaystyle |
| 1787 |
\fi |
| 1788 |
\ifx\@verbinputvar\relax\else % input from `variable' |
| 1789 |
\csname\@verbinputvar\endcsname |
| 1790 |
\fi |
| 1791 |
\ifx\@verbinputfile\relax\else % input from file |
| 1792 |
\fileinput{\@verbinputfile}% |
| 1793 |
\@endverbatim |
| 1794 |
\fi |
| 1795 |
\expandafter\@ignoreCtrlMverbendline\the\@argument\@endverbatim |
| 1796 |
\ifx\@verbstyle\@inlinestyle |
| 1797 |
\@afterverbinline |
| 1798 |
\else |
| 1799 |
\@afterverbdisplay\gdef\@next{\@asifbelowdisplay}% |
| 1800 |
\fi |
| 1801 |
\fi |
| 1802 |
\endgroup |
| 1803 |
\@next |
| 1804 |
} |
| 1805 |
|
| 1806 |
|
| 1807 |
\def\@beforeverbinline{% |
| 1808 |
\makeCtrlMverbspace |
| 1809 |
\let\@endverbatim=\empty |
| 1810 |
} |
| 1811 |
|
| 1812 |
\def\@beforeverbdisplay{% |
| 1813 |
\def\@endverbatim{\verbendline}% |
| 1814 |
\if@ruled \medskip \hrule\kern5pt \nobreak |
| 1815 |
\else \vskip\abovedisplayskip |
| 1816 |
\fi |
| 1817 |
\makespaceverbspace |
| 1818 |
\makeCtrlMverbendline |
| 1819 |
\parskip=\z@skip |
| 1820 |
\if@numbered \parindent=\z@ |
| 1821 |
\if@continuingnumbers |
| 1822 |
\else \global\globallinenumber = \z@ \fi |
| 1823 |
\linenumber=\z@ \fi |
| 1824 |
\everypar={\global\advance\globallinenumber by\@ne |
| 1825 |
\advance\linenumber by\@ne |
| 1826 |
\ifnum\linenumber<3 \vadjust{\nobreak}\fi |
| 1827 |
\if@numbered \leavevmode |
| 1828 |
\hbox to\normalparindent{\hss\sevenrm\the\globallinenumber.\ }% |
| 1829 |
\fi}% |
| 1830 |
\frenchspacing\rightskip=-\ttrightskip \hyphenpenalty\@M |
| 1831 |
} |
| 1832 |
|
| 1833 |
% \ttrightskip is the permissible overhang beyond right margin for verbatim; |
| 1834 |
% in MANMAC, this is 5pc, which is fine for the TeXbook, but much too |
| 1835 |
% much here. Until 2020-10-07, this was 1pc, but that also looks to be |
| 1836 |
% too much (we don't allow any overrun by default in LaTeX). The 2.9pt |
| 1837 |
% value comes from a verbatim line in \ninett (the default), with the |
| 1838 |
% standard \parindent (resetting that to zero seems too big a change) |
| 1839 |
% that is 43 characters long; it's 2.89pt overfull, and doesn't look |
| 1840 |
% terrible, so accept it. BTW \hfuzz=1pt in tugboat.sty. |
| 1841 |
|
| 1842 |
\newdimen\ttrightskip \ttrightskip=2.9pt |
| 1843 |
|
| 1844 |
\def\@afterverbinline{} |
| 1845 |
|
| 1846 |
\def\@afterverbdisplay{% |
| 1847 |
\if@ruled \kern5pt\hrule\fi |
| 1848 |
\ifnum\linenumber<3 \penalty\z@ \fi |
| 1849 |
\if@removepostwhite\else |
| 1850 |
\if@ruled \vskip2\medskipamount \else \vskip\belowdisplayskip\fi |
| 1851 |
\fi |
| 1852 |
} |
| 1853 |
|
| 1854 |
\def\@asifbelowdisplay{% |
| 1855 |
\toks@=\expandafter{\the\everypar}% |
| 1856 |
\noindent |
| 1857 |
\everypar=\expandafter{\the\toks@}% |
| 1858 |
\ignorespaces} |
| 1859 |
|
| 1860 |
|
| 1861 |
% Definitions of spaces and ^^M |
| 1862 |
% \@ignoreCtrlMverbendline is used to lop off an initial ^^M in |
| 1863 |
% verbatim text and to remove an \@endverbatim (the latter in case the |
| 1864 |
% verbatim text is actually empty) |
| 1865 |
|
| 1866 |
\def\@ignoreendverbatim{\@ignoreone{\@endverbatim}{}} |
| 1867 |
\def\verbendline{\leavevmode\null\endgraf} |
| 1868 |
\def\makeCtrlMactive{\catcode`\^^M=\active} |
| 1869 |
{\makeCtrlMactive |
| 1870 |
\gdef\makeCtrlMverbendline{\makeCtrlMactive% |
| 1871 |
\def^^M{\@ignoreone{\@endverbatim}{\verbendline}}}% |
| 1872 |
\makeCtrlMverbendline% |
| 1873 |
\gdef\@ignoreCtrlMverbendline{\@ignoreone{ |
| 1874 |
}{\@ignoreendverbatim}}% |
| 1875 |
\gdef\@setupverbwrite{\@ignoreone{ |
| 1876 |
}{\immediate\write\verboutfile\bgroup}}% |
| 1877 |
\gdef\makeCtrlMverbspace{\makeCtrlMactive\def^^M{\verbatimspace}}% |
| 1878 |
\gdef\makeCtrlMnewlinechar{\newlinechar=`\^^M}% |
| 1879 |
\gdef\makeCtrlMendgraf{\makeCtrlMactive\def^^M{\strutt\endgraf}}% |
| 1880 |
\gdef\makeCtrlMseparator{\makeCtrlMactive% |
| 1881 |
\def^^M{% |
| 1882 |
\@checknexttoken {\endlist}{}{% |
| 1883 |
\@itemseparator\advance\itemnumber by \@ne \tagform{\the\@itemtag}% |
| 1884 |
\ignorespaces}}}% |
| 1885 |
} |
| 1886 |
|
| 1887 |
% to read a variable or file name properly, we must interpret |
| 1888 |
% spaces and ^^M as nothing or as spaces |
| 1889 |
|
| 1890 |
{\makeCtrlMactive\obeyspaces% |
| 1891 |
\gdef\makeCtrlMempty{\def^^M{}}% |
| 1892 |
\gdef\makespaceempty{\def {}}% |
| 1893 |
} |
| 1894 |
{\makeCtrlMactive\obeyspaces% |
| 1895 |
\gdef\makeCtrlMspace{\def^^M{\space}}% |
| 1896 |
\gdef\makespacespace{\def {\space}}% |
| 1897 |
} |
| 1898 |
|
| 1899 |
{\makeCtrlMactive% |
| 1900 |
\gdef\@ignoreCtrlM#1{\@ignoreone{^^M}{#1}}% |
| 1901 |
\gdef\ignoreendline{\@ignoreCtrlM{}}% |
| 1902 |
} |
| 1903 |
|
| 1904 |
% From David Eppstein's ``Trees'' paper (6#1), preserve initial spaces. |
| 1905 |
\def\verbatimspace{\ifvmode\indent\fi\space} |
| 1906 |
{\obeyspaces\gdef\makespaceverbspace{\def {\verbatimspace}}} |
| 1907 |
|
| 1908 |
|
| 1909 |
|
| 1910 |
% Options and variants. |
| 1911 |
|
| 1912 |
\def\verbinline{\@verbatim[\inline]} % \@verbatim to avoid \display |
| 1913 |
\def\verbdisplay{\verbatim[\display]} % already the default, but what the heck |
| 1914 |
\def\verbfile#1{\verbatim[\inputfromfile{#1}]} |
| 1915 |
|
| 1916 |
|
| 1917 |
% Verbatim with the other characters (e.g. |...|). |
| 1918 |
% Procedures are parameterized so that it is easy to allow |
| 1919 |
% different characters to perform this function. Any character |
| 1920 |
% that's chosen could cause problems if it occurs unexpectedly |
| 1921 |
% in the middle of what is supposed to be verbatim text. We call |
| 1922 |
% the current special character for this purpose the "verbchar" |
| 1923 |
% and store it in active form in the token register \@verbchar. |
| 1924 |
|
| 1925 |
\newtoks\@verbchar |
| 1926 |
|
| 1927 |
% On hitting a "verbchar" in the middle of text, TeX must look ahead |
| 1928 |
% to see whether the verbchar occurs again. Since this |
| 1929 |
% look-ahead fixes the category of the token examined, we must change |
| 1930 |
% the categories of all characters appropriately before looking |
| 1931 |
% (and we read \everyverbatim in case it contains a category change). |
| 1932 |
% We must also "gobble" the second verbchar if we hit one. |
| 1933 |
% Depending upon whether 1 or 2 verbchars are found, we call |
| 1934 |
% \verbatim with the appropriate style command. We also use an |
| 1935 |
% optional command to change the delimiter which ends this \verbatim |
| 1936 |
% block. We naturally localize the changes to category codes made on |
| 1937 |
% startup. It's easier to end this group here at the beginning and to |
| 1938 |
% restart everything in a standard \verbatim than it is to add an extra |
| 1939 |
% \endgroup after the verbatim text. |
| 1940 |
|
| 1941 |
\def\@firstverbchar{% |
| 1942 |
\begingroup |
| 1943 |
\setupverbatim |
| 1944 |
% \@SpecialsGetOther |
| 1945 |
\makeverbcharactive |
| 1946 |
\expandafter\@checknexttoken\expandafter{\the\@verbchar}% |
| 1947 |
{\expandafter\@ignoreone\expandafter{\the\@verbchar}% |
| 1948 |
{\endgroup\verbatim[\longform\maketwoendverb]}}% |
| 1949 |
{\endgroup\@verbatim[\inline\longform\makeoneendverb]}% |
| 1950 |
} |
| 1951 |
|
| 1952 |
\def\setupverbchar{% |
| 1953 |
\def\makeoneendverb{\catcode\expandafter`\csname\expandafter |
| 1954 |
\string\the\@verbchar\endcsname= |
| 1955 |
\active\edef\endverbdelimiter{\the\@verbchar}% |
| 1956 |
\enddelim=\expandafter{\endverbdelimiter}}% |
| 1957 |
\def\maketwoendverb{\catcode\expandafter`\csname\expandafter |
| 1958 |
\string\the\@verbchar\endcsname= |
| 1959 |
\active\edef\endverbdelimiter{\the\@verbchar\the\@verbchar}% |
| 1960 |
\enddelim=\expandafter{\endverbdelimiter}}% |
| 1961 |
\expandafter\let\the\@verbchar\@firstverbchar |
| 1962 |
\makeverbcharactive |
| 1963 |
\AddToSpecialsGetOther{% |
| 1964 |
\catcode\expandafter`\csname |
| 1965 |
\expandafter\string\the\@verbchar\endcsname=\other}% |
| 1966 |
} |
| 1967 |
|
| 1968 |
\def\makeverbcharactive{% |
| 1969 |
\catcode\expandafter`\csname |
| 1970 |
\expandafter\string\the\@verbchar\endcsname=\active} |
| 1971 |
|
| 1972 |
{\makeother\| \gdef\VertChar{|}} |
| 1973 |
{\makeactive\| |
| 1974 |
\gdef\makevertverbchar{% |
| 1975 |
\@verbchar={|}% |
| 1976 |
\setupverbchar |
| 1977 |
} |
| 1978 |
} |
| 1979 |
|
| 1980 |
{\makeother\! \gdef\WowChar{!}} |
| 1981 |
{\makeactive\! |
| 1982 |
\gdef\makewowverbchar{% |
| 1983 |
\@verbchar={!}% |
| 1984 |
\setupverbchar |
| 1985 |
} |
| 1986 |
} |
| 1987 |
|
| 1988 |
|
| 1989 |
\def\MTH{$} |
| 1990 |
\def\sb{_} |
| 1991 |
\def\sp{^} |
| 1992 |
\def\SP{{\tt\char"20 }} % "visible" space |
| 1993 |
\chardef\bs=`\\ |
| 1994 |
\def\vrt{{\tt\char`\|}} |
| 1995 |
\def\brokenvert{\hbox to 5.24998pt{\hfill |
| 1996 |
\lower 1.5pt\vbox to 8.5pt{\hrule width .9pt height 3.25pt |
| 1997 |
\vfill\hrule width .9pt height 3.25pt}\hfill}} |
| 1998 |
|
| 1999 |
|
| 2000 |
|
| 2001 |
\def\@lt{$<$} |
| 2002 |
\def\@gt{$>$} |
| 2003 |
{\makeactive\< |
| 2004 |
\gdef\enablemetacode{% |
| 2005 |
\AddToSpecialsGetOther{\catcode`\<=\other}% |
| 2006 |
\makeactive\<% |
| 2007 |
\def<##1>{$\langle${\it\makeCtrlMspace\makespacespace##1\/}$\rangle$}% |
| 2008 |
} |
| 2009 |
} |
| 2010 |
\def\disablemetacode{\makeother\<} |
| 2011 |
|
| 2012 |
%% |
| 2013 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2014 |
% |
| 2015 |
% ***** figures ***** |
| 2016 |
% |
| 2017 |
|
| 2018 |
\newif\if@@mid \@@midfalse |
| 2019 |
\newif\if@@bot \@@botfalse |
| 2020 |
\def\@caption{} |
| 2021 |
\def\abovecaptionskip{\vskip\abovecaptionskipamount} |
| 2022 |
\newskip\abovecaptionskipamount \abovecaptionskipamount=3pt plus2pt minus1pt |
| 2023 |
|
| 2024 |
\newif\if@fixed \@fixedfalse |
| 2025 |
|
| 2026 |
% items for top and bottom ``banners'' on first page |
| 2027 |
\def\resetfirsthead{\global\toplgt=\z@ \gdef\firsthead{}} |
| 2028 |
\resetfirsthead |
| 2029 |
\newbox\firsth@@d \newbox\firsth@ad |
| 2030 |
|
| 2031 |
\def\resetfirstfoot{\global\botlgt=\z@ \gdef\firstfoot{}} |
| 2032 |
\resetfirstfoot |
| 2033 |
\newbox\firstf@@t \newbox\firstf@ot |
| 2034 |
|
| 2035 |
\newif\if@allowspanningfigs |
| 2036 |
|
| 2037 |
\newcount\@figurepage |
| 2038 |
\newcount\@figurescol |
| 2039 |
\newcount\@figureecol |
| 2040 |
|
| 2041 |
|
| 2042 |
\def\figure{% |
| 2043 |
\begingroup |
| 2044 |
\def\CurrentTag{figure}% |
| 2045 |
\@defaultoptions |
| 2046 |
\@savingargumentfalse |
| 2047 |
\def\top{}% |
| 2048 |
\def\bot{\@@bottrue}% |
| 2049 |
\def\mid{\@@midtrue}% |
| 2050 |
\def\caption##1{\def\@caption{{\abovecaptionskip##1\smallskip}}}% |
| 2051 |
\def\fixed{\@fixedtrue}% |
| 2052 |
\def\scol{\@figurescol}% |
| 2053 |
\def\ecol{\@figureecol}% |
| 2054 |
\@figurepage=\pageno |
| 2055 |
\@figurescol=1 |
| 2056 |
\@figureecol=\numcols |
| 2057 |
\def\page{% |
| 2058 |
\@ignoreall{\space}% |
| 2059 |
{\@ignoreone{=}% |
| 2060 |
{\@ignoreall{\space}% |
| 2061 |
{\@checknexttoken{+}{\@ignoreone{+}{\advance\@figurepage by}}% |
| 2062 |
{\@figurepage=}% |
| 2063 |
}% |
| 2064 |
}% |
| 2065 |
}% |
| 2066 |
}% |
| 2067 |
\@checkoptions} |
| 2068 |
|
| 2069 |
\def\@beginfigure{% |
| 2070 |
\if@fixed |
| 2071 |
\global\ThisIsFirstPagetrue |
| 2072 |
\setbox\T@stBox=\vbox\bgroup \hsize\pagewd |
| 2073 |
\else |
| 2074 |
\if@@mid\midinsert\else\if@@bot\botinsert\else\topinsert\fi\fi |
| 2075 |
\fi |
| 2076 |
} |
| 2077 |
|
| 2078 |
\def\endfigure{% |
| 2079 |
\@caption |
| 2080 |
\if@fixed |
| 2081 |
\egroup |
| 2082 |
\if@allowspanningfigs |
| 2083 |
\ifnum\@figurepage>\pageno |
| 2084 |
\immediate\write\sixt@@n{^^J |
| 2085 |
Setting multiple column figures currently not allowed on pages^^J |
| 2086 |
other than the first of each article. Check your source file.^^J}% |
| 2087 |
\else |
| 2088 |
\if@@bot |
| 2089 |
\ifdim \botlgt=\z@ \global\botlgt=\ht\T@stBox \resetpagelgt \fi |
| 2090 |
\global\setbox\firstf@ot=\vbox to \botlgt{\box\T@stBox \vfil}% |
| 2091 |
\global\setbox\firstf@@t=\vbox to \botlgt{\vfil}% |
| 2092 |
\gdef\firstfoot{\ifnum \xcol=2 \copy\firstf@ot |
| 2093 |
\else \copy\firstf@@t \fi }% |
| 2094 |
\else |
| 2095 |
\ifdim \toplgt=\z@ \global\toplgt=\ht\T@stBox \resetpagelgt \fi |
| 2096 |
% assume that \firsth@ad ends with glue, hence no \dp |
| 2097 |
\global\setbox\firsth@ad=\vbox to \toplgt{\box\T@stBox \vfil}% |
| 2098 |
\global\setbox\firsth@@d=\vbox to \toplgt{\vfil}% |
| 2099 |
\gdef\firsthead{\ifnum \xcol=2 \box\firsth@ad |
| 2100 |
\else \copy\firsth@@d \fi }% |
| 2101 |
\fi |
| 2102 |
\fi |
| 2103 |
\else |
| 2104 |
\immediate\write\sixt@@n{^^J |
| 2105 |
Setting multiple column figures currently not allowed after^^J |
| 2106 |
article has begun.^^J}% |
| 2107 |
\fi |
| 2108 |
\else \endinsert |
| 2109 |
\fi |
| 2110 |
\endgroup |
| 2111 |
} |
| 2112 |
|
| 2113 |
\def\twocolfigure{% |
| 2114 |
\figure[\fixed]} |
| 2115 |
|
| 2116 |
%% |
| 2117 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2118 |
% |
| 2119 |
% ***** utilities ***** |
| 2120 |
% |
| 2121 |
|
| 2122 |
\def\linebreak{\unskip\break} % conflicts with LaTeX definition |
| 2123 |
|
| 2124 |
% Define a structure that will permit a list (using \obeylines) |
| 2125 |
% to be made into 2 columns, split by \vsplit, indented the |
| 2126 |
% normal \parindent |
| 2127 |
|
| 2128 |
\def\NormalizeBlockHeight{% |
| 2129 |
\TestCount=1 % \@ne |
| 2130 |
\TestDimen=\dimen0 \advance\TestDimen by-\topskip |
| 2131 |
\CutOneLine } |
| 2132 |
\def\CutOneLine{% |
| 2133 |
\advance\TestCount by 1 \advance\TestDimen by-\baselineskip |
| 2134 |
\ifdim\TestDimen < \baselineskip % \@ne |
| 2135 |
\def\result{% |
| 2136 |
\TestDimen=\baselineskip |
| 2137 |
\multiply\TestDimen by \TestCount |
| 2138 |
\advance\TestDimen by \topskip |
| 2139 |
\global\dimen0=\TestDimen }% |
| 2140 |
\else \def\result{\CutOneLine }\fi |
| 2141 |
\result } |
| 2142 |
|
| 2143 |
\def\twosplit{% |
| 2144 |
{\topskip=\baselineskip \splittopskip=\topskip |
| 2145 |
\setbox0=\copy\TestBox |
| 2146 |
\dimen0=\ht\TestBox |
| 2147 |
\NormalizeBlockHeight |
| 2148 |
\divide\dimen0 by 2 |
| 2149 |
\setbox\LeftHalf=\vsplit\TestBox to \dimen0 |
| 2150 |
\ifdim\ht\TestBox > \ht\LeftHalf |
| 2151 |
\advance\dimen0 by \baselineskip |
| 2152 |
\setbox\TestBox=\copy0 |
| 2153 |
\setbox\LeftHalf=\vsplit\TestBox to \dimen0 |
| 2154 |
\fi |
| 2155 |
\line{\kern\parindent\valign{##\vfil\cr |
| 2156 |
\unvbox\LeftHalf\cr\noalign{\hfil}\unvbox\TestBox\cr}}% |
| 2157 |
}% |
| 2158 |
\global\setbox0=\null} |
| 2159 |
|
| 2160 |
\newbox\LeftHalf |
| 2161 |
\newdimen\HalfWd |
| 2162 |
\HalfWd=\twocolcolwd |
| 2163 |
\advance\HalfWd by-\normalparindent |
| 2164 |
\divide\HalfWd by 2 |
| 2165 |
|
| 2166 |
{\obeylines |
| 2167 |
\gdef\twouplist #1{% |
| 2168 |
\topskip=\baselineskip \splittopskip=\topskip |
| 2169 |
\begingroup \parindent=\z@ \obeylines |
| 2170 |
% next line ends with intentional <cr> |
| 2171 |
\def\endtwouplist{ |
| 2172 |
\egroup % % end of \vbox |
| 2173 |
\endgroup % % end of \obeylines group |
| 2174 |
\twosplit }% |
| 2175 |
\global\setbox\TestBox=\vbox\bgroup\hsize=\HalfWd % |
| 2176 |
\indent\vrule height\topskip width \z@ #1}% |
| 2177 |
} |
| 2178 |
|
| 2179 |
% Tags for special formatting of editor's notes (See also TUGBOAT.COM) |
| 2180 |
|
| 2181 |
\def\Editor{\noindent To the Editor:\par} |
| 2182 |
\def\EdNote #1{% |
| 2183 |
\if #1[% |
| 2184 |
\ifvmode \smallskip\noindent \else \unskip\hskip1em \fi |
| 2185 |
[\thinspace\xEdNote\ignorespaces |
| 2186 |
\else \ifFirstPar \else \medskip\noindent \fi |
| 2187 |
\xEdNote #1\fi } |
| 2188 |
|
| 2189 |
|
| 2190 |
|
| 2191 |
% Draw a box around a whole page, e.g. announcements page; |
| 2192 |
% format must be \onenarrow or \onemedium, and start on a new page. |
| 2193 |
|
| 2194 |
\def\bigbox{\hrule \hbox\bgroup \vrule\kern 1pc |
| 2195 |
\vbox\bgroup \vskip 1pc } |
| 2196 |
\def\endbox{\endgraf \vskip 1pc \egroup \kern 1pc\vrule \egroup \hrule } |
| 2197 |
|
| 2198 |
%% |
| 2199 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2200 |
% |
| 2201 |
% ***** initialization ***** |
| 2202 |
% |
| 2203 |
|
| 2204 |
\def\initializearticle{% |
| 2205 |
\let\thetitle=\relax |
| 2206 |
\authornumber=0 |
| 2207 |
\def\@signature{\@defaultsignature}% |
| 2208 |
\def\@authorlist{\@defaultauthorlist}% |
| 2209 |
\@allowspanningfigstrue |
| 2210 |
} |
| 2211 |
|
| 2212 |
|
| 2213 |
\makeother\@ |
| 2214 |
|
| 2215 |
% @ is prohibited in AMS-TeX, but should not be in TUGboat |
| 2216 |
|
| 2217 |
|
| 2218 |
\twocol |
| 2219 |
\maxcols=2 |
| 2220 |
\hfuzz=1pt % don't worry about small overfulls |
| 2221 |
\OverlaysinTeXtrue |
| 2222 |
\Trimmarksfalse |
| 2223 |
\PrelimDrafttrue |
| 2224 |
\initializearticle |
| 2225 |
\pageno=901 % number of title page |
| 2226 |
|
| 2227 |
% Stretchy spacing was the default for many years, but in 2012 it |
| 2228 |
% looked too stretchy. Comment out. |
| 2229 |
%\StretchyTenPointSpacing |
| 2230 |
%\StretchyNinePointSpacing |
| 2231 |
%\StretchyEightPointSpacing |
| 2232 |
|
| 2233 |
\makevertverbchar |
| 2234 |
|
| 2235 |
\endinput |
| 2236 |
|
| 2237 |
%% |
| 2238 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2239 |
% |
| 2240 |
% History of changes |
| 2241 |
|
| 2242 |
Version Date Changes |
| 2243 |
------- --------- --------------------------------------------------- |
| 2244 |
1.32 16 Jun 25 \disablemetacode: define. |
| 2245 |
|
| 2246 |
1.31 26 Oct 24 \thedoi: use \tbissident. |
| 2247 |
\endarticle: avoid empty last page, also for |
| 2248 |
tb139wermuth-isdim. |
| 2249 |
|
| 2250 |
1.30 15 Apr 24 implement \iftubsecondcolstart for tb139wermuth-isdim. |
| 2251 |
|
| 2252 |
1.29 28 Oct 23 introduce \abovecaptionskipamount, reduce to \smallskip |
| 2253 |
a la ltugboat. |
| 2254 |
|
| 2255 |
1.28 11 Jun 23 \tenpoint in footer, not just \tenrm. |
| 2256 |
|
| 2257 |
1.27 19 May 22 \tbhurl belatedly defined. |
| 2258 |
|
| 2259 |
1.26 12 Mar 22 DOI support; define \@, \OpTeX; reduce \ttrightskip; |
| 2260 |
author separator always comma, no "and"; |
| 2261 |
support \acro in all point sizes and all font variants; |
| 2262 |
macro cleanups. |
| 2263 |
|
| 2264 |
1.25 12 Jun 19 \tenpoint \rm: reset \sl to \tensl, |
| 2265 |
since the \tenpoint \bf changes it to \tenbfsl. |
| 2266 |
|
| 2267 |
1.24 5 Sep 18 only version number bump to match tugboat.cmn. |
| 2268 |
|
| 2269 |
1.23 19 Mar 17 define \manual and \manualsl in each of \tenpoint, |
| 2270 |
\ninepoint, \eightpoint; define \SMC in \eightpoint. |
| 2271 |
|
| 2272 |
1.22 7 Nov 16 \smallcode: do not reduce baselineskip. |
| 2273 |
\abovecaptionskip: generalize \bigskip; no change |
| 2274 |
to default. |
| 2275 |
\pageno: start at 901 to make LaTeX. |
| 2276 |
\hfuzz: initialize to 1pt to match existing practice. |
| 2277 |
|
| 2278 |
1.21 <skipped this version number> |
| 2279 |
|
| 2280 |
1.20 22 May 12 Do not hyphenate in typewriter. |
| 2281 |
Add footnote hooks. |
| 2282 |
No \Stretchy*Spacing by default. |
| 2283 |
\smallcode for verbatim displays (not inline) |
| 2284 |
via \smallverbdisplay. |
| 2285 |
|
| 2286 |
1.19 4 Mar 11 added \r |
| 2287 |
|
| 2288 |
1.18 4 Feb 11 changed \rfoot to give same results as LaTeX class |
| 2289 |
|
| 2290 |
1.17 3 Jun 06 clarified copyright. |
| 2291 |
|
| 2292 |
1.16 2 Jan 06 updated TUG address and phone in header |
| 2293 |
|
| 2294 |
1.15 15 Aug 05 added switch \if@address to avoid skip in signature |
| 2295 |
|
| 2296 |
1.14c 14 Oct 96 lowered footnoterule by 3pt |
| 2297 |
|
| 2298 |
1.14b 14 Apr 94 added \interlinepenalty=10000 to avoid page breaks |
| 2299 |
in very long titles and author lists |
| 2300 |
|
| 2301 |
1.14a 8 Nov 93 removed extraneous " from header |
| 2302 |
|
| 2303 |
1.14 19 Feb 93 installed new TUG address and phone number in header |
| 2304 |
|
| 2305 |
1.13 13 Oct 92 Added \SMC in \ninepoint |
| 2306 |
|
| 2307 |
1.12 4 Jun 92 Added stretchability to \rightskip in ragged title |
| 2308 |
|
| 2309 |
1.11 8 Mar 92 Changed name of tugboat.com to tugboat.cmn to avoid |
| 2310 |
conflict with special meaning of .com with some |
| 2311 |
operating systems |
| 2312 |
Within verbatim, added \smallcode (from tugproc) |
| 2313 |
Added standard headers, prepared for archive installation |
| 2314 |
|
| 2315 |
1.10 21 Oct 91 Corrected font for \SMC in \tenpoint to \ninerm |
| 2316 |
(\ninesmc was used, but set to cmcsc10) |
| 2317 |
Changed \EdNote to detect \ifvmode when tag followed |
| 2318 |
by [ and to \smallskip and \noindent in that case |
| 2319 |
rather than performing \hskip1em |
| 2320 |
|
| 2321 |
1.09 11 Mar 91 Made \ an escape character in network addresses. |
| 2322 |
Added mechanism for saving \long arguments of |
| 2323 |
TUGboat macros (see uses of \@long). |
| 2324 |
|
| 2325 |
1.08 18 Oct 90 Incorporated redefinition of \sl within \bf |
| 2326 |
Changed an \input within \verbatim to \fileinput. |
| 2327 |
Added means of turning off punctuation after subheads. |
| 2328 |
Removed \nobreak after lists |
| 2329 |
1.07 8 Jun 90 Corrected definition of \newpage |
| 2330 |
|
| 2331 |
1.06 13 May 90 Added \@setupverbwrite to eliminate initial ^^M |
| 2332 |
as \verbatim writes to a file. |
| 2333 |
|
| 2334 |
Made strut on first line of footnote slightly taller |
| 2335 |
so as to separate footnotes. |
| 2336 |
|
| 2337 |
Reset \@verbinputfile and \@verbinputvar to \relax |
| 2338 |
to allow nesting |
| 2339 |
|
| 2340 |
Removed some \global assignments to \@argument and |
| 2341 |
2 verbatim flags to allow nesting. |
| 2342 |
|
| 2343 |
1.05 23 Apr 90 Added "\setupverbatim" to \@firstverbchar so |
| 2344 |
that category switches are accomodated properly. |
| 2345 |
|
| 2346 |
1.04 7 Mar 90 Added \colsepwidth to allow for separation between |
| 2347 |
columns of lists |
| 2348 |
|
| 2349 |
1.03 1 Mar 90 Modified \@dosubhead and \@dosubsubhead to allow |
| 2350 |
stretchable space afterward |
| 2351 |
|
| 2352 |
1.02 25 Feb 90 Added \resetmaxcols to allow for automatic adjustment |
| 2353 |
of \maxcols; if overlays are done by the driver, |
| 2354 |
\maxcols needs to be set to an overall job maximum |
| 2355 |
at the start of the job. |
| 2356 |
|
| 2357 |
Added setting of \SecTitletrue to definition |
| 2358 |
of \sectitle. |
| 2359 |
|
| 2360 |
Added indicator of style file loaded (\tubstyle). |
| 2361 |
|
| 2362 |
1.01 17 Jan 90 Modified \@executetoend so that \@next would not |
| 2363 |
be clobbered by \csname @begin\CurrentTag\endcsname; |
| 2364 |
\@next changed to \@afterbegintag |
| 2365 |
|
| 2366 |
Added `\the' before \@otherSFD within definition of |
| 2367 |
\@shortparse |
| 2368 |
|
| 2369 |
added \@altdisplaystyle to definition of \colsep |