summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tugboat/tugboat.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tugboat/tugboat.dtx')
-rw-r--r--macros/latex/contrib/tugboat/tugboat.dtx61
1 files changed, 47 insertions, 14 deletions
diff --git a/macros/latex/contrib/tugboat/tugboat.dtx b/macros/latex/contrib/tugboat/tugboat.dtx
index 176107a4d9..973d05a646 100644
--- a/macros/latex/contrib/tugboat/tugboat.dtx
+++ b/macros/latex/contrib/tugboat/tugboat.dtx
@@ -1,8 +1,8 @@
% \iffalse (this is a meta-comment (so they say))
-% $Id: tugboat.dtx 217 2018-12-14 18:48:06Z karl $
+% $Id: tugboat.dtx 261 2019-11-09 22:00:31Z karl $
% tugboat.dtx - main source for LaTeX TUGboat classes.
%
-% Copyright 1994-2018 TeX Users Group.
+% Copyright 1994-2019 TeX Users Group.
%
% This file is part of the tugboat package.
%
@@ -28,7 +28,7 @@
%<ltugboatsty>\ProvidesPackage{ltugboat}
%<ltugprocsty>\ProvidesPackage{ltugproc}
%<ltugcomn> \ProvidesPackage{ltugcomn}
- [2018-12-14 v2.21
+ [2019-11-09 v2.22
%<ltugboatcls> TUGboat journal class%
%<ltugproccls> TUG conference proceedings class%
%<ltugboatsty|ltugprocsty> TUG compatibility package%
@@ -65,8 +65,8 @@
%
\usepackage{array,longtable}
%
-% if longtable.sty is the most recent, then it doesn't need
-% \cs{setlongtables}, so we avoid the setlong.tab game
+% If longtable.sty is not ancient, then it doesn't need
+% \cs{setlongtables}, so we avoid the setlong.tab game.
\GetFileInfo{longtable.sty}
\def\extractdate#1/#2/#3\relax{\def\fileyear{#1}%
\def\filemonth{#2}%
@@ -671,6 +671,9 @@
}
\def\BibLaTeX{\Bib\kern.02em \LaTeX}
\def\BibTeX{\Bib\kern-.08em \TeX}
+% no good way to determine bold font, and we want to lose the kern, too:
+% (we \let BibTeX to this in maketitle)
+\def\bfBibTeX{B{\SMC\SMC IB}\TeX}
%
\def\BSD{\acro{BSD}}
\def\CandT{\textsl{Computers \& Typesetting}}
@@ -697,7 +700,8 @@
\def\DVItoVDU{DVIto\kern-.12em VDU}
\def\ECMA{\acro{ECMA}}
\def\EPS{\acro{EPS}}
-\DeclareRobustCommand{\eTeX}{\ensuremath{\varepsilon}-\kern-.125em\TeX}
+% no line break at this hyphen please
+\DeclareRobustCommand{\eTeX}{\ensuremath{\varepsilon}\mbox{-}\kern-.125em\TeX}
\DeclareRobustCommand{\ExTeX}{%
\ensuremath{\textstyle\varepsilon_{\kern-0.15em\cal{X}}}\kern-.2em\TeX}
\def\FAQ{\acro{FAQ}}
@@ -708,6 +712,7 @@
\def\Hawaii{Hawai`i}
\def\HTML{\acro{HTML}}
\def\HTTP{\acro{HTTP}}
+\def\iOS{i\acro{OS}}
\def\IDE{\acro{IDE}}
\def\IEEE{\acro{IEEE}}
\def\ISBN{\acro{ISBN}}
@@ -748,17 +753,22 @@
%
% \begin{macrocode}
%<!latex>\def\LaTeX{\La\kern-.15em\TeX}
+\def\LuaHBTeX{Lua\acro{HB}\-\TeX}%
+\def\LuaHBLaTeX{Lua\acro{HB}\-\LaTeX}%
+\def\LuaLaTeX{Lua\-\LaTeX}% dtk-logos defines it and people like to use it
+\def\LuaTeX{Lua\-\TeX}% ditto
\def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX}
+\def\macOS{mac\acro{OS}}
\def\MacOSX{Mac\,\acro{OS\,X}}
\def\MathML{Math\acro{ML}}
\def\Mc{\setbox\TestBox=\hbox{M}M\vbox
to\ht\TestBox{\hbox{c}\vfil}} % for Robert McGaffey
% \end{macrocode}
%
-% If we're running under \LaTeXe, we're using (at least pro tem) Ulrik
-% Vieth's |mflogo.sty| if it's present. Otherwise, we're using a
-% short extract of Vieth's stuff. Either way, we don't need to
-% specify \cs{MF} or \cs{MP}
+% If we're running under \LaTeXe, we use Ulrik Vieth's |mflogo.sty| if
+% it's present. Otherwise, we're using a short extract of Vieth's
+% stuff. Either way, we don't need to specify \cs{MF} or \cs{MP}.
+%
% \begin{macrocode}
\def\mf{\textsc{Metafont}}
\def\MFB{\textsl{The \MF\kern1pt book}}
@@ -791,6 +801,8 @@
\def\pcMF{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}MF\@}
\def\PCTeX{PC\thinspace\TeX}
\def\pcTeX{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}\TeX}
+\def\pdflatex{pdf\-\LaTeX}% dtk-logos
+\def\pdftex{pdf\-\TeX}% dtk-logos
\def\PDF{\acro{PDF}}
\def\PGF{\acro{PGF}}
\def\PHP{\acro{PHP}}
@@ -824,7 +836,7 @@
\def\TeXworks{\TeX\kern-.07em works}
\def\TeXXeT{\TeX-{}-\XeT}
\def\TFM{\acro{TFM}}
-\expandafter\ifx\csname XeTeXrevision\endcsname\relax
+\ifx\Umathchardef\@thisisundefined % xetex|luatex
\def\Thanh{H\`an~Th\^e\llap{\raise 0.5ex\hbox{\'{}}}~Th\`anh}% non-XeTeX
\else
\def\Thanh{H\`an~Th\textcircumacute{e}~Th\`anh}% else xunicode drops the acute
@@ -874,6 +886,12 @@
\DeclareRobustCommand{\Xe}{\leavevmode
\tubhideheight{\hbox{X%
\setbox0=\hbox{\TeX}\setbox1=\hbox{E}%
+ \ifdim \fontdimen1\font>0pt
+ % XeTeX logo needs tinkering when slanted/italic font.
+ \def\XekernbeforeE{-.11em}%
+ \def\XekernafterE{-.11em}%
+ \dp1=-.17ex
+ \fi
\lower\dp0\hbox{\raise\dp1\hbox{\kern\XekernbeforeE\tubreflect{E}}}%
\kern\XekernafterE}}}
\def\XeTeX{\Xe\TeX}
@@ -1154,6 +1172,15 @@
% but fine, just keeping it.
\DeclareRobustCommand{\thinskip}{\hskip 0.16667em\relax}
%
+% Make \! work in text mode.
+\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
+%
+% Half a thinspace.
+\DeclareRobustCommand{\tubthinnerspace}
+ {\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
+\DeclareRobustCommand{\tubthinnerspaceneg}
+ {\ifmmode\mskip-.5\thinmuskip \else\kern-0.08333em \fi}
+%
% \end{macrocode}
%
% We play a merry game with dashes, providing all conceivable options
@@ -2277,7 +2304,10 @@
\let\and=\quad
\ignorespaces\@author}%
{%
- \noindent\bf\raggedright\ignorespaces\frenchspacing\@title\endgraf
+ \noindent\bf\raggedright\ignorespaces\frenchspacing
+ \let\BibTeX=\bfBibTeX % else LaTeX Font Warning:
+ % Font shape `OT1/cmr/bx/sc' undefined
+ \@title\endgraf
}%
\ifdim \wd0 < 5\p@ % omit if author is null
\else
@@ -2484,7 +2514,7 @@
%
% \begin{macrocode}
\def\TBtocsectionfont{\normalfont}
-\newskip\TBtocsectionspace \TBtocsectionspace=1.0em\@plus\p@
+\newskip\TBtocsectionspace \TBtocsectionspace=1.0ex\@plus\p@
% \end{macrocode}
%
% \begin{macrocode}
@@ -3212,9 +3242,11 @@
}
% put issue identification and page number in header.
\def\@oddhead{\MakeRegistrationMarks
+ \frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
\rtitlex\qquad \midrtitle\hfil \rtitlenexttopage\quad \thepage}
\def\@evenhead{\MakeRegistrationMarks
+ \frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
\thepage \quad\rtitlenexttopage \hfil\midrtitle \qquad\rtitlex}
@@ -3222,6 +3254,7 @@
\def\tubheadhook{}
% in case the official \author is too verbose for the footline.
+% (the \shortauthor / \rhAuthor stuff is only enabled for proceedings, fix!)
\def\tubrunningauthor{\@author}
% put title and author in footer.
@@ -3231,7 +3264,7 @@
\let\newline=\\%
\frenchspacing
\hfil\rhTitle}
- \def\@evenfoot{\tubrunningauthor\hfil}
+ \def\@evenfoot{\frenchspacing \let\thanks\@gobble \tubrunningauthor\hfil}
}
% empty footer.