diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tugboat/ltugboat.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tugboat/ltugboat.cls | 127 |
1 files changed, 90 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls index 8c4f187781b..3206812055b 100644 --- a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls +++ b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright 1994-2021 TeX Users Group. +%% Copyright 1994-2023 TeX Users Group. %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -32,9 +32,15 @@ %% \NeedsTeXFormat{LaTeX2e}[1994/12/01] \ProvidesClass {ltugboat} - [2022-05-19 v2.27 + [2023-01-16 v2.28 TUGboat journal class% ] +\newif\ifTBunicodeengine +\ifx\Umathchardef\@thisisundefined % not (xetex|luatex) + \TBunicodeenginefalse +\else + \TBunicodeenginetrue +\fi \csname tugstyloaded@\endcsname \def\tugstyloaded@{\tugstyinit\endinput} \providecommand{\@tugclass}{ltugboat} @@ -131,8 +137,13 @@ \fontsize\@xviipt\stbaselineskip\selectfont} \def\tensl{\fontseries{m}\fontshape{sl}\fontsize\@xpt\@xiipt \selectfont} -\def\EdNoteFont{\fontfamily{cmr}\fontseries{m}\fontshape{ui}% - \selectfont} +\ifTBunicodeengine + % there is no "LM unslanted" in OpenType, so use the standard cmu + % scaled for the current text size. Not worth more effort. + \def\EdNoteFont{\font\ednotefont = cmu10 at 1em } +\else % traditional engine: + \def\EdNoteFont{\fontfamily{cmr}\fontseries{m}\fontshape{ui}\selectfont} +\fi \IfFileExists{mflogo.sty}% {\RequirePackage{mflogo}}% {\TBWarning @@ -196,6 +207,7 @@ \providecommand\textsuperscript[1]{\ensuremath{\m@th ^{\mbox{\fontsize\sf@size\z@ \selectfont #1}}}} +\def\tubline{\hbox to \hsize} \DeclareRobustCommand{\AllTeX}{(\La\kern-.075em)\kern-.075em\TeX} \def\AMS{American Mathematical Society} \def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox @@ -319,6 +331,7 @@ \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\pdfTeX{\pdftex} \def\PDF{\acro{PDF}} \def\PGF{\acro{PGF}} \def\PHP{\acro{PHP}} @@ -353,10 +366,24 @@ \def\TeXworks{\TeX\kern-.07em works} \def\TeXXeT{\TeX-{}-\XeT} \def\TFM{\acro{TFM}} -\ifx\Umathchardef\@thisisundefined % not (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 +\ifTBunicodeengine + \AtBeginDocument{% in case a different font is loaded + % \iffontchar is from e-TeX; safe to use under Unicode engines. + \iffontchar\font"1EBF + \def\TBecircacute{\char"1EBF }% + \else + \def\TBecircacute{\^e\llap{\raise 0.5ex\hbox{\'{}}}}% + \fi + \def\Thanh{H\`an~Th\TBecircacute~Th\`anh}% + }% +\else % non-Unicode engine, use our traditional definition. + \def\Thanh{H\`an~Th\^e\llap{\raise 0.5ex\hbox{\'{}}}~Th\`anh} + % We could also go the other direction, and always use the Unicode + % character, after: + % \ifdefined\DeclareUnicodeCharacter + % \DeclareUnicodeCharacter{1EBF}{\^e\llap{\raise 0.5ex\hbox{\'{}}}} + % \fi + % but let's make the smaller change. \fi \def\TikZ{Ti{\em k}Z} \def\ttn{\textsl{TTN}\@} @@ -426,6 +453,10 @@ \def\NoBlackBoxes{\overfullrule=\z@} \def\newline{\hskip\z@\@plus\pagewd\break} \def\tubsentencespace{\spacefactor=3000{}\space\ignorespaces} +\DeclareRobustCommand{\tubdots}{% + .\kern\fontdimen3\font + .\kern\fontdimen3\font + .\kern\fontdimen3\font} \edef\allowhyphens{\noexpand\hyphenpenalty\the\hyphenpenalty\relax \noexpand\exhyphenpenalty\the\exhyphenpenalty\relax} \def\nohyphens{\hyphenpenalty\@M\exhyphenpenalty\@M} @@ -476,20 +507,23 @@ \newskip\raggedparfill \raggedparfill=\z@\@plus 1fil \def\raggedspaces{\spaceskip=.3333em \relax \xspaceskip=.5em \relax } \def\raggedright{% - \nohyphens - \rightskip=\raggedskip\@plus\raggedstretch \raggedspaces + \nohyphens \raggedspaces + \rightskip=\raggedskip\@plus\raggedstretch \parfillskip=\raggedparfill } \def\raggedleft{% - \nohyphens - \leftskip=\raggedskip\@plus\raggedstretch \raggedspaces + \nohyphens \raggedspaces + \leftskip=\raggedskip\@plus\raggedstretch \parfillskip=\z@skip + \let\\ \@centercr % else tabulararray fails, + % https://github.com/lvjr/tabularray/issues/348 } \def\raggedcenter{% - \nohyphens + \nohyphens \raggedspaces \leftskip=\raggedskip\@plus\raggedstretch - \rightskip=\leftskip \raggedspaces - \parindent=\z@ \parfillskip=\z@skip + \rightskip=\leftskip + \parindent=\z@ + \parfillskip=\z@skip } \def\normalspaces{\spaceskip\z@skip \xspaceskip\z@skip} \def\tubjustifiedpar{\rightskip=0pt \parfillskip=0pt plus1fil @@ -523,12 +557,19 @@ {\it #1\/}% no typewriter italics, please \ensuremath{\rangle}% } -\DeclareRobustCommand{\cs}[1]{{\tt \char`\\#1}} -\DeclareRobustCommand{\tubbraced}[1]{\mbox{\texttt{\char`\{#1\char`\}}}} +\DeclareRobustCommand{\cs}[1]{\texorpdfstring + {{\tt \char`\\#1}}% + {\textbackslash #1}% +} +\DeclareRobustCommand{\tubbraced}[1]{\texorpdfstring + {\mbox{\texttt{\char`\{#1\char`\}}}}% + {\textbraceleft #1\textbraceright}% +} \DeclareRobustCommand{\env}[1]{\cs{begin}\tubbraced{#1}} \DeclareRobustCommand{\thinskip}{\hskip 0.16667em\relax} \AtBeginDocument{% \ifx\hyper@normalise\undefined + \def\tburl{\url}% \def\tbsurl{\url}% no hyperref, so just \url is fine. \def\tbhurl{\url}% \ifx\url\undefined \let\url\texttt \fi % er, make sure \url is defined @@ -536,6 +577,7 @@ % This hyperref hook-in is due to Ulrike Fischer. % \url{https://github.com/latex3/hyperref/issues/125}. % \tb[sh]url@ are defined next. + \DeclareRobustCommand*{\tburl}{\tbsurl}% \DeclareRobustCommand*{\tbsurl}{\hyper@normalise\tbsurl@}% \DeclareRobustCommand*{\tbhurl}{\hyper@normalise\tbhurl@} \fi @@ -544,9 +586,17 @@ \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} + \str_if_in:NnTF \l_tmpa_str {http://} + { + \expandafter\hyper@linkurl + \expandafter{\expandafter\Hurl\expandafter{\l_tmpa_str}}{\l_tmpa_str} + } + { + \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 { @@ -556,6 +606,7 @@ {\l_tmpa_str}}{http://\l_tmpa_str} } \ExplSyntaxOff +\def\tburlfootnote{\tbsurlfootnote} \def\tbsurlfootnote#1{\footnote{\raggedright\tbsurl{#1}}} \def\tbhurlfootnote#1{\footnote{\raggedright\tbhurl{#1}}} \DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi} @@ -615,7 +666,8 @@ \therevauth\therevtitle\therevpubinfo\endgraf}% \vskip\medskipamount } -\def\booktitle#1{{\slshape\frenchspacing#1\/}} +\def\titleref#1{{\slshape\frenchspacing#1\/}} +\let\booktitle=\titleref % older name \newcount\issueseqno \issueseqno=-1 \def\v@lx{\gdef\volx{Volume~\volno~(\volyr), No.~\issno}} \def\volyr{} @@ -707,7 +759,7 @@ \ifx\tubomithyphenations\@thisisundefined \hyphenation{Del-a-ware Dijk-stra Duane Eijk-hout Flor-i-da Free-BSD Ghost-script Ghost-view - Hara-lam-bous Jac-kow-ski Ja-pa-nese Karls-ruhe + Hara-lam-bous Jac-kow-ski Ja-pa-nese Karls-ruhe Lua-Meta Mac-OS Ma-la-ya-lam Math-Sci-Net Net-BSD Open-BSD Open-Office Pak-i-stan Pfa-Edit Post-Script Rich-ard Skoup South-all @@ -741,19 +793,19 @@ } \fi \PrelimDrafttrue -\textheight 54pc -\textwidth 39pc -\columnsep 1.5pc -\columnwidth 18.75pc +\textheight 54pc % 648pt = 645.58bp = 8.97in +\textwidth 39pc % 468pt = 466.25bp = 6.48in +\columnsep 1.5pc % 18pt = 17.93bp = .249in +\columnwidth 18.75pc % 225pt = 224.16bp = 3.11in \hfuzz 1pt -\parindent \normalparindent +\parindent \normalparindent % 20pt \parskip \z@ % \@plus\p@ \leftmargini 2em \leftmarginv .5em \leftmarginvi .5em \oddsidemargin \z@ \evensidemargin \z@ -\topmargin -2.5pc +\topmargin -2.5pc % 30pt = 29.89bp = .415in \headheight 12\p@ \headsep 20\p@ \marginparwidth 48\p@ @@ -1166,25 +1218,26 @@ \end{center} \vspace{.5\baselineskip}} \def\tubsechook{} +\def\tubsecfmt{\normalsize\bf\raggedright\frenchspacing\nohyphens\tubsechook} \if@numbersec \def\section{\TB@startsection{{section}% 1% \z@ {-8\p@ \@plus-2\p@ \@minus-2\p@}% {4\p@}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \def\subsection{\TB@startsection{{subsection}% 2% \z@ {-8\p@ \@plus-2\p@ \@minus-2\p@}% {4\p@}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \def\subsubsection{\TB@startsection{{subsubsection}% 3% \z@ {-8\p@ \@plus-2\p@ \@minus-2\p@}% {4\p@}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \def\paragraph{\TB@startsection{{paragraph}% 4% \z@ @@ -1199,21 +1252,21 @@ \z@ {-8\p@ \@plus-2\p@ \@minus-2\p@}% {4\p@}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \def\subsection{\TB@nolimelabel \TB@startsection{{subsection}% 2% \z@ {-8\p@ \@plus-2\p@ \@minus-2\p@}% {-0.5em\@plus-\fontdimen3\font}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \def\subsubsection{\TB@nolimelabel \TB@startsection{{subsubsection}% 3% \parindent {-8\p@ \@plus-2\p@ \@minus-2\p@}% {-0.5em\@plus-\fontdimen3\font}% - {\normalsize\bf\raggedright\hyphenpenalty\@M\tubsechook}}} + {\tubsecfmt}}} \fi \def\TB@startsection#1{\@startsection#1}% \def\TB@safe@startsection#1{\@startsection#1} @@ -1357,10 +1410,10 @@ \def\@listii{% \leftmargin\leftmarginii \labelwidth=\leftmarginii \advance\labelwidth-\labelsep - \topsep=2\p@\@plus\p@\@minus\p@ + \topsep=2\p@\@plus\p@\@minus\p@ % space between first item and preceding \parsep=\p@\@plus\p@\@minus\p@ - \itemsep=\parsep - \listparindent=1em + \itemsep=\parsep % space between successive items + \listparindent=1em % indentation of subsequent paragraphs } \def\@listiii{% |