From 4873be2e9722a5d9a95aa8edb9859d735853ab27 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 24 Jun 2009 16:38:12 +0000
Subject: tugboat update (23jun09)

git-svn-id: svn://tug.org/texlive/trunk@13943 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/tugboat/ltugboat.cls | 150 +++++++++++++++--------
 1 file changed, 101 insertions(+), 49 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/tugboat/ltugboat.cls')

diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index e7f62975c98..75a71b41ce1 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
@@ -6,45 +6,33 @@
 %%
 %% tugboat.dtx  (with options: `latex,classtop,common,classtail,latex2e,ltugboatcls')
 %% 
-%% Copyright (C) 1994,1995,1996,2001 TeX Users Group
-%% All rights reserved.
+%% This is a generated file.
 %% 
-%% This file is part of the tugboat package.
-%% -----------------------------------------
+%% Copyright 1994,1995,1996,2001,2005,2006,2009 TeX Users Group.
 %% 
-%% This is a generated file.  Permission is granted to customize the
-%% declarations in this file to serve the needs of your installation.
-%% However, no permission is granted to distribute a modified version of
-%% this file under its original name.
-%% 
-%% 
-%% Copyright 1994,1995,1996,1997,1998,2000,2001,2004,2005,2006,2007,2008
-%% TeX Users Group.
-%%
-%% This file is part of the tugboat package.
-%%
-%% This work may be distributed and/or modified under the
+%% It may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3
 %% of this license or (at your option) any later version.
 %% The latest version of this license is in
-%%   http://www.latex-project.org/lppl.txt
+%%    http://www.latex-project.org/lppl.txt
 %% and version 1.3 or later is part of all distributions of LaTeX
 %% version 2003/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
+%% 
+%% This file has the LPPL maintenance status "maintained".
+%% 
 %% The Current Maintainer of this work is the TeX Users Group
 %% (http://tug.org/TUGboat).
-%%
-%% The list of all files belonging to the distribution is
-%% given in the file `manifest.txt'.
-%%
+%% 
+%% The list of all files belonging to the distribution is given in the file
+%% `manifest.txt'.
+%% 
 %% The list of derived (unpacked) files belonging to the distribution
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
+%% 
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \ProvidesClass  {ltugboat}
-                   [2007/09/19 v2.4b
+                   [2009/06/21 v2.6
                        TUGboat journal class%
                    ]
 \csname tugstyloaded@\endcsname
@@ -92,8 +80,10 @@
 \DeclareOption{noextralabel}{\let\UseExtraLabel\@gobble}
 \DeclareOption{numbersec}{\let\if@numbersec\iftrue}
 \DeclareOption{nonumber}{\let\if@numbersec\iffalse}
+\DeclareOption{runningminimal}{\AtEndOfClass{\@tubrunningminimal}}
+\DeclareOption{runningfull}{\AtEndOfClass{\@tubrunningfull}}
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-\ExecuteOptions{draft,extralabel,numbersec,rawcite}
+\ExecuteOptions{draft,extralabel,numbersec,rawcite,runningfull}
 \ProcessOptions
 \LoadClass[twoside]{article}
 \def\sectitlefont{\fontfamily\sfdefault\fontseries{bx}\fontshape{n}%
@@ -172,17 +162,20 @@
 \def\AmSLaTeX{\AmS-\LaTeX}
 \def\AmSTeX{\AmS-\TeX}
 \def\ANSI{\acro{ANSI}}
+\def\API{\acro{API}}
 \def\ASCII{\acro{ASCII}}
 \def\aw{A\kern.1em-W}
 \def\AW{Addison\kern.1em-\penalty\z@\hskip\z@skip Wesley}
-\def\BibTeX{%
+\def\Bib{%
   \ifdim \fontdimen1\font>0pt
      B{\SMC\SMC IB}%
   \else
-     \textsc{Bib}\kern-.08em
+     \textsc{Bib}%
   \fi
-  \TeX}
+}
+\def\BibTeX{\Bib\kern-.08em \TeX}
 \def\CandT{\textsl{Computers \& Typesetting}}
+\def\CJK{\acro{CJK}}
 \newcommand\ConTeXt{C\kern-.0333emon\-\kern-.0667em\TeX\kern-.0333emt}
 \newcommand\Cplusplus{C\plusplus}
 \newcommand\plusplus{\raisebox{.7ex}{$_{++}$}}
@@ -193,7 +186,11 @@
 \def\DVI{\acro{DVI}}
 \def\DVIPDFMx{\acro{DVIPDFM}$x$}
 \def\DVItoVDU{DVIto\kern-.12em VDU}
+\def\ECMA{\acro{ECMA}}
+\def\EPS{\acro{EPS}}
 \DeclareRobustCommand\eTeX{\ensuremath{\varepsilon}-\kern-.125em\TeX}
+\DeclareRobustCommand\ExTeX{%
+  \ensuremath{\textstyle\varepsilon_{\kern-0.15em\cal{X}}}\kern-.2em\TeX}
 \def\FAQ{\acro{FAQ}}
 \def\FTP{\acro{FTP}}
 \def\Ghostscript{Ghost\-script}
@@ -224,6 +221,7 @@
                             A}%
                       \vss}%
         }}
+\def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX}
 \def\MacOSX{Mac\,\acro{OS\,X}}
 \def\MathML{Math\acro{ML}}
 \def\Mc{\setbox\TestBox=\hbox{M}M\vbox
@@ -236,6 +234,7 @@
 \DeclareTextSymbolDefault{\textohm}{OT1}
 \newcommand\OMEGA{\textohm}
 \DeclareRobustCommand{\OCP}{\OMEGA\acro{CP}}
+\def\OOXML{\acro{OOXML}}
 \DeclareRobustCommand{\OTP}{\OMEGA\acro{TP}}
 \def\mtex{T\kern-.1667em\lower.424ex\hbox{\^E}\kern-.125emX\@}
 \DeclareRobustCommand\NTS{\ensuremath{\mathcal{N}\mkern-4mu
@@ -248,6 +247,7 @@
 \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\plain{\texttt{plain}}
 \def\PNG{\acro{PNG}}
 \def\POBox{P.\thinspace O.~Box }
@@ -259,6 +259,7 @@
 \def\SliTeX{\textrm{S\kern-.06em\textsc{l\kern-.035emi}%
                      \kern-.06em\TeX}}
 \def\slMF{\textsl{\MF}} % should never be used
+\def\SQL{\acro{SQL}}
 \def\stTeX{\textsc{st}\kern-0.13em\TeX}
 \def\STIX{\acro{STIX}}
 \def\SVG{\acro{SVG}}
@@ -286,11 +287,13 @@
 \def\UNIX{\acro{UNIX}}
 \def\UTF{\acro{UTF}}
 \def\VAX{V\kern-.12em A\kern-.1em X\@}
+\def\VnTeX{V\kern-.03em n\kern-.02em \TeX}
 \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\@}
 \def\XML{\acro{XML}}
 \def\WEB{\texttt{WEB}\@}
 \def\WEAVE{\texttt{WEAVE}\@}
+\def\WYSIWYG{\acro{WYSIWYG}}
 \def\tubreflect#1{%
   \@ifundefined{reflectbox}{%
     \TBerror{A graphics package must be loaded for \string\XeTeX}%
@@ -303,7 +306,7 @@
   }%
 }
 \def\tubhideheight#1{\setbox0=\hbox{#1}\ht0=0pt \dp0=0pt \box0 }
-\def\Xe#1{\leavevmode
+\DeclareRobustCommand\Xe[1]{\leavevmode
   \tubhideheight{\hbox{X%
     \setbox0=\hbox{\TeX}\setbox1=\hbox{E}%
     \lower\dp0\hbox{\raise\dp1\hbox{\kern-.125em\tubreflect{E}}}%
@@ -400,9 +403,9 @@
   }
 \def\bull{\vrule \@height 1ex \@width .8ex \@depth -.2ex }
 \def\cents{{\rm\raise.2ex\rlap{\kern.05em$\scriptstyle/$}c}}
-\def\Dag{\raise .6ex\hbox{$\scriptstyle\dagger$}}
 \def\careof{\leavevmode\hbox{\raise.75ex\hbox{c}\kern-.15em
                 /\kern-.125em\smash{\lower.3ex\hbox{o}}} \ignorespaces}
+\def\Dag{\raise .6ex\hbox{$\scriptstyle\dagger$}}
 \DeclareRobustCommand\sfrac[1]{\@ifnextchar/{\@sfrac{#1}}%
                                             {\@sfrac{#1}/}}
 \def\@sfrac#1/#2{\leavevmode\kern.1em\raise.5ex
@@ -411,9 +414,14 @@
          /\kern-.15em\lower.25ex
           \hbox{$\m@th\mbox{\fontsize\sf@size\z@
                             \selectfont#2}$}}
+\DeclareRobustCommand\meta[1]{%
+  \ensuremath{\langle}%
+  \ifmmode \mbox\bgroup \fi % if in math
+  {\it #1}% no typewriter italics, please
+  \ifmmode \egroup \fi
+  \ensuremath{\rangle}%
+}
 \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
-\DeclareRobustCommand\meta[1]{% don't stay bold in description items
-  \ensuremath{\langle}{\mdseries\emph{#1}}\ensuremath{\rangle}}
 \DeclareRobustCommand\env[1]{%
   \cs{begin}\texttt{\char`\{#1\char`\}}}
 \def\thinskip{\hskip 0.16667em\relax}
@@ -452,6 +460,7 @@
                         \else th%                nth
                         \fi}%
 }
