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.cls132
1 files changed, 75 insertions, 57 deletions
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index e4e39182297..f84655e5060 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}
- [2023-10-28 v2.31
+ [2024-04-15 v2.32
TUGboat journal class%
]
\newif\ifTBunicodeengine
@@ -407,6 +407,7 @@
\def\WEB{\texttt{WEB}\@}
\def\WEAVE{\texttt{WEAVE}\@}
\def\WYSIWYG{\acro{WYSIWYG}}
+\def\YAML{\acro{YAML}}
\def\tubreflect#1{%
\@ifundefined{reflectbox}{%
\TBError{A graphics package must be loaded to use \string\XeTeX}
@@ -601,11 +602,13 @@
\str_set:Nn\l_tmpa_str{#1}
\str_if_in:NnTF \l_tmpa_str {http://}
{
- \expandafter\hyper@linkurl
- \expandafter{\expandafter\Hurl\expandafter{\l_tmpa_str}}{\l_tmpa_str}
+ \tbhurl@{#1} % if http, redirect to remove protocol
+ % this version prints the http, as we originally thought was better.
+ % \expandafter\hyper@linkurl
+ % \expandafter{\expandafter\Hurl\expandafter{\l_tmpa_str}}{\l_tmpa_str}
}
{
- \str_remove_once:Nn\l_tmpa_str{https://}
+ \str_remove_once:Nn \l_tmpa_str {https://}
\expandafter\hyper@linkurl
\expandafter{\expandafter\Hurl\expandafter{\l_tmpa_str}}
{https://\l_tmpa_str}
@@ -614,7 +617,7 @@
\def\tbhurl@#1 % http
{
\str_set:Nn\l_tmpa_str{#1}
- \str_remove_once:Nn\l_tmpa_str{http://}
+ \str_remove_once:Nn \l_tmpa_str {http://}
\expandafter\hyper@linkurl\expandafter{\expandafter\Hurl\expandafter
{\l_tmpa_str}}{http://\l_tmpa_str}
}
@@ -1124,9 +1127,9 @@
{\WideSecTitlefalse\def\s@ctitle}%
}
\newdimen\PreTitleDrop \PreTitleDrop=\z@
-\newskip\AboveTitleSkip \AboveTitleSkip=12\p@
-\newskip\BelowTitleSkip \BelowTitleSkip=8\p@
-\newdimen\strulethickness \strulethickness=.6\p@
+\newskip\AboveTitleSkip \AboveTitleSkip=12pt
+\newskip\BelowTitleSkip \BelowTitleSkip=8pt plus2pt minus1pt
+\newdimen\strulethickness \strulethickness=.6pt
\def\@sectitle #1{%
\par
\penalty-1000
@@ -1242,54 +1245,65 @@
\vspace{.5\baselineskip}}
\def\tubsechook{}
\def\tubsecfmt{\normalsize\bf\raggedright\frenchspacing\nohyphens\tubsechook}
+\def\tubruninglue{-1em plus-2\fontdimen3\font minus-\fontdimen4\font}
+\def\tubruninsecfmt{\normalsize\bf\tubsechook}
\if@numbersec
- \def\section{\TB@startsection{{section}%
- 1%
- \z@
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {4\p@}%
- {\tubsecfmt}}}
- \def\subsection{\TB@startsection{{subsection}%
- 2%
- \z@
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {4\p@}%
- {\tubsecfmt}}}
- \def\subsubsection{\TB@startsection{{subsubsection}%
- 3%
- \z@
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {4\p@}%
- {\tubsecfmt}}}
- \def\paragraph{\TB@startsection{{paragraph}%
- 4%
- \z@
- {4\p@ \@plus1\p@ \@minus1\p@}%
- {-1em}%
- {\normalsize\bf\tubsechook}}}
+ \def\section{\TB@startsection{%
+ {section} % name of counter
+ {1} % level
+ {0pt} % indent
+ {-8pt plus-2pt minus-2pt} % beforeskip; negative -> \noindent after
+ {4pt} % afterskip; negative -> hspace for run-in
+ {\tubsecfmt}}} % style
+ %
+ \def\subsection{\TB@startsection{%
+ {subsection}%
+ 2%
+ \z@
+ {-8\p@ \@plus-2\p@ \@minus-2\p@}%
+ {4\p@}%
+ {\tubsecfmt}}}
+ %
+ \def\subsubsection{\TB@startsection{%
+ {subsubsection}%
+ 3%
+ \z@
+ {-8\p@ \@plus-2\p@ \@minus-2\p@}%
+ {4\p@}%
+ {\tubsecfmt}}}
+ %
+ \def\paragraph{\TB@startsection{%
+ {paragraph}%
+ 4%
+ \z@
+ {4\p@ \@plus1\p@ \@minus1\p@}%
+ {\tubruninglue}
+ {\tubruninsecfmt}}}
\else
\setcounter{secnumdepth}{0}
- \def\section{\TB@nolimelabel
- \TB@startsection{{section}%
- 1%
- \z@
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {4\p@}%
- {\tubsecfmt}}}
- \def\subsection{\TB@nolimelabel
- \TB@startsection{{subsection}%
- 2%
- \z@
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {-0.5em\@plus-\fontdimen3\font}%
- {\tubsecfmt}}}
- \def\subsubsection{\TB@nolimelabel
- \TB@startsection{{subsubsection}%
- 3%
- \parindent
- {-8\p@ \@plus-2\p@ \@minus-2\p@}%
- {-0.5em\@plus-\fontdimen3\font}%
- {\tubsecfmt}}}
+ \def\section{\TB@nolimelabel\TB@startsection{%
+ {section}% same as numbeed
+ 1%
+ \z@
+ {-8\p@ \@plus-2\p@ \@minus-2\p@}%
+ {4\p@}%
+ {\tubsecfmt}}}
+ %
+ \def\subsection{\TB@nolimelabel\TB@startsection{%
+ {subsection}%
+ 2%
+ \z@
+ {-8\p@ \@plus-2\p@ \@minus-2\p@}%
+ {\tubruninglue}
+ {\tubruninsecfmt}}}
+ %
+ \def\subsubsection{\TB@nolimelabel\TB@startsection{
+ {subsubsection}%
+ 3%
+ \parindent
+ {-8\p@ \@plus-2\p@ \@minus-2\p@}%
+ {\tubruninglue}
+ {\tubruninsecfmt}}}
\fi
\def\TB@startsection#1{\@startsection#1}%
\def\TB@safe@startsection#1{\@startsection#1}
@@ -1451,7 +1465,12 @@
\def\fnum@figure{{\tubcaptionfonts \bf \figurename\nobreakspace\thefigure}}
\def\fnum@table{{\tubcaptionfonts \bf \tablename\nobreakspace\thetable}}
\def\lstlistingnamestyle{\bfseries}
-\setlength\abovecaptionskip{3pt plus2pt minus1pt}
+\setlength\abovecaptionskip{3pt plus1pt minus1pt}
+\setlength\floatsep { 9pt plus3pt minus2pt} % default 12pt plus2pt minus2pt
+\setlength\textfloatsep{12pt plus4pt minus3pt} % default 20pt plus2pt minus4pt
+\setcounter{bottomnumber}{2} % default 1
+\setcounter{topnumber}{4} % default 2
+\setcounter{totalnumber}{6} % default 3
\renewcommand{\normalsize}{%
\@setfontsize\normalsize\@xpt\@xiipt
\abovedisplayskip=3\p@\@plus 3\p@\@minus\p@
@@ -1858,12 +1877,11 @@
\def\supportfootnote{\nomarkfootnote\relax}
\gdef\nomarkfootnote#1#2{\begingroup
\def\thefootnote{}%
- % no period, please, also no fnmark.
+ % no period, please, also no fnmark. Also no hyperref warning.
\def\@makefntext##1{##1}%
\def\Hy@Warning##1{}%
\footnotetext{\noindent #1#2}%
- \endgroup
-}
+\endgroup}
\if@Harvardcite
\AtBeginDocument{%
\bibliographystyle{ltugbib}%