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.cls32
1 files changed, 26 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index f41e2b75b22..8c4f187781b 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-10-12 v2.26
+ [2022-05-19 v2.27
TUGboat journal class%
]
\csname tugstyloaded@\endcsname
@@ -90,6 +90,7 @@
\ifx\undefined\pdfstringdefDisableCommands\else
\pdfstringdefDisableCommands{%
\let\acro\relax
+ \let\origDash=\Dash \def\Dash{\texorpdfstring{\origDash}{--}}%
% lots more could be added.
}%
\fi
@@ -236,7 +237,18 @@
\def\DVItoVDU{DVIto\kern-.12em VDU}
\def\ECMA{\acro{ECMA}}
\def\EPS{\acro{EPS}}
-\DeclareRobustCommand{\eTeX}{\ensuremath{\varepsilon}\mbox{-}\kern-.125em\TeX}
+\def\TUBdefaulteTeX{\ensuremath{\varepsilon}\mbox{-}\kern-.125em\TeX}%
+\DeclareRobustCommand{\eTeX}{%
+ \ifx\f@series\bfseries@rm
+ \ifx\boldsymbol\undefined % \boldsymbol is from amsmath; also support bm?
+ \TUBdefaulteTeX
+ \else
+ \ensuremath{\boldsymbol{\varepsilon}}\mbox{-}\kern-.125em\TeX
+ \fi
+ \else
+ \TUBdefaulteTeX
+ \fi
+}
\DeclareRobustCommand{\ExTeX}{%
\ensuremath{\textstyle\varepsilon_{\kern-0.15em\cal{X}}}\kern-.2em\TeX}
\def\FAQ{\acro{FAQ}}
@@ -258,7 +270,7 @@
\def\JTeX{\leavevmode\hbox{\lower.5ex\hbox{J}\kern-.18em\TeX}}
\def\JoT{\textsl{The Joy of \TeX}}
\DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em%
- M\kern.05em A\kern.1em-\kern.1em Script}}
+ M\kern.05em A\kern.1em\hyph\kern.1em Script}}
\def\LAMSTeX{L\raise.42ex\hbox{\kern-.3em
$\m@th$\fontsize\sf@size\z@\selectfont
$\m@th\mathcal{A}$}%
@@ -413,6 +425,7 @@
\def\BlackBoxes{\overfullrule=5\p@}
\def\NoBlackBoxes{\overfullrule=\z@}
\def\newline{\hskip\z@\@plus\pagewd\break}
+\def\tubsentencespace{\spacefactor=3000{}\space\ignorespaces}
\edef\allowhyphens{\noexpand\hyphenpenalty\the\hyphenpenalty\relax
\noexpand\exhyphenpenalty\the\exhyphenpenalty\relax}
\def\nohyphens{\hyphenpenalty\@M\exhyphenpenalty\@M}
@@ -479,6 +492,8 @@
\parindent=\z@ \parfillskip=\z@skip
}
\def\normalspaces{\spaceskip\z@skip \xspaceskip\z@skip}
+\def\tubjustifiedpar{\rightskip=0pt \parfillskip=0pt plus1fil
+ \allowhyphens \normalspaces}
\let\latexnobreakspace=\nobreakspace
\DeclareRobustCommand{\nobreakspace}{\unskip\nobreak\ \ignorespaces}
\def\boxcs#1{\box\csname#1\endcsname}
@@ -533,7 +548,6 @@
\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}
@@ -542,6 +556,8 @@
{\l_tmpa_str}}{http://\l_tmpa_str}
}
\ExplSyntaxOff
+\def\tbsurlfootnote#1{\footnote{\raggedright\tbsurl{#1}}}
+\def\tbhurlfootnote#1{\footnote{\raggedright\tbhurl{#1}}}
\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
\DeclareRobustCommand{\tubthinnerspace}
{\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
@@ -1275,8 +1291,12 @@
\@esphack
}
\let\@currentlabelname\@empty
-\DeclareRobustCommand{\nameref}[1]{\expandafter\@setref
- \csname r@nr@#1\endcsname\@secondoftwo{#1}}
+\AtBeginDocument{%
+ \providecommand\nameref[1]{%
+ \expandafter\@setref
+ \csname r@nr@#1\endcsname\@secondoftwo{#1}%
+ }%
+}
\newdimen\@tubfullpageindent
\@tubfullpageindent = \if@tubtwocolumn 4.875pc \else 3.875pc \fi
\let\tubcaptionleftglue=\hfil