summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty87
1 files changed, 67 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty b/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
index c24aa60a101..f54600aa574 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
@@ -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]
\ProvidesPackage{ltugcomn}
- [2022-05-19 v2.27
+ [2023-01-16 v2.28
TUGboat `common macros' package%
]
+\newif\ifTBunicodeengine
+\ifx\Umathchardef\@thisisundefined % not (xetex|luatex)
+ \TBunicodeenginefalse
+\else
+ \TBunicodeenginetrue
+\fi
\IfFileExists{mflogo.sty}%
{\RequirePackage{mflogo}}%
{\PackageWarning{ltugcomn}
@@ -98,6 +104,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
@@ -221,6 +228,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}}
@@ -255,10 +263,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}\@}
@@ -328,6 +350,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}
@@ -378,20 +404,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
@@ -425,12 +454,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
@@ -438,6 +474,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
@@ -446,9 +483,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
{
@@ -458,6 +503,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}
@@ -517,7 +563,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{}
@@ -609,7 +656,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