summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/tugboat/tugboat.dtx')
-rw-r--r--Master/texmf-dist/source/latex/tugboat/tugboat.dtx125
1 files changed, 72 insertions, 53 deletions
diff --git a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
index 40719415e94..63d61e1289d 100644
--- a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
+++ b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
@@ -4,8 +4,7 @@
% \iffalse (this is a meta-comment (so they say))
% tugboat.dtx - main source for LaTeX TUGboat classes.
%
-% Copyright 1994,1995,1996,1997,1998,2000,2001,2004,2005,2006,2007,2008,2009
-% TeX Users Group.
+% Copyright 1994-1998, 2000-2001, 2004-2010 TeX Users Group.
%
% This file is part of the tugboat package.
%
@@ -31,7 +30,7 @@
%<ltugboatsty>\ProvidesPackage{ltugboat}
%<ltugprocsty>\ProvidesPackage{ltugproc}
%<ltugcomn> \ProvidesPackage{ltugcomn}
- [2009/09/29 v2.7
+ [2010/11/15 v2.8
%<ltugboatcls> TUGboat journal class%
%<ltugproccls> TUG conference proceedings class%
%<ltugboatsty|ltugprocsty> TUG compatibility package%
@@ -119,7 +118,6 @@
% \end{macrocode}
%
% \fi
-% \CheckSum{4644}
%
% \section{Introduction}
%
@@ -143,8 +141,8 @@
% |\ConTeXt|& \ConTeXt\\
% |\Cplusplus|& C++\\
% |\DTD|&\\
-% |\DVI|&\\
% |\DVD|&\\
+% |\DVI|&\\
% |\DVIPDFMx|& \DVIPDFMx\\
% |\DVItoVDU|& DVItoVDU\\
% |\ECMA|&\\
@@ -356,7 +354,8 @@
\BlackBoxes
\def\MakeRegistrationMarks{}%
\PrelimDrafttrue
- }%
+ \@tubrunningminimal
+ }%
}
\DeclareOption{preprint}{%
\preprinttrue
@@ -434,12 +433,14 @@
\DeclareOption{numbersec}{\let\if@numbersec\iftrue}
\DeclareOption{nonumber}{\let\if@numbersec\iffalse}
% \end{macrocode}
-%
+%
% Minimal running headers/footers contain just the TUGboat volume/issue
-% identification and page number. `runningfull' is the default, and
-% includes title and author.
+% identification and page numbers. `runningfull' is the default, and
+% includes title and author. `runningoff' makes both headers and
+% footers empty.
%
% \begin{macrocode}
+\DeclareOption{runningoff}{\AtEndOfClass{\@tubrunningoff}}
\DeclareOption{runningminimal}{\AtEndOfClass{\@tubrunningminimal}}
\DeclareOption{runningfull}{\AtEndOfClass{\@tubrunningfull}}
% \end{macrocode}
@@ -652,18 +653,22 @@
}
\def\BibTeX{\Bib\kern-.08em \TeX}
%
+\def\BSD{\acro{BSD}}
\def\CandT{\textsl{Computers \& Typesetting}}
\def\CJK{\acro{CJK}}
% \end{macrocode}
% We place our \cs{kern} after \cs{-} so that it disappears if the
% hyphenation is taken:
% \begin{macrocode}
-\newcommand\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt}
-\newcommand\Cplusplus{C\plusplus}
-\newcommand\plusplus{\raisebox{.7ex}{$_{++}$}}
+\def\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt}
+\def\CMkIV{\ConTeXt\ \MkIV}
+\def\Cplusplus{C\plusplus}
+\def\plusplus{\raisebox{.7ex}{$_{++}$}}
\def\CSS{\acro{CSS}}
+\def\CSV{\acro{CSV}}
\def\CTAN{\acro{CTAN}}
\def\DTD{\acro{DTD}}
+\def\DTK{\acro{DTK}}
\def\DVD{\acro{DVD}}
\def\DVI{\acro{DVI}}
\def\DVIPDFMx{\acro{DVIPDFM}$x$}
@@ -732,6 +737,7 @@
% \begin{macrocode}
\def\mf{\textsc{Metafont}}
\def\MFB{\textsl{The \MF book}}
+\def\MkIV{Mk\acro{IV}}
\let\TB@@mp\mp
\DeclareRobustCommand\mp{\ifmmode\TB@@mp\else MetaPost\fi}
%
@@ -746,7 +752,8 @@
\DeclareTextSymbolDefault{\textohm}{OT1}
\newcommand\OMEGA{\textohm}
\DeclareRobustCommand{\OCP}{\OMEGA\acro{CP}}
-\def\OOXML{\acro{OOXML}}
+\DeclareRobustCommand{\OOXML}{\acro{OOXML}}
+\DeclareRobustCommand{\OTF}{\acro{OTF}}
\DeclareRobustCommand{\OTP}{\OMEGA\acro{TP}}
\def\mtex{T\kern-.1667em\lower.424ex\hbox{\^E}\kern-.125emX\@}
% \end{macrocode}
@@ -759,10 +766,10 @@
\def\PCTeX{PC\thinspace\TeX}
\def\pcTeX{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}\TeX}
\def\PDF{\acro{PDF}}
-\def\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC\@}
-\def\PiCTeX{\PiC\kern-.11em\TeX}
\def\PGF{\acro{PGF}}
\def\PHP{\acro{PHP}}
+\def\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC\@}
+\def\PiCTeX{\PiC\kern-.11em\TeX}
\def\plain{\texttt{plain}}
\def\PNG{\acro{PNG}}
\def\POBox{P.\thinspace O.~Box }
@@ -840,6 +847,8 @@
\def\XeLaTeX{\Xe{\,\LaTeX}}
%
\def\XHTML{\acro{XHTML}}
+\def\XSL{\acro{XSL}}
+\def\XSLFO{\acro{XSL}\raise.08ex\hbox{-}\acro{FO}}
\def\XSLT{\acro{XSLT}}
% \end{macrocode}
%
@@ -1155,12 +1164,6 @@
}
% \end{macrocode}
%
-% One more accent.
-%
-% \begin{macrocode}
-\def\r#1{\accent"17 #1}
-% \end{macrocode}
-%
% \subsection{Reviews}
%
% Format information on reviewed items for book review articles.
@@ -1230,7 +1233,7 @@
\setbox\TestBox=\hbox{\volno}%
\ifdim \wd\TestBox > .2em \v@lx \fi }
\vol 0, 0.
-\issdate Thermidor, 2060.
+\issdate Thermidor, 9999.
% \end{macrocode}
%
% (The curious should know that \emph{Thermidor} was one of the French
@@ -1625,12 +1628,13 @@
% \begin{macrocode}
\def\@defaultsignature{{%
\let\thanks\@gobble
+ \frenchspacing
+ %
\ifnum\authornumber<0
% \end{macrocode}
% if \cs{authornumber}$<0$, we are in a contributor's section
% \begin{macrocode}
\medskip
- \frenchspacing
\signaturemark
\theauthor{\number\authornumber}\\
\theaddress{\number\authornumber}\\
@@ -2520,21 +2524,23 @@
}
% \end{macrocode}
%
-% The \cs{newlabel} command that gets written to the \texttt{.aux}
-% file needs to be redefined to have three components to its argument:
+% We output the name label as a second \cs{newlabel} command
+% in the \texttt{.aux} file. That way, packages such as |varioref|
+% which also read the \texttt{.aux} information can still work.
+% So we redefine \cs{label} to first call the standard \LaTeX\
+% \cs{label} and then write our named label as |nr<label>|.
+%
% \begin{macrocode}
-\def\label#1{{%
- \@bsphack
- \let\label\@gobble
- \let\index\@gobble
- \if@filesw
- \protected@write\@auxout{}%
- {\string\newlabel{#1}{%
- {\@currentlabel}{\thepage}{\@currentlabelname}}%
- }%
- \fi
- \@esphack
- }%
+\let\@savelatexlabel=\label % so save original LaTeX command
+%
+\def\label#1{% de
+ \@savelatexlabel{#1}%
+ \@bsphack
+ \if@filesw
+ \protected@write\@auxout{}%
+ {\string\newlabel{nr@#1}{{\@currentlabel}{\@currentlabelname}}}%
+ \fi
+ \@esphack
}
% \end{macrocode}
%
@@ -2544,19 +2550,12 @@
\let\@currentlabelname\@empty
% \end{macrocode}
%
-% References are pretty straightforward, but need three extra utility
-% commands (analagous to the \cs{@firstof...}, etc., defined in the
-% kernel).
+% Getting named references is then just like getting page references in
+% the \LaTeX\ kernel (see |ltxref.dtx|).
+%
% \begin{macrocode}
-\DeclareRobustCommand\ref[1]{\expandafter\@setref
- \csname r@#1\endcsname\@firstofthree{#1}}
-\DeclareRobustCommand\pageref[1]{\expandafter\@setref
- \csname r@#1\endcsname\@secondofthree{#1}}
\DeclareRobustCommand\nameref[1]{\expandafter\@setref
- \csname r@#1\endcsname\@thirdofthree{#1}}
-\long\def\@firstofthree#1#2#3{#1}
-\long\def\@secondofthree#1#2#3{#2}
-\long\def\@thirdofthree#1#2#3{#3}
+ \csname r@nr@#1\endcsname\@secondoftwo{#1}}
% \end{macrocode}
%
% \subsection{Float captions}
@@ -2674,7 +2673,8 @@
\rightmargin.5\leftmargin\parsep \z@\@plus\p@}\item[]}
% \end{macrocode}
%
-% The |compactitemize| environment, without space between the items.
+% The |compactitemize| and |compactenumerate| environments, without
+% space between the items.
%
% \begin{macrocode}
\newenvironment{compactitemize}%
@@ -2684,6 +2684,14 @@
\setlength{\parsep} {0pt}%
}%
{\end{itemize}}
+%
+\newenvironment{compactenumerate}%
+ {\begin{enumerate}%
+ \setlength{\itemsep}{0pt}%
+ \setlength{\parskip}{0pt}%
+ \setlength{\parsep} {0pt}%
+ }%
+ {\end{enumerate}}
% \end{macrocode}
%
% \subsection{Some fun with \texttt{verbatim}}
@@ -3092,12 +3100,15 @@
}
% put issue identification and page number in header.
\def\@oddhead{\MakeRegistrationMarks\PrelimDraftfooter
- \normalsize\csname normalshape\endcsname\rm
+ \normalsize\csname normalshape\endcsname\rm \tubheadhook
\rtitlex\qquad\midrtitle \hfil \thepage}
\def\@evenhead{\MakeRegistrationMarks\PrelimDraftfooter
- \normalsize\csname normalshape\endcsname\rm
+ \normalsize\csname normalshape\endcsname\rm \tubheadhook
\thepage\hfil\midrtitle\qquad\rtitlex}
+% can be used to reset the font, e.g., tb98kuester.
+\def\tubheadhook{}
+
% put title and author in footer.
\def\@tubrunningfull{%
\def\@oddfoot{\hfil\rhTitle}
@@ -3113,8 +3124,16 @@
% empty footer.
\def\@tubrunningminimal{%
- \def\@oddfoot{\hfil}
- \def\@evenfoot{\hfil}
+ \def\@oddfoot{\hfil}%
+ \def\@evenfoot{\hfil}%
+}
+
+% empty footer and header.
+\def\@tubrunningoff{%
+ \def\@oddfoot{\hfil}%
+ \def\@evenfoot{\hfil}%
+ \def\@oddhead{\hfil}%
+ \def\@evenhead{\hfil}%
}
\def\ps@headings{}