diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/tugboat/tugboat.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/tugboat/tugboat.dtx | 138 |
1 files changed, 82 insertions, 56 deletions
diff --git a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx index e5fa41ababe..9eac928b928 100644 --- a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx +++ b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx @@ -3,7 +3,8 @@ % tugboat.dtx - main source for LaTeX TUGboat classes. % % \iffalse (this is a meta-comment (so they say)) -%% Copyright 1994,1995,1996,2001,2005,2006 TeX Users Group. +%% Copyright 1994,1995,1996,1997,1998,2000,2001,2004,2005,2006,2007 +%% TeX Users Group. %% %% This file is part of the tugboat package. %% @@ -40,7 +41,7 @@ %<ltugboatsty>\ProvidesPackage{ltugboat} %<ltugprocsty>\ProvidesPackage{ltugproc} %<ltugcomn> \ProvidesPackage{ltugcomn} - [2006/05/05 v2.0 + [2007/03/19 v2.1 %<ltugboatcls> TUGboat journal class% %<ltugproccls> TUG conference proceedings class% %<ltugboatsty|ltugprocsty> TUG compatibility package% @@ -62,7 +63,7 @@ % % RCS identification of this file (lest I fail to update the above ;-) % -% $Id: tugboat.dtx,v 1.46 2006/03/22 11:27:54 rf10 Exp rf10 $ +% $Id: tugboat.dtx,v 1.3 2007/03/30 13:55:31 rf10 Exp rf10 $ % % Note that the RCS version relates to the number of times the file % has been checked-in, which relates to a development process taking @@ -117,7 +118,8 @@ \title{The \textsf{tugboat} package\thanks{This file has version number \fileversion, last revised \filedate}} - \author{Robin Fairbairns\\\small\texttt{robin.fairbairns@cl.cam.ac.uk}} + \author{The \TUB{} team\\ + \small(Distributed by Robin Fairbairns)} \date{\filedate} \maketitle \tableofcontents @@ -127,13 +129,12 @@ % \end{macrocode} % % \fi -% \CheckSum{4458} +% \CheckSum{4455} % % \section{Introduction} % % This file contains all the macros for typesetting \TUB{} with -% \LaTeXe. -% +% both plain \TeX\ and \LaTeXe. % \subsection{Summary of control sequences} % % Abbreviations. Just a listing with indications of expansion where @@ -151,6 +152,8 @@ % |\ConTeXt|& \ConTeXt\\ % |\Cplusplus|& C++\\ % |\DTD|&\\ +% |\DVI|&\\ +% |\DVD|&\\ % |\DVIPDFMx|& \DVIPDFMx\\ % |\DVItoVDU|& DVItoVDU\\ % |\eTeX|& \eTeX\\ @@ -158,6 +161,7 @@ % |\Hawaii|& \Hawaii\\ % |\HTML|&\\ % |\ISBN|& ISBN\\ +% |\ISO|&\\ % |\ISSN|& ISSN\\ % |\JTeX|&\\ % |\JoT|& The Joy of \TeX\\ @@ -190,6 +194,7 @@ % |\slMF|& Metafont (slanted)\Dash deprecated: use % \cs{textsl} instead \\ % |\stTeX|& \TeX{} for the Atari ST\\ +% |\SVG|&\\ % |\TANGLE|&\\ % |\TB|& The \TeX book\\ % |\TeX|& (Although nearly every package defines this, @@ -200,9 +205,11 @@ % |\TeXtures|&\\ % |\TeXXeT|&\\ % |\Thanh|&\\ +% |\TFM|& \TFM\\ % |\TUB|& \TUB\\ % |\TUG|& \TeX{} Users Group\\ % |\UNIX|&\\ +% |\UTF|&\\ % |\VAX|&\\ % |\VorTeX|&\\ % |\XeT|&\\ @@ -624,7 +631,17 @@ \def\ASCII{\acro{ASCII}} \def\aw{A\kern.1em-W} \def\AW{Addison\kern.1em-\penalty\z@\hskip\z@skip Wesley} -\def\BibTeX{\textsc{Bib}\kern-.08em\TeX} +% +% make \BibTeX work in slanted contexts too; it's common in titles, and +% especially burdensome to hack in .bib files. +\def\BibTeX{% + \ifdim \fontdimen1\font>0pt + B{\SMC\SMC IB}% + \else + \textsc{Bib}\kern-.08em + \fi + \TeX} +% \def\CandT{\textsl{Computers \& Typesetting}} % \end{macrocode} % We place our \cs{kern} after \cs{-} so that it disappears if the @@ -636,6 +653,7 @@ \def\CTAN{\acro{CTAN}} \def\DTD{\acro{DTD}} \def\DVD{\acro{DVD}} +\def\DVI{\acro{DVI}} \def\DVIPDFMx{\acro{DVIPDFM}$x$} \def\DVItoVDU{DVIto\kern-.12em VDU} \DeclareRobustCommand\eTeX{\ensuremath{\varepsilon}-\kern-.125em\TeX} @@ -648,6 +666,7 @@ \def\HTML{\acro{HTML}} \def\HTTP{\acro{HTTP}} \def\ISBN{\acro{ISBN}} +\def\ISO{\acro{ISO}} \def\ISSN{\acro{ISSN}} \def\JPEG{\acro{JPEG}} \def\JTeX{\leavevmode\hbox{\lower.5ex\hbox{J}\kern-.18em\TeX}} @@ -734,6 +753,7 @@ \kern-.06em\TeX}} \def\slMF{\textsl{\MF}} % should never be used \def\stTeX{\textsc{st}\kern-0.13em\TeX} +\def\SVG{\acro{SVG}} \def\TANGLE{\texttt{TANGLE}\@} \def\TB{\textsl{The \TeX book}} \def\TIFF{\acro{TIFF}} @@ -745,6 +765,7 @@ \def\TeXtures{\textit{Textures}} \let\Textures=\TeXtures \def\TeXXeT{\TeX-{}-\XeT} +\def\TFM{\acro{TFM}} \def\Thanh{H\`an~Th\^e\llap{\raise 0.5ex\hbox{\'{}}}~Th\`anh} \def\ttn{\textsl{TTN}\@} \def\TTN{\textsl{\TeX{} and TUG News}} @@ -754,6 +775,7 @@ \def\tug{\acro{TUG}} \def\UG{Users Group} \def\UNIX{\acro{UNIX}} +\def\UTF{\acro{UTF}} \def\VAX{V\kern-.12em A\kern-.1em X\@} \def\VorTeX{V\kern-2.7\p@\lower.5ex\hbox{O\kern-1.4\p@ R}\kern-2.6\p@\TeX} \def\XeT{X\kern-.125em\lower.424ex\hbox{E}\kern-.1667emT\@} @@ -2110,11 +2132,10 @@ % \end{macrocode} % % \subsection{Headings} -% -% Redefine style of section headings for \TUB: |\vskip 8pt| |plus2pt| -% |minus2pt| \penalty0|\vskip\parskip| before; |\vskip 4pt plus.5pt| -% after. Negative beforeskip suppresses following parindent. (So -% negate the stretch and shrinktoo). +% +% Redefine style of section headings to match plain \TUB. +% Negative beforeskip suppresses following parindent. (So +% negate the stretch and shrink too). % % These macros are called \cs{*head} in the plain styles. % @@ -2131,20 +2152,20 @@ \def\section{\TB@startsection{{section}% 1% \z@ - {-8\p@\@plus-2\p@\@minus-2\p@}% - {4\p@\@plus.5\p@}% + {-8\p@}% + {4\p@}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \def\subsection{\TB@startsection{{subsection}% 2% \z@ - {-8\p@\@plus-2\p@\@minus-2\p@}% - {4\p@\@plus.5\p@}% + {-8\p@}% + {4\p@}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \def\subsubsection{\TB@startsection{{subsubsection}% 3% \z@ - {-8\p@\@plus-2\p@\@minus-2\p@}% - {4\p@\@plus.5\p@}% + {-8\p@}% + {4\p@}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \def\paragraph{\TB@startsection{{paragraph}% 4% @@ -2164,21 +2185,21 @@ \TB@startsection{{section}% 1% \z@ - {-8\p@\@plus-2\p@\@minus-2\p@}% - {4\p@\@plus.5\p@}% + {-8\p@}% + {4\p@}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \def\subsection{\TB@nolimelabel \TB@startsection{{subsection}% 2% \z@ - {-8\p@\@plus-2\p@\@minus-2\p@}% + {-8\p@}% {-0.5em\@plus-\fontdimen3\font}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \def\subsubsection{\TB@nolimelabel \TB@startsection{{subsubsection}% 3% \parindent - {-8\p@\@plus-2\p@\@minus-2\p@}% + {-8\p@}% {-0.5em\@plus-\fontdimen3\font}% {\normalsize\bf\raggedright\hyphenpenalty=\@M}}} \fi @@ -2426,13 +2447,12 @@ % typeset them in \cs{small}. % % \begin{macrocode} -\def\@makecaption#1#2{% +\long\def\@makecaption#1#2{% \vskip\abovecaptionskip - \def\@makecaptiontext{\small \parindent=1em\noindent #1: #2}% - \setbox\@tempboxa=\vbox{\@makecaptiontext\par}% + \sbox\@tempboxa{#1: #2}% \ifdim \wd\@tempboxa >\hsize - \raggedright\hyphenpenalty=\@M - \@makecaptiontext + \raggedright\hyphenpenalty=\@M \parindent=1em + \small \noindent #1: #2% \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% @@ -2440,6 +2460,14 @@ \vskip\belowcaptionskip} % \end{macrocode} % +% Also use \cs{small} for the caption labels, and put the label itself +% (Figure xx) in bold. +% +% \begin{macrocode} +\def\fnum@figure{{\small \bf \figurename\nobreakspace\thefigure}} +\def\fnum@table{{\small \bf \tablename\nobreakspace\thetable}} +% \end{macrocode} +% % \subsection{Size changing commands} % % Apart from their `normal' effects, these commands are @@ -3049,11 +3077,33 @@ %% \hskip0.27778\fontdimen6\textfont\z@\relax %% #1% %% } - - -\def\fnum@figure{{\small\bf Figure \thefigure}} % \end{macrocode} % +% \begin{macro}{\creditfootnote} +% \begin{macro}{\supportfootnote} +% Sometimes we want the label ``Editor's Note:'', sometimes not. +% +% \begin{macrocode} +\def\creditfootnote{\nomarkfootnote\xEdNote} +\def\supportfootnote{\nomarkfootnote\relax} +% \end{macrocode} +% +% General macro \cs{nomarkfootnote} to make a footnote without a +% reference mark, etc. |#1| is an extra command to insert, |#2| the +% user's text. +% \begin{macrocode} +\gdef\nomarkfootnote#1#2{\begingroup + \def\thefootnote{}% + % no period, please, also no fnmark. + \def\@makefntext##1{##1}% + \footnotetext{\noindent #1#2}% + \endgroup +} +% \end{macrocode} +% \end{macro} +% \end{macro} +% +% % \subsection{Initialization} % % If we're going to use Harvard-style bibliographies, we set up the @@ -3483,30 +3533,6 @@ % \end{macro} % \end{environment} % -% \begin{macro}{\creditfootnote} -% \begin{macro}{\supportfootnote} -% Sometimes we want the label ``Editor's Note:'', sometimes not. -% -% \begin{macrocode} -\def\creditfootnote{\nomarkfootnote\xEdNote} -\def\supportfootnote{\nomarkfootnote\relax} -% \end{macrocode} -% -% General macro \cs{nomarkfootnote} to make a footnote without a -% reference mark, etc. |#1| is an extra command to insert, |#2| the -% user's text. -% \begin{macrocode} -\gdef\nomarkfootnote#1#2{\begingroup - \def\thefootnote{}% - % no period, please, also no fnmark. - \def\@makefntext##1{##1}% - \footnotetext{\noindent #1#2}% - \endgroup -} -% \end{macrocode} -% \end{macro} -% \end{macro} -% % \begin{macro}{\makesignature} % \cs{makesignature} is improper in proceedings, so we replace it with a % warning (and a no-op otherwise) @@ -3610,7 +3636,7 @@ % \end{macro} % % \subsection{Section divisions} -% +% % Neither sections nor subsections are numbered by default in the % proceedings style: note that this puts a degree of stress on authors' % natural tendency to reference sections, which is a matter that needs |