summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tugboat/ltugboat.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugboat.cls39
1 files changed, 33 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index b88ca03849d..f41e2b75b22 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
@@ -32,7 +32,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass {ltugboat}
- [2021-06-27 v2.25
+ [2021-10-12 v2.26
TUGboat journal class%
]
\csname tugstyloaded@\endcsname
@@ -86,6 +86,13 @@
\ifx\undefined\texorpdfstring
\DeclareRobustCommand{\texorpdfstring}[2]{#1}%
\fi
+ %
+ \ifx\undefined\pdfstringdefDisableCommands\else
+ \pdfstringdefDisableCommands{%
+ \let\acro\relax
+ % lots more could be added.
+ }%
+ \fi
}
\DeclareOption{11pt}{%
\TBWarning{The \@tugclass\space class only supports 10pt fonts:
@@ -237,6 +244,7 @@
\def\Ghostscript{Ghost\-script}
\def\GNU{\acro{GNU}}
\def\GUI{\acro{GUI}}
+\DeclareRobustCommand{\HarfBuzz}{Harf\discretionary{-}{}{\kern.077em}Buzz}
\def\Hawaii{Hawai`i}
\def\HTML{\acro{HTML}}
\def\HTTP{\acro{HTTP}}
@@ -382,7 +390,7 @@
\ifdim \fontdimen1\font>0pt
% XeTeX logo needs tinkering when slanted/italic font.
\def\XekernbeforeE{-.11em}%
- \def\XekernafterE{-.11em}%
+ \def\XekernafterE{-.16em}%
\dp1=-.17ex
\fi
\lower\dp0\hbox{\raise\dp1\hbox{\kern\XekernbeforeE\tubreflect{E}}}%
@@ -512,12 +520,28 @@
\else
% This hyperref hook-in is due to Ulrike Fischer.
% \url{https://github.com/latex3/hyperref/issues/125}.
+ % \tb[sh]url@ are defined next.
\DeclareRobustCommand*{\tbsurl}{\hyper@normalise\tbsurl@}%
- \def\tbsurl@#1{\hyper@linkurl{\Hurl{#1}}{https://#1}}%
\DeclareRobustCommand*{\tbhurl}{\hyper@normalise\tbhurl@}
- \def\tbhurl@#1{\hyper@linkurl{\Hurl{#1}}{http://#1}}%
\fi
}
+\ExplSyntaxOn
+\def\tbsurl@#1 % https
+ {
+ \str_set:Nn\l_tmpa_str{#1}
+ \str_remove_once:Nn\l_tmpa_str{https://}
+ \expandafter\hyper@linkurl\expandafter{\expandafter\Hurl\expandafter
+ {\l_tmpa_str}}{https://\l_tmpa_str}
+ }
+
+\def\tbhurl@#1 % http
+ {
+ \str_set:Nn\l_tmpa_str{#1}
+ \str_remove_once:Nn\l_tmpa_str{http://}
+ \expandafter\hyper@linkurl\expandafter{\expandafter\Hurl\expandafter
+ {\l_tmpa_str}}{http://\l_tmpa_str}
+ }
+\ExplSyntaxOff
\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
\DeclareRobustCommand{\tubthinnerspace}
{\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
@@ -849,13 +873,13 @@
\def\|{\unskip\hfil\break}%
\def\\{\endgraf}%
\def\phone{\rm Phone: }%
- \def\tubmultipleaffilauthor{\\\hspace*{1em}}%
+ \def\tubmultipleaffilauthor{\unskip,\\\hspace*{1em}}%
\rm\@signature}%
}%
\ifnum\authornumber<0 \endgroup\fi
}
\def\signaturemark{\leavevmode\llap{$\diamond$\enspace}}
-\def\tubmultipleaffilauthor{\unskip, \ignorespaces}%
+\def\tubmultipleaffilauthor{\unskip,\ \ignorespaces}%
\def\tubmultipleaffilnet{\unskip\textrm{\,,\ \ignorespaces}}
\newcount\authornumber
\authornumber=0
@@ -1279,6 +1303,7 @@
\def\tubmakecaptionbox#1#2{#1:\ #2}% allow overriding for a paper
\def\fnum@figure{{\tubcaptionfonts \bf \figurename\nobreakspace\thefigure}}
\def\fnum@table{{\tubcaptionfonts \bf \tablename\nobreakspace\thetable}}
+\def\lstlistingnamestyle{\bfseries}
\setlength\abovecaptionskip{6pt plus1pt minus1pt}
\renewcommand{\normalsize}{%
\@setfontsize\normalsize\@xpt\@xiipt
@@ -1567,6 +1592,7 @@
\def\ps@headings{}
\pagestyle{headings}
\def\tubdoiprefix{10.47397/tb} % the number crossref assigned us
+\def\tubabovedoi{} % fudge spacing or whatever.
\def\tubtypesetdoi{\iftubomitdoioption\else % if not explicit omission ...
\iftubfinaloption % do this if [final], even if pageno>900
\vbox to 0pt{% don't impact normal layout
@@ -1574,6 +1600,7 @@
doi.org/\tubdoiprefix/\volno-\issno/\jobname}%
\scriptsize
\vskip\baselineskip
+ \tubabovedoi
\iftubsecondcolstart \moveright \tubcolwidthandgutter \fi
\rlap{\expandafter\tbsurl\expandafter{\thedoi}}%
\vss