| 1 |
%% @latexfile{ |
| 2 |
%% filename="ltugboat.sty", |
| 3 |
%% version="1.19", |
| 4 |
%% date="16-Nov-1993", |
| 5 |
%% filetype="LaTeX macros for TUGboat", |
| 6 |
%% copyright="Copyright (C) TeX Users Group. |
| 7 |
%% Copying of this file is authorized only if either: |
| 8 |
%% (1) you make absolutely no changes to your copy, OR |
| 9 |
%% (2) if you do make changes, you first rename it to some |
| 10 |
%% other name.", |
| 11 |
%% author="TeX Users Group", |
| 12 |
%% address="TeX Users Group, |
| 13 |
%% P. O. Box 869, |
| 14 |
%% Santa Barbara, CA 93102, |
| 15 |
%% USA", |
| 16 |
%% telephone="805-963-1338", |
| 17 |
%% email="Internet: [email protected]", |
| 18 |
%% codetable="ISO/ASCII", |
| 19 |
%% checksumtype="line count", |
| 20 |
%% checksum="718", |
| 21 |
%% keywords="tex users group, tugboat, latex", |
| 22 |
%% abstract="This file contains the LaTeX-based macros |
| 23 |
%% for preparation of TUGboat, the Communications |
| 24 |
%% of the TeX Users Group." |
| 25 |
%% } |
| 26 |
%% ********************************************************* |
| 27 |
%% |
| 28 |
%% Use of this file also requires the following files: |
| 29 |
%% ARTICLE.STY |
| 30 |
%% ART10.STY |
| 31 |
%% TUGBOAT.CMN (version 1.08+) |
| 32 |
%% |
| 33 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 34 |
|
| 35 |
\def\thistubstyle{latex} |
| 36 |
\def\fileversion{v1.19} |
| 37 |
\def\filedate{16 November 93} |
| 38 |
|
| 39 |
% Change history at bottom of file |
| 40 |
% ***** LTUGBOAT.STY ***** |
| 41 |
% |
| 42 |
% |
| 43 |
% Incorporates ideas and elements from these TUGboat authors: |
| 44 |
% Adrian Clark |
| 45 |
% Frank Mittelbach |
| 46 |
% Rainer Sch\"opf |
| 47 |
|
| 48 |
% Stop here if this file has been read already |
| 49 |
|
| 50 |
\ifx\tugstyloaded@\thistubstyle \tugstyinit |
| 51 |
\endinput\else\let\tugstyloaded@\thistubstyle\fi |
| 52 |
|
| 53 |
\typeout{Document Style `ltugboat' \fileversion \space\space <\filedate>} |
| 54 |
|
| 55 |
% ********************************************************************** |
| 56 |
% |
| 57 |
% Load macros required by this style, but only if it wasn't done already |
| 58 |
|
| 59 |
\ifx\c@section\undefined \input article.sty \fi |
| 60 |
|
| 61 |
% Macros common to ltugboat.sty and tugboat.sty |
| 62 |
|
| 63 |
\input tugboat.cmn |
| 64 |
|
| 65 |
|
| 66 |
% *********************************************************************** |
| 67 |
% |
| 68 |
% Fonts |
| 69 |
|
| 70 |
|
| 71 |
% install additional fonts as appropriate for plain/old LaTeX or NFSS: |
| 72 |
% provide definition of \tensl if NFSS is loaded |
| 73 |
|
| 74 |
\ifx\selectfont\undefined % old LaTeX |
| 75 |
\font\sevbf=cmbx7 |
| 76 |
\font \svtnsfb=cmssbx10 scaled \magstep3 % for section titles; |
| 77 |
% |
| 78 |
\font \twlsfb=cmssbx10 scaled \magstep1 % definition of \LaTeX |
| 79 |
\newfam\sectitlefam % requires a family |
| 80 |
\textfont\sectitlefam=\svtnsfb |
| 81 |
\scriptfont\sectitlefam=\twlsfb |
| 82 |
\def\sectitlefont{\fam\sectitlefam\svtnsfb\baselineskip\stbaselineskip} |
| 83 |
% |
| 84 |
\font\egtsl=cmsl8 |
| 85 |
\font\tenuit=cmu10 % for Editor's Note |
| 86 |
% |
| 87 |
% redo definition of 10pt from latex (lfonts), to install \sevbf as |
| 88 |
% \*scriptfont of \bffam and \egtsl in \slfam |
| 89 |
% \*scriptfont of \bffam for 9pt |
| 90 |
\toks0=\expandafter{\xpt\scriptfont\bffam\sevbf \scriptscriptfont\bffam\sevbf |
| 91 |
\scriptfont\slfam\egtsl \scriptscriptfont\slfam\egtsl} |
| 92 |
\xdef\xpt{\the\toks0} |
| 93 |
\toks0=\expandafter{\ixpt\scriptfont\bffam\sevbf |
| 94 |
\scriptscriptfont\bffam\sevbf} |
| 95 |
\xdef\ixpt{\the\toks0} |
| 96 |
\else % NFSS in effect |
| 97 |
% for section titles; include explicit definition of \La (for \LaTeX) |
| 98 |
\def\sectitlefont{\def\La{\leavevmode L\raise.42ex |
| 99 |
\hbox{\fontsize{12}{12pt}\selectfont\kern-.4em A}}% |
| 100 |
\fontfamily{cmss}\fontseries{bx}\fontshape{n}% |
| 101 |
\fontsize{17}{\stbaselineskip}\selectfont} |
| 102 |
\def\tensl{\fontfamily{cmr}\fontseries{m}\fontshape{sl}\fontsize{10}{12pt}% |
| 103 |
\selectfont} |
| 104 |
\def\tubfont{\shape{sl}\selectfont} |
| 105 |
\def\tenuit{\fontfamily{cmr}\fontseries{m}\fontshape{u}\fontsize{10}{12pt}% |
| 106 |
\selectfont} |
| 107 |
\fi |
| 108 |
|
| 109 |
% *********************************************************************** |
| 110 |
% |
| 111 |
% normal TUGboat dimensions, glue values, penalties |
| 112 |
|
| 113 |
\@twosidetrue % for odd/even asymmetry in running heads |
| 114 |
\twocolumn % two columns |
| 115 |
\sloppy % make those columns justify |
| 116 |
%\flushbottom % but ensure they line up |
| 117 |
\columnsep 1.5pc % space between columns |
| 118 |
\columnwidth 18.75pc % width of each column |
| 119 |
\parindent \normalparindent % paragraph indent |
| 120 |
\parskip 0pt % no inter-paragraph space |
| 121 |
\leftmargini 2em % unchanged |
| 122 |
\leftmarginv .5em % unchanged |
| 123 |
\leftmarginvi .5em % unchanged |
| 124 |
\oddsidemargin 0pt % was 42pt |
| 125 |
\evensidemargin 0pt % was 84pt |
| 126 |
\topmargin -2.5pc % was 0pt |
| 127 |
\headheight 12pt % height of running head, unchanged |
| 128 |
\headsep 20pt % distance between header and text |
| 129 |
\marginparwidth 48pt % don't use marginal notes |
| 130 |
\marginparsep 10pt % in TUGboat |
| 131 |
\textheight 54pc % height of text on page |
| 132 |
\textwidth 39pc % total width of a page |
| 133 |
|
| 134 |
|
| 135 |
\partopsep=\z@ |
| 136 |
\topsep=3pt plus1pt minus1pt |
| 137 |
\parsep=3pt plus 1pt minus 1pt |
| 138 |
\itemsep=\parsep |
| 139 |
|
| 140 |
|
| 141 |
\def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt |
| 142 |
\abovedisplayskip=3pt plus 3pt minus 1pt \belowdisplayskip=\abovedisplayskip |
| 143 |
\abovedisplayshortskip=\z@ plus3pt \belowdisplayshortskip=1pt plus3pt minus1pt} |
| 144 |
|
| 145 |
\def\small{\@setsize\small{11pt}\ixpt\@ixpt |
| 146 |
\abovedisplayskip=2.5pt plus2.5pt minus1pt\belowdisplayskip=\abovedisplayskip |
| 147 |
\abovedisplayshortskip=\z@ plus2pt \belowdisplayshortskip=1pt plus2pt minus1pt} |
| 148 |
|
| 149 |
\def\SMC{\small} |
| 150 |
|
| 151 |
\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt |
| 152 |
\abovedisplayskip=3pt plus 3pt minus 1pt \belowdisplayskip=\abovedisplayskip |
| 153 |
\abovedisplayshortskip=\z@ plus3pt \belowdisplayshortskip=1pt plus3pt minus1pt} |
| 154 |
|
| 155 |
|
| 156 |
% *********************************************************************** |
| 157 |
% |
| 158 |
% Lists |
| 159 |
|
| 160 |
\def\@listi{\leftmargin\leftmargini\parsep=1pt plus 1pt minus 1pt |
| 161 |
\itemsep=\parsep |
| 162 |
\listparindent=1em |
| 163 |
} |
| 164 |
|
| 165 |
\def\@listii{\leftmargin\leftmarginii |
| 166 |
\labelwidth=\leftmarginii \advance\labelwidth-\labelsep |
| 167 |
\topsep=2pt plus 1pt minus 1pt |
| 168 |
\parsep=1pt plus 1pt minus 1pt |
| 169 |
\itemsep=\parsep |
| 170 |
\listparindent=1em |
| 171 |
} |
| 172 |
|
| 173 |
\def\@listiii{\leftmargin=\leftmarginiii |
| 174 |
\labelwidth=\leftmarginiii \advance\labelwidth-\labelsep |
| 175 |
\topsep=1pt plus 1pt minus 1pt |
| 176 |
\parsep=\z@ |
| 177 |
\itemsep=\topsep |
| 178 |
\listparindent=1em |
| 179 |
} |
| 180 |
|
| 181 |
|
| 182 |
% *********************************************************************** |
| 183 |
% |
| 184 |
% Titles, authors, addresses, signatures |
| 185 |
|
| 186 |
\setbox\T@stBox=\hbox{\sectitlefont O} |
| 187 |
\newdimen\stfontheight \stfontheight=\ht\T@stBox |
| 188 |
\def \sectitle#1{\SecTitletrue \def\s@ctitle{#1}} |
| 189 |
|
| 190 |
\newcount\authornumber |
| 191 |
\authornumber=0 |
| 192 |
|
| 193 |
\def\author#1{% |
| 194 |
\global\advance\authornumber\@ne |
| 195 |
\expandafter\def\csname theauthor\number\authornumber\endcsname |
| 196 |
{\ignorespaces#1\unskip}% |
| 197 |
\expandafter\let\csname theaddress\number\authornumber\endcsname\relax |
| 198 |
\expandafter\let\csname thenetaddress\number\authornumber\endcsname\relax |
| 199 |
} |
| 200 |
|
| 201 |
\def\address#1{% |
| 202 |
\expandafter\def\csname theaddress\number\authornumber\endcsname |
| 203 |
{\ignorespaces#1\unskip}} |
| 204 |
|
| 205 |
\def\network#1{\def\@network{#1: }} |
| 206 |
\def\netaddress{% |
| 207 |
\begingroup |
| 208 |
\let\@network\relax |
| 209 |
\@ifnextchar[{\@netaddress}{\@netaddress[]}% |
| 210 |
} |
| 211 |
|
| 212 |
{\makeactive\@ |
| 213 |
\gdef\netaddrat{\makeactive\@\def@{\char"40\discretionary{}{}{}}} |
| 214 |
\makeactive\% |
| 215 |
\gdef\netaddrpercent{\makeactive\%\def%{\char"25\discretionary{}{}{}}} |
| 216 |
} |
| 217 |
|
| 218 |
\def\@netaddress[#1]{#1\@sanitize\makespace\ \makeactive\@\makeactive\%% |
| 219 |
\@@netaddress} |
| 220 |
|
| 221 |
\def\@@netaddress#1{% |
| 222 |
\toks@{#1}% |
| 223 |
\ifx\@network\relax \def\@@network{}% |
| 224 |
\else \def\@@network{\@network}\fi |
| 225 |
\expandafter\xdef\csname thenetaddress\number\authornumber\endcsname |
| 226 |
{{\noexpand\rm\@@network}% |
| 227 |
{\noexpand\netaddrat\noexpand\netaddrpercent\noexpand\net |
| 228 |
\ignorespaces\the\toks@\unskip}}% |
| 229 |
\endgroup |
| 230 |
} |
| 231 |
|
| 232 |
\def\net{\tt} |
| 233 |
|
| 234 |
% Overrides to default author and signature formats |
| 235 |
|
| 236 |
\def\authorlist#1{\def\@author{#1}} |
| 237 |
\def\@author{\@defaultauthorlist} |
| 238 |
|
| 239 |
|
| 240 |
\def\maketitle{\par |
| 241 |
\ifdim\PreTitleDrop > 0pt |
| 242 |
\loop |
| 243 |
\ifdim \PreTitleDrop > \textheight |
| 244 |
\vbox{}\vfil\eject |
| 245 |
\advance\PreTitleDrop by -\textheight |
| 246 |
\repeat |
| 247 |
\vbox to \PreTitleDrop{} |
| 248 |
\global\PreTitleDrop=0pt |
| 249 |
\fi |
| 250 |
\begingroup |
| 251 |
\setcounter{footnote}{0} |
| 252 |
\def\thefootnote{\fnsymbol{footnote}} |
| 253 |
% \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} |
| 254 |
\@maketitle |
| 255 |
\@thanks |
| 256 |
\endgroup |
| 257 |
\setcounter{footnote}{0} |
| 258 |
% \let\maketitle\relax |
| 259 |
% \let\@maketitle\relax |
| 260 |
\gdef\@thanks{}%\gdef\@author{}\gdef\@title{}% |
| 261 |
%\let\thanks\relax |
| 262 |
} |
| 263 |
|
| 264 |
\newif\ifWideSecTitle |
| 265 |
\def\@maketitle{\ifSecTitle \global\SecTitlefalse |
| 266 |
\T@stDimen=\hsize |
| 267 |
\ifWideSecTitle \hsize=\textwidth \global\WideSecTitlefalse \fi |
| 268 |
\@sectitle{\s@ctitle}% |
| 269 |
\hsize=\T@stDimen |
| 270 |
\else \vskip\AboveTitleSkip |
| 271 |
\kern\topskip |
| 272 |
\hrule height\z@ depth\z@ width 10pt |
| 273 |
\kern-\topskip |
| 274 |
\kern-\strulethickness |
| 275 |
\hrule height\strulethickness depth\z@ |
| 276 |
\kern\medskipamount |
| 277 |
\nobreak |
| 278 |
\fi |
| 279 |
{\nohyphens \interlinepenalty\@M |
| 280 |
\setbox0= |
| 281 |
\hbox{\let\thanks\@gobble |
| 282 |
\let\\=\quad |
| 283 |
\let\and=\quad |
| 284 |
\ignorespaces\@author}% |
| 285 |
{\noindent\bf\raggedright\ignorespaces\@title\endgraf}% |
| 286 |
\ifdim \wd0 < 5pt % omit if author is null |
| 287 |
\else \nobreak \vskip 4pt % 4pt + \BelowTitleSkip = \baselineskip |
| 288 |
{\leftskip=\normalparindent |
| 289 |
\raggedright |
| 290 |
\def\and{\unskip\\}% |
| 291 |
\noindent\@author\endgraf}% |
| 292 |
\fi \nobreak \vskip\BelowTitleSkip }} |
| 293 |
|
| 294 |
\def\dedication{\bgroup\raggedright\let\MF=\slMF\noindent\it\ignorespaces} |
| 295 |
\def\enddedication{\endgraf\egroup\medskip} |
| 296 |
|
| 297 |
\def\abstract{ |
| 298 |
\section*{Abstract} |
| 299 |
} |
| 300 |
\def\endabstract{} |
| 301 |
|
| 302 |
\def\longabstract{ |
| 303 |
\section*{Abstract} |
| 304 |
\bgroup\small} |
| 305 |
\def\endlongabstract{\endgraf\egroup |
| 306 |
\vspace{.25\baselineskip} |
| 307 |
\begin{center} |
| 308 |
{$--*--$} |
| 309 |
\end{center} |
| 310 |
\vspace{.5\baselineskip}} |
| 311 |
|
| 312 |
% Redefine style of section headings to look more like TUGboat. |
| 313 |
% Start with definitions from art10.sty . (Only \section correct so far.) |
| 314 |
% |
| 315 |
% \vskip 8pt \vskip\parskip before; \vskip 4pt after |
| 316 |
% Negative beforeskip suppresses following parindent. |
| 317 |
|
| 318 |
\def\section{\@startsection {section}{1}{\z@}{-8pt}{4pt}% |
| 319 |
{\normalsize\bf\raggedright\hyphenpenalty=\@M}} |
| 320 |
|
| 321 |
\def\subsection{\@startsection{subsection}{2}{\z@}{-8pt}{4pt}% |
| 322 |
{\normalsize\bf\raggedright\hyphenpenalty=\@M}} |
| 323 |
|
| 324 |
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-8pt}{4pt}% |
| 325 |
{\normalsize\bf\raggedright\hyphenpenalty=\@M}} |
| 326 |
|
| 327 |
\def\paragraph{\@startsection |
| 328 |
% {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}} |
| 329 |
{paragraph}{4}{\z@}{2.5ex plus 1ex}{-1em}{\normalsize\bf}} |
| 330 |
|
| 331 |
\def\subparagraph{\@startsection |
| 332 |
{subparagraph}{4}{\parindent}{2.5ex plus 1ex}{-1em}{\normalsize\bf}} |
| 333 |
|
| 334 |
% Modify \appendix from art10.sty, to add ``Appendix'' |
| 335 |
% 1 May 89 Mittelach comments that we need to put ``Appendix'' |
| 336 |
% somewhere other than \thesection if \tableofcontents is used. |
| 337 |
%\def\appendix{\par |
| 338 |
% \setcounter{section}{0} |
| 339 |
% \setcounter{subsection}{0} |
| 340 |
% \def\thesection{Appendix \Alph{section}}} |
| 341 |
|
| 342 |
|
| 343 |
\def \EdNote{{\tenuit Editor's note:\enspace }} |
| 344 |
|
| 345 |
|
| 346 |
% *********************************************************************** |
| 347 |
% |
| 348 |
% Tables of contents |
| 349 |
|
| 350 |
% The original versions of the table of contents entries justify long |
| 351 |
% headings, which gives spaced out text which looks awful. We change |
| 352 |
% this to typeset headings \raggedright instead. We also use lightface |
| 353 |
% rather than bold, and decrease the skip between entries, since |
| 354 |
% TUGboat contents lists usually don't go to levels below \section. |
| 355 |
% |
| 356 |
% Modifications mainly by Nelson Beebe, with indentation to make macros |
| 357 |
% more readable. |
| 358 |
|
| 359 |
% \l@section{TOC-ENTRY}{PAGE-NUMBER} |
| 360 |
|
| 361 |
\def\l@section#1#2{% |
| 362 |
\addpenalty{\@secpenalty}% |
| 363 |
\addvspace{.1em plus 1pt}% |
| 364 |
\@tempdima 1.5em |
| 365 |
\begingroup |
| 366 |
\parindent \z@ |
| 367 |
\rightskip \z@ % article style makes \rightskip > 0 |
| 368 |
\parfillskip \z@ |
| 369 |
\advance\leftskip\@tempdima% indent text by width of \numberline |
| 370 |
\hskip -\leftskip % move left for section number on first line |
| 371 |
\raggedright % NEW: no flushright text in tocs |
| 372 |
#1% toc-entry text |
| 373 |
\unskip % NEW: discard intervening space |
| 374 |
\nobreak |
| 375 |
\hfill % was \hfil, but need stronger version |
| 376 |
\nobreak |
| 377 |
\hbox to \@pnumwidth {\hss #2}% page number |
| 378 |
\par |
| 379 |
\endgroup |
| 380 |
} |
| 381 |
|
| 382 |
%% OLD: \def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}} |
| 383 |
\def\l@figure{\@dottedtocline{1}{0em}{1.5em}} |
| 384 |
\let\l@table=\l@figure |
| 385 |
% |
| 386 |
%% Increase \@pnumwidth by 0.45em (4.5pt) to avoid overfull box |
| 387 |
%% from bad default setting. |
| 388 |
%% OLD: \def\@pnumwidth{1.55em} |
| 389 |
\def\@pnumwidth{2em} |
| 390 |
% |
| 391 |
%% Modification of \@dottedtocline from latex.tex to produce ragged right |
| 392 |
%% entries instead of very spaced out entries. |
| 393 |
\def\@dottedtocline#1#2#3#4#5{% |
| 394 |
\ifnum #1>\c@tocdepth |
| 395 |
\else |
| 396 |
\vskip \z@ plus .2pt |
| 397 |
{% |
| 398 |
\leftskip #2\relax |
| 399 |
\rightskip \@tocrmarg |
| 400 |
\parfillskip -\rightskip |
| 401 |
\parindent #2\relax |
| 402 |
\@afterindenttrue |
| 403 |
\interlinepenalty\@M |
| 404 |
\leavevmode |
| 405 |
\@tempdima #3\relax % tempdima := NUMWIDTH |
| 406 |
\advance\leftskip \@tempdima % leftskip := INDENT + NUMWIDTH |
| 407 |
\hbox{}% |
| 408 |
\hskip -\leftskip |
| 409 |
{% |
| 410 |
\raggedright |
| 411 |
#4 |
| 412 |
\unskip |
| 413 |
\nobreak |
| 414 |
\hfill |
| 415 |
\nobreak |
| 416 |
\hbox to\@pnumwidth{\hfil\rm #5}% |
| 417 |
\par |
| 418 |
}% |
| 419 |
\par |
| 420 |
}% |
| 421 |
\fi |
| 422 |
} |
| 423 |
|
| 424 |
|
| 425 |
% *********************************************************************** |
| 426 |
% |
| 427 |
% Footnotes |
| 428 |
|
| 429 |
\long\def\@makefntext#1{\parindent 1em\noindent\hbox to 2em{}% |
| 430 |
\llap{\@makefnmark}\null$\mskip5mu$#1} |
| 431 |
% \llap{$^{\@thefnmark}\,$}#1} |
| 432 |
|
| 433 |
|
| 434 |
% *********************************************************************** |
| 435 |
% |
| 436 |
% Figures |
| 437 |
|
| 438 |
\def\fnum@figure{{\bf Figure \thefigure}} |
| 439 |
|
| 440 |
|
| 441 |
% *********************************************************************** |
| 442 |
% |
| 443 |
% Quotes |
| 444 |
|
| 445 |
\def\quote{\list{}{\rightmargin.5\leftmargin}\item[]} |
| 446 |
|
| 447 |
% From Dominik Wujastyk's font article. First paragraph of a quotation |
| 448 |
% will not be indented, and right margin is decreased for narrow columns. |
| 449 |
\renewcommand{\quotation}{\list{}{\listparindent 1.5em |
| 450 |
\rightmargin.5\leftmargin\parsep 0pt plus 1pt}\item[]} |
| 451 |
|
| 452 |
|
| 453 |
% *********************************************************************** |
| 454 |
% |
| 455 |
% Bibliography |
| 456 |
|
| 457 |
% Changes made only to accomodate local file naming conventions |
| 458 |
|
| 459 |
\def\bibliography#1{% |
| 460 |
\if@filesw\immediate\write\@auxout{\string\bibdata{\@tubfilename{#1}}}\fi |
| 461 |
\@input{\jobname.bbl}} |
| 462 |
|
| 463 |
\def\bibliographystyle#1{\if@filesw\immediate\write\@auxout |
| 464 |
{\string\bibstyle{\@tubfilename{#1}}}\fi} |
| 465 |
|
| 466 |
% Replace \sloppy by something not quite as sloppy |
| 467 |
|
| 468 |
\def\thebibliography#1{\section*{References\@mkboth |
| 469 |
{REFERENCES}{REFERENCES}}\list |
| 470 |
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth |
| 471 |
\advance\leftmargin\labelsep |
| 472 |
\usecounter{enumi}} |
| 473 |
\def\newblock{\hskip .11em plus .33em minus .07em} |
| 474 |
% \sloppy |
| 475 |
\tolerance 8000 \hfuzz .5\p@ \vfuzz .5\p@ |
| 476 |
\clubpenalty4000\widowpenalty4000 |
| 477 |
\sfcode`\.=1000\relax} |
| 478 |
|
| 479 |
%\def\sloppy{\tolerance 10000 \hfuzz .5\p@ \vfuzz .5\p@} |
| 480 |
|
| 481 |
|
| 482 |
% *********************************************************************** |
| 483 |
% |
| 484 |
% Signature |
| 485 |
|
| 486 |
% Moved to TUGboat.com |
| 487 |
|
| 488 |
|
| 489 |
% *********************************************************************** |
| 490 |
% |
| 491 |
% \document, \enddocument |
| 492 |
|
| 493 |
% changed \input to \@@input; either use the new functionality or be real |
| 494 |
\def\enddocument{\@checkend{document}\clearpage\begingroup |
| 495 |
\if@filesw \immediate\closeout\@mainaux |
| 496 |
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}% |
| 497 |
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\@@input \jobname.aux |
| 498 |
\if@tempswa \@warning{Label(s) may have changed. Rerun to get |
| 499 |
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end} |
| 500 |
|
| 501 |
|
| 502 |
% *********************************************************************** |
| 503 |
% |
| 504 |
% Running heads, output routine |
| 505 |
|
| 506 |
\def \rtitlex{\def\tubfont{\normalsize\rm}\TUB, \volx } |
| 507 |
|
| 508 |
\def\PrelimDraftfooter{% |
| 509 |
\dlap{\kern\textheight\kern3pc |
| 510 |
\rlap{\hbox to \pagewd{\midrtitle\hfil\midrtitle}} |
| 511 |
}} |
| 512 |
|
| 513 |
% registration marks; these are temporarily inserted in the running head |
| 514 |
\def\MakeRegistrationMarks{} |
| 515 |
\def\UseTrimMarks{% |
| 516 |
\def\MakeRegistrationMarks{% |
| 517 |
\ulap{\rlap{% |
| 518 |
\vbox{\dlap{\vbox to\trimlgt{\vfil\botregister}}% |
| 519 |
\topregister\vskip \headmargin \vskip 10pt}}}}% |
| 520 |
} |
| 521 |
|
| 522 |
\def\@oddhead{\MakeRegistrationMarks\PrelimDraftfooter |
| 523 |
\normalsize\csname normalshape\endcsname\rm |
| 524 |
\rtitlex\qquad\midrtitle \hfil \thepage} |
| 525 |
\def\@evenhead{\MakeRegistrationMarks\PrelimDraftfooter |
| 526 |
\normalsize\csname normalshape\endcsname\rm |
| 527 |
\thepage\hfil\midrtitle\qquad\rtitlex} |
| 528 |
\def\@oddfoot{} |
| 529 |
\def\@evenfoot{} |
| 530 |
|
| 531 |
\def\ps@headings{} |
| 532 |
\pagestyle{headings} |
| 533 |
|
| 534 |
% Modified to alter \brokenpenalty across columns |
| 535 |
\def\@outputdblcol{\if@firstcolumn \global\@firstcolumnfalse |
| 536 |
\global\setbox\@leftcolumn\box\@outputbox |
| 537 |
\global\brokenpenalty10000 |
| 538 |
\else \global\@firstcolumntrue |
| 539 |
\global\brokenpenalty100 |
| 540 |
\setbox\@outputbox\vbox{\hbox to\textwidth{\hbox to\columnwidth |
| 541 |
{\box\@leftcolumn \hss}\hfil \vrule width\columnseprule\hfil |
| 542 |
\hbox to\columnwidth{\box\@outputbox \hss}}}\@combinedblfloats |
| 543 |
\@outputpage \begingroup \@dblfloatplacement \@startdblcolumn |
| 544 |
\@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}\endgroup |
| 545 |
\fi} |
| 546 |
|
| 547 |
|
| 548 |
% *********************************************************************** |
| 549 |
% |
| 550 |
% Macros for Mittelbach's self-documenting style |
| 551 |
|
| 552 |
\def\SelfDocumenting{% |
| 553 |
\setlength\textwidth{31pc} |
| 554 |
\onecolumn |
| 555 |
\parindent 0pt |
| 556 |
\parskip 2pt plus 1pt minus 1pt |
| 557 |
\oddsidemargin 8pc |
| 558 |
\evensidemargin 8pc |
| 559 |
\marginparwidth 8pc |
| 560 |
\toks@\expandafter{\@oddhead}% |
| 561 |
\xdef\@oddhead{\hss\hbox to \pagewd{\the\toks@}}% |
| 562 |
\toks@\expandafter{\@evenhead}% |
| 563 |
\xdef\@evenhead{\hss\hbox to \pagewd{\the\toks@}}% |
| 564 |
\def\ps@titlepage{}% |
| 565 |
} |
| 566 |
|
| 567 |
\def\ps@titlepage{} |
| 568 |
|
| 569 |
|
| 570 |
% *********************************************************************** |
| 571 |
% |
| 572 |
% MISCELLANEOUS defs for compatibility with tugboat.sty |
| 573 |
|
| 574 |
\newif\ifFirstPar \FirstParfalse |
| 575 |
|
| 576 |
\newdimen\pagewd \pagewd=39pc |
| 577 |
\newdimen\trimwd \trimwd=\pagewd |
| 578 |
\newdimen\trimlgt \trimlgt=11in |
| 579 |
\newdimen\headmargin \headmargin=3.5pc |
| 580 |
\def\smc{\sc} |
| 581 |
\def\ninepoint{\small} |
| 582 |
|
| 583 |
|
| 584 |
%************************************************************************* |
| 585 |
% |
| 586 |
% Start-up |
| 587 |
|
| 588 |
\setcounter{page}{1001} |
| 589 |
\PrelimDrafttrue |
| 590 |
|
| 591 |
\def\tugstyinit{% |
| 592 |
\everypar{\@nodocument}% |
| 593 |
\authornumber\z@ |
| 594 |
\let\@signature\@defaultsignature |
| 595 |
} |
| 596 |
|
| 597 |
\endinput |
| 598 |
|
| 599 |
|
| 600 |
|
| 601 |
% ********************************************************************** |
| 602 |
% |
| 603 |
% Change history |
| 604 |
% |
| 605 |
|
| 606 |
Version Date Changes |
| 607 |
------- --------- --------------------------------------------------- |
| 608 |
1.19 16 Nov 93 added new t-of-c definitions, based on modifications by |
| 609 |
Nelson Beebe; make text ragged right, lightface, and |
| 610 |
entries closer together than latex.tex default |
| 611 |
|
| 612 |
1.18b 8 Nov 93 removed extraneous " from header |
| 613 |
|
| 614 |
1.18a 29 May 93 changed \family to \fontfamily in defs of \tensl, \tenuit |
| 615 |
within \sectitlefont, define \La to get proper "A" |
| 616 |
|
| 617 |
1.18 22 Mar 93 added \hyphenpenalty=10000 to (sub*)section headings |
| 618 |
added missing brace at end of \def\tensl for nfss |
| 619 |
added new environments \dedication and \longabstract |
| 620 |
|
| 621 |
1.17 19 Feb 93 incorporated some font definitions by Rainer Schoepf |
| 622 |
to add flexibility when used under NFSS |
| 623 |
installed new TUG address and phone number in header |
| 624 |
reformatted change history, similar to tugboat.sty |
| 625 |
|
| 626 |
1.16e 24 Dec 92 decreased skip above \paragraph, \subparagraph; |
| 627 |
removed shrink |
| 628 |
defined \ps@titlepage to get running heads on first page |
| 629 |
of docstyle articles |
| 630 |
|
| 631 |
1.16d 19 Oct 92 added \SMC parallel to plain-based style |
| 632 |
|
| 633 |
1.16c 10 Sep 92 added \raggedright in \subsubsection |
| 634 |
|
| 635 |
1.16b 19 Jul 92 test for previous input of article.sty, and omit if |
| 636 |
done already, to permit use as style option |
| 637 |
|
| 638 |
1.16a 29 Jun 92 embedded redefinitions of \xpt, \ixpt within code to |
| 639 |
distinguish between plain/old LaTeX and nfss |
| 640 |
|
| 641 |
1.16 6 Jun 92 incorporated test for nfss, and if loaded, define \tensl |
| 642 |
|
| 643 |
1.15 16 Mar 92 incorporated \sevbf into \*scriptfont of \bffam for \ixpt |
| 644 |
to improve appearance of LaTeX and other logos |
| 645 |
|
| 646 |
1.14 8 Mar 92 added \input article.sty to make this an independent style |
| 647 |
added standard headers, prepared for archive installation |
| 648 |
|
| 649 |
1.13 20 Nov 91 modified \@outputdblcol to reset \brokenpenalty to |
| 650 |
different values in first and second column |
| 651 |
added initialization macro (\tugstyinit) for multiple |
| 652 |
articles |
| 653 |
|
| 654 |
1.12 7 Aug 91 modified \thebibliography to make it not quite so sloppy |
| 655 |
and avoid cases where all stretch is put into one line |
| 656 |
|
| 657 |
1.11 10 Jun 91 added \ifWideSecTitle and modified \@maketitle to |
| 658 |
(partially) support it |
| 659 |
|
| 660 |
1.10 13 Feb 91 added \egtsl and incorporated it into \*scriptfont of |
| 661 |
\slfam for \xpt to improve appearance of LaTeX and |
| 662 |
other logos |
| 663 |
|
| 664 |
1.09 12 Dec 90 modified \@oddhead and \@evenhead to reset `shape' for |
| 665 |
new font selection scheme |
| 666 |
|
| 667 |
1.08 25 Oct 90 modified \enddocument to use \@@input instead of \input; |
| 668 |
allows other uses of \input |
| 669 |
|
| 670 |
1.07 18 Oct 90 set authors \raggedright |
| 671 |
set \marginparwidth in \SelfDocumenting |
| 672 |
removed stretch in space between footnotemark and |
| 673 |
footnotetext |
| 674 |
commented out definition of \@makefnmark in \maketitle |
| 675 |
changed \bibliography and \bibstyle to accomodate local |
| 676 |
file names (see also tugboat.sty for definition of |
| 677 |
\@tubfilename) |
| 678 |
|
| 679 |
1.06 13 Oct 90 added \listparindent=1em to definitions of \@list... |
| 680 |
in order to distinguish paragraphs |
| 681 |
|
| 682 |
1.05 1 Sep 90 made space a <space> in definition of \@netaddress; |
| 683 |
this obviates error messages concerning \begin{document} |
| 684 |
|
| 685 |
1.04 2 Mar 90 added \nobreak to \@maketitle to prevent pagebreaks |
| 686 |
after leading rule |
| 687 |
|
| 688 |
1.03 25 Feb 90 added definition of \thistubstyle |
| 689 |
|
| 690 |
1.02 12 Feb 90 modified definition of \@makefntext; now uses |
| 691 |
\@makefnmark (as one might expect) |
| 692 |
|
| 693 |
1.01 6 Feb 90 removed "\font\manual=manfnt"; tugboat.com already sets |
| 694 |
\font\manual=logo10 |
| 695 |
adjusted definition of \netaddress to remove mis-timed |
| 696 |
\@sanitize-ation |
| 697 |
|
| 698 |
1.00 29 Nov 89 changed \titlefont to \sectitlefont |
| 699 |
added setting of \baselineskip to definition of |
| 700 |
\sectitlefont |
| 701 |
changed \TUBparindent to \normalparindent (already in |
| 702 |
tugboat.com) |
| 703 |
removed additions of amcsc* fonts |
| 704 |
new definitions of \ragged... in tugboat.com include |
| 705 |
\nohyphens |
| 706 |
moved most of section title material to tugboat.com |
| 707 |
moved writing mechanism and multiple document handling |
| 708 |
to local .drv file |
| 709 |
redefined \author to be consistent with tugboat.sty |
| 710 |
added \address, \netaddress |
| 711 |
moved \signature stuff to tugboat.com |
| 712 |
made titles raggedright |
| 713 |
|
| 714 |
0.53 20 Oct 89 Zeroed \@signature for multiple documents |
| 715 |
|
| 716 |
0.52 19 Oct 89 Moved \rtitlex to tugboat.com |
| 717 |
|
| 718 |
0.51 18 Oct 89 Disallowed hyphenations in \section and \subsection |