+\def\r#1{\accent"17 #1}
 \def\Review{\@ifnextchar:{\@Review}{\@Review:}}
 \def\@Review:{\@ifnextchar[%]
   {\@Rev}%
@@ -811,6 +820,7 @@
 \fi
 \def\authorlist#1{\def\@author{#1}}
 \def\@author{\@defaultauthorlist}
+\def\mspmetavar#1#2{}
 \newif\if@articletitle
 \def\maketitle{\@ifstar
   {\@articletitlefalse\@r@maketitle}%
@@ -835,6 +845,18 @@
  \setcounter{footnote}{0}
  \gdef\@thanks{}
  }
+\def\rhTitle{}% avoid error if no author or title
+\renewcommand\title{\@dblarg\TB@title}
+\def\TB@title[#1]#2{\gdef\@title{#2}%
+  \bgroup
+    \let\thanks\@gobble
+    \def\\{\unskip\space\ignorespaces}%
+    \protected@xdef\rhTitle{#1}%
+  \egroup
+}
+\def\shortTitle #1{\def\rhTitle{#1}}
+\newif\ifshortAuthor
+\def\shortAuthor #1{\def\rhAuthor{#1}\shortAuthortrue}
 \def\secsep{\vskip 5\baselineskip}
 \newdimen\stbaselineskip        \stbaselineskip=18\p@
 \newdimen\stfontheight
@@ -953,25 +975,25 @@
   \def\section{\TB@startsection{{section}%
                                 1%
                                 \z@
-                                {-8\p@}%
+                                {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                 {4\p@}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
   \def\subsection{\TB@startsection{{subsection}%
                                    2%
                                    \z@
-                                   {-8\p@}%
+                                   {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                    {4\p@}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
   \def\subsubsection{\TB@startsection{{subsubsection}%
                                       3%
                                       \z@
-                                      {-8\p@}%
+                                      {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                       {4\p@}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
   \def\paragraph{\TB@startsection{{paragraph}%
                                   4%
                                   \z@
-                                  {2.5ex\@plus 1ex}%
+                                  {4\p@ \@plus1\p@ \@minus1\p@}%
                                   {-1em}%
                                   {\normalsize\bf}}}
 \else
@@ -980,21 +1002,21 @@
                \TB@startsection{{section}%
                                 1%
                                 \z@
-                                {-8\p@}%
+                                {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                 {4\p@}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
   \def\subsection{\TB@nolimelabel
                   \TB@startsection{{subsection}%
                                    2%
                                    \z@
-                                   {-8\p@}%
+                                   {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                    {-0.5em\@plus-\fontdimen3\font}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
   \def\subsubsection{\TB@nolimelabel
                      \TB@startsection{{subsubsection}%
                                       3%
                                       \parindent
-                                      {-8\p@}%
+                                      {-8\p@ \@plus-2\p@ \@minus-2\p@}%
                                       {-0.5em\@plus-\fontdimen3\font}%
           {\normalsize\bf\raggedright\hyphenpenalty=\@M}}}
 \fi
@@ -1099,19 +1121,28 @@
 \long\def\@firstofthree#1#2#3{#1}
 \long\def\@secondofthree#1#2#3{#2}
 \long\def\@thirdofthree#1#2#3{#3}
+\newdimen\tubfullpageindent  \tubfullpageindent=4.875pc
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{\small #1: #2}%
-  \ifdim \wd\@tempboxa >\hsize
-    \raggedright\hyphenpenalty=\@M \parindent=1em
-    {\small \noindent #1: #2\par}%
+  \sbox\@tempboxa{\small #1: #2}% try in an hbox
+  \ifdim \wd\@tempboxa > \hsize
+    {% caption doesn't fit on one line; set as a paragraph.
+     \small \raggedright \hyphenpenalty=\@M \parindent=1em
+     % indent full-width captions {figure*}, but not single-column {figure}.
+     \ifdim\hsize = \textwidth
+       \leftskip=\tubfullpageindent \rightskip=\leftskip
+       \advance\rightskip by 0pt plus2em  % increase acceptable raggedness
+     \fi
+     \noindent #1: #2\par}%
   \else
-    \global \@minipagefalse
+    % fits on one line; use the hbox, centered.  Do not reset its glue.
+    \global\@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}
 \def\fnum@figure{{\small \bf \figurename\nobreakspace\thefigure}}
 \def\fnum@table{{\small \bf \tablename\nobreakspace\thetable}}
+\setlength\abovecaptionskip{6pt plus1pt minus1pt}
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xpt\@xiipt
    \abovedisplayskip=3\p@\@plus 3\p@\@minus\p@
@@ -1160,6 +1191,13 @@
 \def\quote{\list{}{\rightmargin.5\leftmargin}\item[]}
 \renewcommand{\quotation}{\list{}{\listparindent 1.5em
      \rightmargin.5\leftmargin\parsep \z@\@plus\p@}\item[]}
+\newenvironment{compactitemize}%
+   {\begin{itemize}%
+     \setlength{\itemsep}{0pt}%
+     \setlength{\parskip}{0pt}%
+     \setlength{\parsep} {0pt}%
+   }%
+   {\end{itemize}}
 \let\@TBverbatim\verbatim
 \let\@TBendverbatim\endverbatim
 \def\verbatim{\par\obeylines
@@ -1331,7 +1369,6 @@
   \dlap{\kern\textheight\kern3pc
         \rlap{\hb@xt@\pagewd{\midrtitle\hfil\midrtitle}}
   }}
-
 \def\MakeRegistrationMarks{}
 \def\UseTrimMarks{%
   \def\MakeRegistrationMarks{%
@@ -1339,15 +1376,30 @@
        \vbox{\dlap{\vbox to\trimlgt{\vfil\botregister}}%
              \topregister\vskip \headmargin \vskip 10\p@}}}}%
   }
-
 \def\@oddhead{\MakeRegistrationMarks\PrelimDraftfooter
   \normalsize\csname normalshape\endcsname\rm
   \rtitlex\qquad\midrtitle \hfil \thepage}
 \def\@evenhead{\MakeRegistrationMarks\PrelimDraftfooter
   \normalsize\csname normalshape\endcsname\rm
   \thepage\hfil\midrtitle\qquad\rtitlex}
-\def\@oddfoot{}
-\def\@evenfoot{}
+
+\def\@tubrunningfull{%
+  \def\@oddfoot{\hfil\rhTitle}
+  \def\@evenfoot{\@author\hfil}
+}
+
+\def\@tubrunninggetauthor#1{#1
+  \begingroup
+    \let\thanks\@gobble
+    \protected@xdef\rhAuthor{\the\toks@##1}%
+  \endgroup
+}%
+
+\def\@tubrunningminimal{%
+  \def\@oddfoot{\hfil}
+  \def\@evenfoot{\hfil}
+}
+
 \def\ps@headings{}
 \pagestyle{headings}
 \def\@outputdblcol{\if@firstcolumn \global\@firstcolumnfalse
-- 
cgit v1.2.3

