summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-29 20:14:35 +0000
committerKarl Berry <karl@freefriends.org>2023-10-29 20:14:35 +0000
commitbef70b5dd24c17e6df95e9c1fc5c1fc408f1fbe3 (patch)
tree455c65d57031242eda08d86b8b637ef582fa88b7 /Master
parent07f9bc8e4e0c5be75287499f4f1f08025ca54d0c (diff)
tugboat (29oct23)
git-svn-id: svn://tug.org/texlive/trunk@68694 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst160
-rw-r--r--Master/texmf-dist/doc/latex/tugboat/NEWS24
-rw-r--r--Master/texmf-dist/doc/latex/tugboat/ltubguid.ltx739
-rw-r--r--Master/texmf-dist/doc/latex/tugboat/ltubguid.pdfbin364822 -> 328791 bytes
-rw-r--r--Master/texmf-dist/doc/latex/tugboat/tugboat-code.pdfbin519269 -> 521480 bytes
-rw-r--r--Master/texmf-dist/source/latex/tugboat/tugboat.dtx201
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugboat.cls98
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugboat.sty2
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty53
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugproc.cls4
-rw-r--r--Master/texmf-dist/tex/latex/tugboat/ltugproc.sty2
11 files changed, 759 insertions, 524 deletions
diff --git a/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst b/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
index 403256d1a41..0c507119b7d 100644
--- a/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
+++ b/Master/texmf-dist/bibtex/bst/tugboat/tugboat.bst
@@ -1,34 +1,38 @@
-%%% $Id: tugboat.bst 487 2023-06-22 22:39:59Z karl $
+%%% $Id: tugboat.bst 529 2023-10-27 16:32:42Z karl $
%%% TUGboat changes are public domain.
%%%
%%% Modified for TUGboat from abbrvurl.bst:
%%% New entry types: @ctan (see ctanbib);
%%% @online and @software (aliases for @misc).
%%% For @misc, the editor field is accepted along with author.
+%%% For @misc, the organization field is output.
%%% New field bookauthor for @incollection and @inproceedings.
%%% Abbreviate "page(s)" to "p(p).",
%%% "volume" to "vol.",
%%% "editor(s)" to "ed(s).",
%%% "edition" to "ed.".
%%% Output "Ph.D." rather than "PhD".
-%%% Output "No." and "no." for number field.
-%%% Omit spaces between author initials, like "A.B. Smith".
+%%% In number field, output "No." and "no.".
+%%% In month field, output numbers 01..12 as our preferred abbreviations.
+%%% Omit spaces between author initials, as in "A.B. Smith".
%%% Set urlintro="" and onlinestring="" to omit labels from output.
%%% Use \url instead of \href, so we don't require hyperref.
%%% Always use https://doi.org/ for the doi url; omit "doi:" from output.
%%% If doi or howpublished is present, omit url, since in practice
%%% they are usually all the same thing. Should check if
-%%% howpublished is in fact a url, though.
+%%% howpublished is in fact a url, but we currently don't.
%%% Truncate long author lists in format.names (max.names, trunc.num);
%%% omit "and" from author lists, per Oren P.
%%% Use \emph instead of \em so we get automatic italic corrections.
%%% New fields for editors:
%%% "journaltie" - ~ instead of space after journal name.
-%%% "newpage" - force page break after entry;
+%%% "monthtie" - ~ instead of space after month name.
+%%% "newpage" - force page break after entry.
%%% "nowarning" - if set, omit empty field warnings from output.check.
+%%% "pagesnodashify" - if set, don't convert - to -- in pages field.
%%% "prebibitem" - material output before \bibitem, with newline appended
%%% (for example, section headings).
-%%% "urlnewline" - force line break before url or doi value;
+%%% "urlnewline" - force line break before url or doi value.
%%% --karl, originally created 24jul18.
%%%
%%% Modification of BibTeX style file /usr/local/texlive/2009/texmf-dist/bibtex/bst/base/abbrv.bst
@@ -84,12 +88,13 @@ ENTRY
urldate % ctan
version % ctan
%
- journaltie % tub
- monthtie % tub
- newpage % tub
- nowarning % tub
- prebibitem % tub
- urlnewline % tub
+ journaltie % tub
+ monthtie % tub
+ newpage % tub
+ nowarning % tub
+ pagesnodashify % tub
+ prebibitem % tub
+ urlnewline % tub
}
{}
{ label }
@@ -109,22 +114,22 @@ FUNCTION {init.urlbst.variables}
% The following constants may be adjusted by hand, if desired
% The first set allow you to enable or disable certain functionality.
- #0 'addeprints := % 0=no eprints; 1=include eprints
+ #1 'addeprints := % 0=no eprints; 1=include eprints
#1 'adddoiresolver := % 0=no DOI resolver; 1=include it
#1 'addpubmedresolver := % 0=no PUBMED resolver; 1=include it
#2 'hrefform := % 0=no crossrefs; 1=hypertex xrefs; 2=hyperref refs
#0 'inlinelinks := % 0=URLs explicit; 1=URLs attached to titles
% String constants, which you _might_ want to tweak.
- "" 'urlintro := % prefix before URL; typically "Available from:" or "URL":
+ "" 'urlintro := % prefix before URL; typically "Available from:" or "URL":
"" 'onlinestring := % indication that resource is online; typically "online"
- "cited " 'citedstring := % indicator of citation date; typically "cited "
- "[link]" 'linktextstring := % dummy link text; typically "[link]"
- "http://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref
- "arXiv:" 'eprintprefix := % text prefix printed before eprint ref; typically "arXiv:"
+ "cited " 'citedstring := % indicator of citation date; typically "cited "
+ "[links]" 'linktextstring := % dummy link text; typically "[link]"
+ "https://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref
+ "arXiv:" 'eprintprefix := % text prefix printed before eprint ref; typically "arXiv:"
"https://doi.org/" 'doiurl := % prefix to make URL from DOI
- "" 'doiprefix := % text prefix printed before DOI ref; typically "doi:"
- "http://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED
+ "" 'doiprefix := % text prefix printed before DOI ref; typically "doi:"
+ "https://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED
"PMID:" 'pubmedprefix := % text prefix printed before PUBMED ref; typically "PMID:"
% The following are internal state variables, not configuration constants,
@@ -178,8 +183,9 @@ STRINGS { s t last.output.check }
% urlbst
% arg on stack is what needs to be written.
%
-% If a journal, we want to omit the following comma, as in
-% "TUGboat 39(1)" instead of the default "TUGboat, 39(1)".
+% If journal is "TUGboat" or "\TUB", we want to omit the following
+% comma, as in "TUGboat 39(1)" instead of the default "TUGboat, 39(1)".
+% But for all other journals, we want the comma.
%
% Furthermore, if field journaltie is non-empty, output a tie after the
% journal name instad of a space.
@@ -188,10 +194,14 @@ FUNCTION {output.nonnull.original}
{ 's :=
output.state mid.sentence =
{ last.output.check "journal" = not
- { ", " * }
- { journaltie empty$ not
- { "~" }
+ { ", " * } % not a journal, normal comma+space separator
+ { journal "TUGboat" = journal "\TUB" = or
+ { skip$ } % TUGboat, no comma
+ { "," * } % not TUGboat, want comma
+ if$
+ journaltie empty$
{ " " }
+ { "~" }
if$
*
}
@@ -574,29 +584,100 @@ FUNCTION {format.title}
if$
}
+% Return argument with - replaced by -- (unless already --),
+% unless pagesnodashify is set, in which case do nothing.
+%
+% We use pagesnodashify when an article has a reference to another article
+% in the same issue, in which case we use (from tb137kopp-microtemplates):
+% pages = "{\thisissuepageref{beeton-basic}}",
+% and that - clearly should not become --. Although we can work around
+% it by using a macro instead of a literal -, that's ugly.
+%
FUNCTION {n.dashify}
{ 't :=
- ""
- { t empty$ not }
- { t #1 #1 substring$ "-" =
- { t #1 #2 substring$ "--" = not
- { "--" *
- t #2 global.max$ substring$ 't :=
- }
- { { t #1 #1 substring$ "-" = }
- { "-" *
+ pagesnodashify empty$
+ {
+ ""
+ { t empty$ not }
+ { t #1 #1 substring$ "-" =
+ { t #1 #2 substring$ "--" = not
+ { "--" *
t #2 global.max$ substring$ 't :=
}
- while$
+ { { t #1 #1 substring$ "-" = }
+ { "-" *
+ t #2 global.max$ substring$ 't :=
+ }
+ while$
+ }
+ if$
+ }
+ { t #1 #1 substring$ *
+ t #2 global.max$ substring$ 't :=
}
if$
}
- { t #1 #1 substring$ *
- t #2 global.max$ substring$ 't :=
+ while$
+ }
+ {
+ t
+ }
+ if$
+}
+
+% tub: assume month is nonempty. If numeric (biblatex), output
+% our preferred month abbreviation; else output as-is.
+% There is no way to reuse the macro definitions previously made here,
+% so just write them out again.
+FUNCTION {format.month}
+{ month "01" = month "1" = or
+ { "Jan." }
+ { month "02" = month "2" = or
+ { "Feb." }
+ { month "03" = month "3" = or
+ { "Mar." }
+ { month "03" = month "4" = or
+ { "Apr." }
+ { month "05" = month "5" = or
+ { "May" }
+ { month "06" = month "6" = or
+ { "June" }
+ { month "07" = month "7" = or
+ { "July" }
+ { month "08" = month "8" = or
+ { "Aug." }
+ { month "09" = month "9" = or
+ { "Sept." }
+ { month "10" =
+ { "Oct." }
+ { month "11" =
+ { "Nov." }
+ { month "12" =
+ { "Dec." }
+ { month }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
+ }
+ if$
}
if$
}
- while$
+ if$
}
FUNCTION {format.date}
@@ -610,7 +691,7 @@ FUNCTION {format.date}
}
{ month empty$
'year
- { month
+ { format.month
monthtie empty$ not
{ "~" }
{ " " }
@@ -1398,6 +1479,7 @@ FUNCTION {misc}
howpublished output
format.date output
new.block
+ organization output
note output
fin.entry
empty.misc.check
diff --git a/Master/texmf-dist/doc/latex/tugboat/NEWS b/Master/texmf-dist/doc/latex/tugboat/NEWS
index 53621cccdc1..2ee50148849 100644
--- a/Master/texmf-dist/doc/latex/tugboat/NEWS
+++ b/Master/texmf-dist/doc/latex/tugboat/NEWS
@@ -1,6 +1,26 @@
-$Id: NEWS 490 2023-07-03 22:27:49Z karl $
+$Id: NEWS 533 2023-10-28 22:40:31Z karl $
This file records noteworthy changes. This file is public domain.
+-----------------
+2.31 (2023-10-28):
+ltugboat.cls:
+- input our hyphenation exceptions (ushyphex.tex) if available.
+- \dblfloatpagefraction and similar parameters set so figures don't go
+ to a float page so soon, and reduce \abovecaptionskip.
+- new abbreviation \LMTX.
+- new abbreviations \pdfTeX and \pdfLaTeX, with italic correction after the f.
+- new generic commands \tbcode and \tbcodebreak for package names, class
+ names, file names, environment variables, etc. (Just outputs in typewriter.)
+
+tugboat.bst:
+- in month field, recognize numbers 01..12, with or without leading zero.
+- for @misc, output organization field if present.
+- support "eprints" (https://arxiv.org/abs/).
+
+Substantial rearrangement and updating of documentation.
+
+-----------------
+2.30 (2023-07-03):
ltugboat.cls:
- print page numbers with preceding ? in draft mode, including in references,
by redefining \thepage.
@@ -12,7 +32,7 @@ tugboat.bst:
ltubguid documentation:
- mention preferred placement of captions, namely below figures
-but above tables and listings.
+ but above tables and listings.
-----------------
2.29 (2023-03-08):
diff --git a/Master/texmf-dist/doc/latex/tugboat/ltubguid.ltx b/Master/texmf-dist/doc/latex/tugboat/ltubguid.ltx
index 088a8e19afd..4f068825740 100644
--- a/Master/texmf-dist/doc/latex/tugboat/ltubguid.ltx
+++ b/Master/texmf-dist/doc/latex/tugboat/ltubguid.ltx
@@ -1,4 +1,4 @@
-% $Id: ltubguid.ltx 487 2023-06-22 22:39:59Z karl $
+% $Id: ltubguid.ltx 529 2023-10-27 16:32:42Z karl $
% ltubguid.ltx - documentation for ltugboat classes.
%
% Copyright 1994-2023 TeX Users Group.
@@ -37,26 +37,26 @@
@Misc{pkg:fancyvrb,
author = {Timothy Van Zandt and others},
- title = {The {\textsf{fancyvrb}} package},
+ title = {The {\tbcode{fancyvrb}} package},
url = {ctan.org/pkg/fancyvrb},
}
@Misc{pkg:listings,
author = {Carsten Heinz and others},
- title = {The {\textsf{listings}} package},
+ title = {The {\tbcode{listings}} package},
url = {ctan.org/pkg/listings},
}
@Misc{Arseneau:url:1996,
author = {Donald Arseneau},
- title = {The {\textsf{url}} package},
+ title = {The {\tbcode{url}} package},
url = {ctan.org/pkg/url},
urlnewline = 1,
}
@Misc{Rahtz:hyperref:1997,
author = {Sebastian Rahtz and Heiko Oberdiek and others},
- title = {The {\textsf{hyperref}} package},
+ title = {The {\tbcode{hyperref}} package},
url = {ctan.org/pkg/hyperref},
}
@@ -70,14 +70,14 @@
@Misc{Schoepf:verbatim:1996,
author = {Rainer Sch{\"{o}}pf},
- title = {The {\textsf{verbatim}} package},
+ title = {The {\tbcode{verbatim}} package},
url = {ctan.org/pkg/verbatim},
urlnewline = 1,
}
@Misc{Vieth:mflogo:1995,
author = {Ulrik Vieth},
- title = {The {\textsf{mflogo}} package},
+ title = {The {\tbcode{mflogo}} package},
url = {ctan.org/pkg/mflogo},
urlnewline = 1,
}
@@ -132,16 +132,19 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-\documentclass[final,letterpaper]{ltugboat}
-\usepackage{graphics} % just so letterpaper takes effect
+\documentclass[letterpaper]{ltugboat}
+\usepackage{graphics} % so letterpaper takes effect
\usepackage{microtype}
\usepackage{ctandir}
+\usepackage[hidelinks,pdfa]{hyperref}
\IfFileExists{booktabs.sty}%
{\usepackage{booktabs}}%
{\let\midrule\hline}
%
\vbadness=10000 % imperfectly broken pages are ok
\overfullrule=4pt % want to see
+% omit word "draft:"
+\def\rtitlenexttopage{\ifPrelimDraft \textsl{\small \Now}\fi}
%
% define CTAN addresses using the commands of the |ctandir| package
\CTANdirectory{packages}{macros/latex/required}
@@ -150,11 +153,11 @@
% ***** Commands provided by this paper *****
%
% Typeset the name of an environment, class, package, option, program
-\providecommand\envname[1]{\textsf{#1}}
-\providecommand\clsname[1]{\textsf{#1}}
-\providecommand\pkgname[1]{\textsf{#1}}
-\providecommand\optname[1]{\textsf{#1}}
-\providecommand\progname[1]{\textsf{#1}}
+\providecommand\envname[1]{\tbcode{#1}}
+\providecommand\clsname[1]{\tbcode{#1}}
+\providecommand\pkgname[1]{\tbcode{#1}}
+\providecommand\optname[1]{\tbcode{#1}}
+\providecommand\progname[1]{\tbcode{#1}}
%
% A list of options for a package/class
\newenvironment{optlist}{\begin{description}%
@@ -187,43 +190,48 @@
\@tempa%
}
\makeatother
+\def\url{\tburl} % use our url macros
%
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%
%
\title{The \LaTeXe\ \TUB{} macros}
-\author{Robin Fairbairns \& TUGboat editors}
+\author{TUGboat editors}
\EDITORnoaddress
\netaddress{tugboat@tug.org}
\personalURL{tug.org/TUGboat}
\maketitle
+{\hyphenpenalty=10000\raggedright \tableofcontents}
+\count0=1
\section{Introduction}
This is the documentation for the \LaTeXe\ macros to be used by \TUB{}
-authors. The macros represent a development of the earlier
+authors. The macros represent a development of the earlier
\clsname{ltugboat} and \clsname{ltugproc} styles that were written for
-use with \LaTeX~2.09; major contributors have been Robin Fairbairns,
-Sebastian Rahtz, Michel Goossens, Nico Poppelier and Johannes Braams.
-Many others have been involved, including Barbara Beeton, Karl Berry,
-Mimi Burbank, and the \LaTeX\ team.
+use with \LaTeX~2.09; the main original author was Robin Fairbairns,
+with Sebastian Rahtz, Michel Goossens, Nico Poppelier and Johannes
+Braams. Many others have been involved in the years since, including
+Barbara Beeton, Karl Berry, Mimi Burbank, and the \LaTeX\ team.
-\section{Availability}
+\subsection{Availability}
-The \TUB\ web pages are at:\\\centerline{\url{https://tug.org/TUGboat}}
+The \TUB\ web pages are at:\par\smallskip
+\centerline{\url{https://tug.org/TUGboat}}
+\par\smallskip\noindent
They provide \textbf{an article template}, information for authors and
reviewers, and the complete run of all published \TUB\ issues, among
other things.
-The macros are released for general use, and are distributed via \CTAN{}
-(directory \CTANref{tub-latex}) in the usual \LaTeX{} way as files
-\path|tugboat.dtx| and \path|tugboat.ins|. When the\,\verb|.ins| file
-is processed by \LaTeX{}, the files \path|ltugboat.cls| and
-\path|ltugbib.bst| (for use with articles) and \path|ltugcomn.sty| (a
-cooking pot of perhaps-useful macros, for documentation, etc.)\ are
-produced. (\path|ltugproc.cls| is also produced for compatibility, but
-is no longer used for proceedings or anything else.)
+The macros are distributed via \CTAN{}
+(\url{https://ctan.org/pkg/tugboat}) in the usual \LaTeX{} way as files
+\path|tugboat.dtx| and \path|tugboat.ins|. When the \verb|.ins| file is
+processed by \LaTeX{}, the files \path|ltugboat.cls| and
+\path|ltugcomn.sty| (a melange of perhaps-useful macros, for
+documentation, etc.)\ are produced. (For compatibility,
+\path|ltugproc.cls| is also produced, but is no longer used for
+proceedings or anything else.)
The\,\verb|.dtx| file may itself be processed by \LaTeX{} to
produce a formatted (somewhat `literate') source listing for those
@@ -236,23 +244,33 @@ The basic idea is to start your \LaTeX\ document with
articles. This uses the file \path|ltugboat.cls| as usual.
Each paper, therefore, is written as a document that may stand on its
-own. It starts with a \cs{documentclass} command, and its body is
-enclosed in a \envname{document} environment. There are some options to
+own. It starts with a \cs{documentclass} command, and its body is
+enclosed in a \envname{document} environment. There are some options to
the document class, described in the next section, but ordinarily the
-author needn't bother with them. The defaults are
-designed for creating proof copies of papers.
+author needn't bother with them. The defaults are designed for creating
+proof copies of papers.
The proof output differs from the final production output with respect
to page numbers and other material. The changes required for final
-production are the responsibility of the \TUB{} editors, and the author
-need not be concerned with them.
+production are the responsibility of the \TUB{} editors; authors will
+see the final version in proof.
-\section{Class options: The \clsname{ltugboat} class}
+In general, we have sought simply to keep to the spirit of \LaTeX\ in
+the commands provided by the \TUB\ class (\verb|ltugboat|). On the
+whole, the new \clsname{ltugboat} macros define \LaTeX{} commands and
+environments, or modify the definitions of \LaTeX{} standard commands.
+For those interested, section~\ref{sec:equiv} lists equivalences between
+macros defined by the `plain' package \cite{Whitney:TB10-3-378} and
+those defined by the new package.
+
+\subsection{Class options for \clsname{ltugboat}}
\label{sec:boat-opts}
The \clsname{ltugboat} class accepts many of the options of the
-\clsname{article} class (it suppresses the font-size selection
-and one/two-side options).
+\clsname{article} class (it suppresses the font-size selection and
+one/two-side options). Normally there is no need to use any document
+option. They are listed here for completeness.
+
\begin{optlist}
\item[draft] Set up for a draft copy of a paper (this is the default
setting\Dash the author need not explicitly set it): page numbering
@@ -261,10 +279,10 @@ and one/two-side options).
of the reference; see section~\ref{sec:biblio}.
\item[final] Set up for the final copy of a paper: page numbering to
come from elsewhere, no cropmarks.
-\item[harvardcite] Specify Harvard-style citation (not
+\item[harvardcite] Specify Harvard-style citation. Not
recommended in general; see section~\ref{sec:biblio}.
-\item[noextralabel] Don't use the extra label-distinguishing mark in
- the body of the reference; see section~\ref{sec:biblio}.
+\item[noextralabel] Don't use the extra mark for distinguishing labels in
+ the body of the reference; see section~\ref{sec:biblio-harvard}.
\item[nonumber] Sections are not numbered; section heading
layout is to be as in the `plain' \pkgname{tugboat} styles.
\item[numbersec] Sections, subsections and subsubsections are to be
@@ -277,110 +295,45 @@ and one/two-side options).
\item[runningfull] Information in both header and footer (default).
\item[runningminimal] Information in header only.
\item[runningoff] Information in neither header nor footer.
+\item[secondcolstart] Start the article in the second column.
\end{optlist}
-\noindent Again, normally there is no need to use any document options.
-They are listed here for completeness.
-
-\section{Command syntax}
-\label{sec:syntax}
-
-In general, we have sought simply to keep to the spirit of \LaTeX\ in
-the commands provided by the \TUB\ class (\verb|ltugboat|).
-
-In the few cases that it has proved possible to emulate (what seems to
-a staid old \LaTeX{} programmer, such as the original author here) the gay
-abandon of the syntax of the `plain' \pkgname{tugboat} styles
-\cite{Whitney:TB10-3-378}, we have done so. Nevertheless, on the whole,
-the new \clsname{ltugboat} macros define \LaTeX{} commands and
-environments, or modify the definitions of \LaTeX{} `standard'
-commands. Section~\ref{sec:equiv} lists equivalences between macros
-defined by the `plain' package and those defined by the new package.
-
-\section{Divisions of the paper}
-\label{sec:divs-paper}
-
-Papers in \TUB{} may be subdivided in the normal way of a \LaTeX{}
-article (the classes are defined in terms of \LaTeX{}'s
-\clsname{article} class). Thus the author may use \cs{section},
-\cs{subsection}, \dots, \cs{paragraph} commands (but \cs{part} and
-\cs{subparagraph} from \clsname{article} are suppressed, and
-\cs{chapter}, which doesn't even appear in the parent class, receives
-the same treatment).
-
-Authors may note that the style of ordinary issues of \TUB{} makes
-no distinction between the titles of the divisions; the visual style
-relies on the section numbers to indicate where the divisions lie in
-the hierarchy. If you use \cs{paragraph}, consider ending the paragraph
-label with a period; sometimes it is helpful, sometimes not.
-
-For references to numbered sections, our style is to always use the word
-`Section' in the text, e.g.,\\
-\verb|Section~\ref{sec:whatever}|\\
-without worrying about whether it is technically a sub(sub)section.
-It's also ok to use the section sign~\S{}, if that suits the material
-better.
-
-Reference can also be made to the `title' of divisions of the paper,
-whether they are numbered or not. The \cs{nameref} command (which uses
-the technique developed for the \textsf{hyperref} package
-\cite{Rahtz:hyperref:1997}) permits such references; for example, the
-present section was introduced by:
-\begin{verbatim}[\small]
-\section{Divisions of the paper}
-\label{sec:divs-paper}
-\end{verbatim}
-and the command \verb|\nameref{sec:divs-paper}| produces
-`\nameref{sec:divs-paper}'. However, as you can see here, reusing the
-literal text of section titles often results in awkward results. We
-recommend numbered references in general.
-
-\subsection{Abstracts}
-
-The \clsname{ltugboat} class provides two environments for abstracts,
-\envname{abstract} and \envname{longabstract}. The \envname{abstract}
-environment simply typesets its body as an un-numbered section whose
-title is `Abstract'. The \envname{longabstract} environment typesets its
-body in small text, and separates the abstract from the rest of the
-paper with a decorative line; this is rarely used.
+\subsection{Use of packages}
-Please write an abstract, however short.
-
-\subsection{Appendices}
-
-A paper may have appendices, which can be expressed in exactly the same
-way as they would be in the \LaTeX{} article class (confusing as that
-may be):
+Being a \TeX\ journal, authors may use both standard and non-standard
+external packages for their articles. The overriding criterion is that
+articles need to be processable on the \TUB{} production computers
+(running current \TeX\ Live). A sensible mechanism for submitting
+personal packages is by use of the \envname{filecontents} environment.
+It's also fine to submit manuscript source with additional packages in a
+zip or other archive.
-\begin{verbatim}[\small]
-\appendix
-\section{This is appendix A}
-...
-\section{This is appendix B}
-\end{verbatim}
-Which will produce `section' headings similar to:
-\begin{quote}
-\textbf{A\quad This is appendix A}
-\end{quote}
+In general, packages currently on \CTAN, and known to work with
+\emph{current} \LaTeX{} are likely to be fine. In particular, \TUB\ is
+happy to accept papers using packages that are supported by members of
+the \LaTeX\ team.
-\TUB{} articles may have a small extension to this format using an
-\texttt{appendix} environment:
+\tug{} has a policy that macro packages described in \TUB{} should be
+available for readers to use. Since typing macros from printed sources
+is tedious, authors of publicly available packages are urged to submit
+their macros to \CTAN{}. If a package is only available under restricted
+terms, authors are requested to make this fact clear when first
+submitting an article to the editor.
-\begin{verbatim}[\small]
-\begin{appendix}
-\section{This is the first one}
-...
-\end{appendix}
-\end{verbatim}
-which will produce `section' headings similar to:
-\begin{quote}
-\textbf{Appendix A\quad This is the first one}
-\end{quote}
+The \texttt{ltugboat} class loads the package \path|mflogo.sty|
+\cite{Vieth:mflogo:1995} for typesetting the \MF\ logo. If this package
+is not present by some mischance, \texttt{ltugboat} will emulate it.
-In both cases, the subsections are numbered as normal (i.e., as
-`A.\ensuremath{n}' in normal \TUB{} papers):
+Although not necessarily recommended in all cases, many additional
+packages are commonly used. To mention a few:
+\begin{description}
+\item[microtype] can help reduce overfull boxes and improve appearance
+(\verb|\usepackage{microtype}|);
+\item[hyperref] supports live and internal hyperlinks, outlines, and
+much more\\(\verb|\usepackage[hidelinks,pdfa]{hyperref}|).
+\end{description}
-\section{Titles, addresses and so on}
+\subsection{Titles, addresses and so on}
The title and author(s) of a paper are quoted using commands that are
familiar (in syntax, at least) to most \LaTeX{} users; the \cs{title}
@@ -443,7 +396,7 @@ given at \tug'95 (abbreviated):
The class files will take care of arranging author names and addresses
between the \cs{maketitle} and (possibly) \cs{makesignature} commands.
-\subsection{Compilation articles}
+\subsubsection{Compilation articles}
Compilation articles are written as a set of contributed parts under the
general editorship of the author(s) of the article. The author of the
@@ -470,7 +423,186 @@ closes the group. The general scheme looks like:
\makesignature ...
\end{verbatim}
-\section{Verbatim text}
+\subsection{Divisions of the paper}
+\label{sec:divs-paper}
+
+Papers in \TUB{} may be subdivided in the normal way of a \LaTeX{}
+article (the classes are defined in terms of \LaTeX{}'s
+\clsname{article} class). Thus the author may use \cs{section},
+\cs{subsection}, \dots, \cs{paragraph} commands (but \cs{part} and
+\cs{subparagraph} from \clsname{article} are suppressed, and
+\cs{chapter}, which does not even appear in the parent class, receives
+the same treatment).
+
+Authors may note that the style of ordinary issues of \TUB{} makes
+no distinction between the titles of the divisions; the visual style
+relies on the section numbers to indicate where the divisions lie in
+the hierarchy. If you use \cs{paragraph}, consider ending the paragraph
+label with a period; sometimes it is helpful, sometimes not.
+
+For references to numbered sections, our style is to always use the word
+`Section' in the text, e.g.,\\
+\verb|Section~\ref{sec:whatever}|\\
+without worrying about whether it is technically a sub(sub)section.
+It's also ok to use the section sign~\S{}, if that suits the material
+better.
+
+Reference can also be made to the `title' of divisions of the paper,
+whether they are numbered or not. The \cs{nameref} command (which uses
+the technique developed for the \tbcode{hyperref} package
+\cite{Rahtz:hyperref:1997}) permits such references; for example, the
+present section was introduced by:
+\begin{verbatim}[\small]
+\section{Divisions of the paper}
+\label{sec:divs-paper}
+\end{verbatim}
+and the command \verb|\nameref{sec:divs-paper}| produces
+`\nameref{sec:divs-paper}'. However, as you can see here, reusing the
+literal text of section titles often results in awkward results. We
+recommend numbered references in general.
+
+\subsubsection{Abstracts}
+
+The \clsname{ltugboat} class provides two environments for abstracts.
+The \envname{abstract} environment simply typesets its body as an
+unnumbered section whose title is `Abstract'. The \envname{longabstract}
+environment typesets its body in small text, and separates the abstract
+from the rest of the paper with a decorative line; this is rarely used.
+
+Please write an abstract, however short.
+
+\subsubsection{Appendices}
+
+A paper may have appendices, which can be expressed in exactly the same
+way as they would be in the \LaTeX{} article class (confusing as that
+may be):
+
+\begin{verbatim}[\small]
+\appendix
+\section{This is appendix A}
+...
+\section{This is appendix B}
+\end{verbatim}
+Which will produce `section' headings similar to:
+\begin{quote}
+\textbf{A\quad This is appendix A}
+\end{quote}
+
+\TUB{} articles may have a small extension to this format using an
+\texttt{appendix} environment:
+
+\begin{verbatim}[\small]
+\begin{appendix}
+\section{This is the first one}
+...
+\end{appendix}
+\end{verbatim}
+which will produce `section' headings similar to:
+\begin{quote}
+\textbf{Appendix A\quad This is the first one}
+\end{quote}
+
+In both cases, the subsections are numbered as normal (i.e., as
+`A.\ensuremath{n}' in normal \TUB{} papers):
+
+\section{Floating inserts}
+
+The classes do not make any change to \LaTeX{}'s built-in provision for
+floating inserts, so that authors should write figures and tables as usual,
+
+The default is for floats to be the width of the column. To make a float
+which is the width of the whole page, use \envname{figure*} and
+\envname{table*}.
+
+Regarding caption placement, \TUB's convention is to put captions for
+figures below the figure, but captions for tables and listings above the
+table\slash listing. Please follow this convention unless there is a
+specific reason not to.
+
+As a reminder, \cs{label} commands should always follow the
+\cs{caption}.
+
+\section{Special-purpose typesetting}
+
+The classes define a rather large set of commands for special-purpose
+typesetting.
+
+\subsection{Assorted simple markup}
+
+A short list of commonly-needed special typesetting commands follows; a
+larger set of such commands is defined in the classes. Feel free to peruse.
+
+\begin{cmdlist}\raggedright
+\item[\cs{cmd}] Typeset a control sequence name:\\
+ \verb|\cs{fred}| produces \cs{fred}.
+
+\item[\Dash] Typeset an em-dash, ignoring preceding and following space,
+ surrounded by thin spaces, only breakable after the dash; this
+ is our preferred method of specifying an em-dash in running text, over
+ \texttt{---} or (especially) the Unicode character(s).
+
+\item[\meta{var}] Typeset meta-syntactic text:\\
+ \verb|\meta{fred}| produces \meta{fred}.
+
+\item[\tbcode{text}] Literal text, such as class names, package names,
+filenames, environment variables, etc. The text is typeset in typewriter
+and is not breakable.
+
+\item[\tbcodebreak{text}] Like \cs{tbcode}, but breakable as with urls,
+e.g., at periods. Still not hyphenated.
+
+\item[\tubbraced{text}] Typeset typewriter text in typewriter
+ braces: \verb|\tubbraced{fred}| produces \tubbraced{fred}.
+\end{cmdlist}
+For commands to typeset urls, see section~\ref{sec:urls}.
+
+\subsection{Acronyms and logos}
+
+The classes provide macros that produce `correct' representations of a
+large number of acronyms and logos; a small representative selection is
+shown in figure~\ref{fig:acro-logo}. The sample documents at
+\url{tug.org/TUGboat/location.html} have a more complete list,
+and of course the class sources are the ultimate reference.
+\begin{figure}[htbp!]
+ \begin{center}
+ \begin{tabular}{@{}ll@{}}
+ \small\textsl{\tbcode{Macro}}&\small\textsl{\tbcode{Output}}\\
+ \midrule
+ \verb|\ConTeXt| & \ConTeXt \\
+ \verb|\Cplusplus| & \Cplusplus \\
+ \verb|\CTAN| & \CTAN \\
+ \verb|\eTeX| & \eTeX\\
+ \verb|\FAQ| & \FAQ \\
+ \verb|\HTML| & \HTML \\
+ \verb|\ISBN| & \ISBN \\
+ \verb|\KOMAScript| & \KOMAScript \\
+ \verb|\LaTeXe| & \LaTeXe \\
+ \verb|\macOS| & \macOS \\
+ \verb|\MathML| & \MathML \\
+ \verb|\MF| & \MF \\
+ \verb|\PDF| & \PDF \\
+ \verb|\SGML| & \SGML \\
+ \verb|\TUB| & \TUB \\
+ \verb|\TUG| & \TUG \\
+ \verb|\tug| & \tug \\
+ \verb|\XML| & \XML \\
+ \end{tabular}
+ \end{center}
+ \caption{A few of the provided acronyms and logos}
+ \label{fig:acro-logo}
+\end{figure}
+
+Authors are especially urged to note the \cs{acro} command, which is
+defined in the classes. The visual appearance of all-caps sequences
+among normal text is rather unpleasing in Computer Modern,
+unfortunately. Therefore, the \cs{acro} command typesets its argument
+one point size smaller than the surrounding text: compare `\acro{DANTE}'
+(\verb|\acro{DANTE}|) with `DANTE'\@. Many of the provided macros merely
+generate calls to \cs{acro}; two examples, \cs{CTAN} and \cs{tug} of the
+list in figure~\ref{fig:acro-logo} have already been used in the present
+paper.
+
+\subsection{Verbatim text}
\label{sec:verbatim}
For inline verbatim text, authors should ordinarily employ the
@@ -532,20 +664,19 @@ Authors may wish to use a more featureful verbatim package, such as
\pkgname{listings}~\cite{pkg:listings} or
\pkgname{fancyvrb}~\cite{pkg:fancyvrb}. This is ok; it just means the
\TUB\ optional-argument feature is not available. On the other hand,
-please do not use the \pkgname{minted} package if possible; it is much
-harder to customize and correct at the \TeX\ level, and the shell escape
+please do not use the \pkgname{minted} package if possible; it is harder
+to customize and correct at the \TeX\ level, and the shell escape
requirement is troublesome. In any case, we will almost always wish to
-print code listings in simple black, not colored or even grayscaled.
+print code listings in straight black, not colored or even grayscaled.
-If you use the \pkgname{listings} package, please specify:
+If you use the \pkgname{listings} package, please set:
\begin{verbatim}[\small]
-\lstset{columns=fullflexible, keepspaces=true,
- commentstyle=\slshape,
- basicstyle=\ttfamily\small}
-\lstdefinestyle{inline}
- {basicstyle=\ttfamily\normalsize}
+\lstset{columns=fullflexible,
+ keepspaces=true,
+ commentstyle=\slshape,
+ basicstyle=\ttfamily
+ \lst@ifdisplaystyle\small\fi,}
\end{verbatim}
-
Explanations:
\begin{itemize}
\item \texttt{columns=fullflexible}:
@@ -563,200 +694,92 @@ We prefer slanted to Computer Modern typewriter italic.
Using regular upright typewriter for comments is fine too.
\item \texttt{basicstyle=...}:
-We usually prefer \cs{small} for displayed verbatim; when using
-\texttt{listings}, it is necessary to reset inline verbatim to the
-normal text size.
+We usually prefer \cs{small} for displayed verbatim, but not inline
+verbatim, hence the conditional.
\end{itemize}
-\section{Floating inserts}
-
-The classes do not make any change to \LaTeX{}'s built-in provision for
-floating inserts, so that authors may write figures and tables as usual,
-
-The default is for floats to be the width of the column. To make a float
-which is the width of the whole page, use \envname{figure*} and
-\envname{table*}.
-
-Regarding caption placement, \TUB's convention is to put captions for
-figures beneath the figure, but captions for tables and listings above
-the table\slash listing. Please follow this convention unless there is a
-specific reason not to. As a reminder, \cs{label} commands should always
-follow the \cs{caption}.
-
-\section{Special-purpose typesetting}
-
-The classes define a rather large set of commands for special-purpose
-typesetting. Some of them are available for historical reasons only,
-and many are only useful in somewhat restricted circumstances. For
-this reason, the present paper only outlines a representative, small
-set of the macros.
-
-\subsection{Acronyms and logos}
-
-The classes provide macros that produce `correct' representations of a
-large number of acronyms and logos; a small representative selection is
-shown in figure~\ref{fig:acro-logo}. The sample documents at
-\url{tug.org/TUGboat/location.html} have a more complete list,
-and of course the class sources are the ultimate reference.
-\begin{figure}[htbp!]
- \begin{center}
- \begin{tabular}{@{}ll@{}}
- \small\textsl{\textsf{Macro}}&\small\textsl{\textsf{Output}}\\
- \midrule
- \verb|\ConTeXt| & \ConTeXt \\
- \verb|\Cplusplus| & \Cplusplus \\
- \verb|\CTAN| & \CTAN \\
- \verb|\eTeX| & \eTeX\\
- \verb|\FAQ| & \FAQ \\
- \verb|\HTML| & \HTML \\
- \verb|\ISBN| & \ISBN \\
- \verb|\KOMAScript| & \KOMAScript \\
- \verb|\LaTeXe| & \LaTeXe \\
- \verb|\MacOSX| & \MacOSX \\
- \verb|\MathML| & \MathML \\
- \verb|\MF| & \MF \\
- \verb|\OMEGA| & \OMEGA \\
- \verb|\PDF| & \PDF \\
- \verb|\SGML| & \SGML \\
- \verb|\TUB| & \TUB \\
- \verb|\TUG| & \TUG \\
- \verb|\tug| & \tug \\
- \verb|\XML| & \XML \\
- \end{tabular}
- \end{center}
- \caption{A few of the provided acronyms and logos}
- \label{fig:acro-logo}
-\end{figure}
-
-Authors are especially urged to note the \cs{acro} command, which is
-defined in the classes. The visual appearance of all-caps sequences
-among normal text is rather unpleasing in Computer Modern,
-unfortunately. Therefore, the \cs{acro} command typesets its argument
-one point size smaller than the surrounding text: compare `\acro{DANTE}'
-(\verb|\acro{DANTE}|) with `DANTE'\@. Many of the provided macros merely
-generate calls to \cs{acro}; two examples, \cs{CTAN} and \cs{tug} of the
-list in figure~\ref{fig:acro-logo} have already been used in the present
-paper.
-
-\subsection{Assorted other markup}
-
-A small list of special typesetting commands follows; a larger set of
-such commands is defined in the classes.
-\begin{cmdlist}\raggedright
-\item[\Dash] Typeset an em-dash, ignoring preceding and following space,
- surrounded by thin spaces, only breakable \emph{after} the dash; this
- is the preferred method of specifying a dash in running text.
-\item[\cs{cmd}] Typeset a control sequence name:\\
- \verb|\cs{fred}| produces \cs{fred}.
-\item[\env{environ}] Typeset the command to begin an environment:
- \verb|\env{fred}| produces \env{fred}.
-\item[\meta{var}] Typeset meta-syntactic text:\\
- \verb|\meta{fred}| produces \meta{fred}.
-\item[\tubbraced{text}] Typeset typewriter text in typewriter
- braces: \verb|\tubbraced{fred}| produces \tubbraced{fred}.
-\item[\nth{n}] Typeset an ordinal number; \verb|\nth{1}| is
- set as \nth{1}, \verb|\nth{27}| is set as \nth{27}, and so on.
-%\item[\sfrac{num}{denom}] Typeset a fraction to match running text;
-% for example \verb|\sfrac{3}{4}| is set as \sfrac{3}{4}\,.
-\end{cmdlist}
-For commands to typeset urls, see section~\ref{sec:urls}.
-
-\section{Use of packages}
-
-Being a \TeX\ journal, authors may use both standard and non-standard
-external packages for their articles. The overriding criterion is that
-articles need to be processable on the \TUB{} production computers
-(running current \TeX\ Live). A sensible mechanism for submitting
-personal packages is by use of the \envname{filecontents} environment.
-It's also fine to submit manuscript source with additional packages in a
-zip or other archive.
-
-In general, packages currently on \CTAN, and known to work with
-\emph{current} \LaTeX{} are likely to be fine. In particular,
-the team is happy to accept papers using packages that are supported by
-members of the \LaTeX\ team.\footnote{%
- Those in the \LaTeX{} base distribution, or one of those in the
- \CTANref{packages} sub-tree on \CTAN.}
-
-\tug{} has a policy that macro packages described in \TUB{} should be
-available for readers to use. Since typing macros from printed sources
-is a tedious undertaking, authors of publicly available packages are
-urged to submit their macros to \CTAN{}. If a package is only available
-under restricted terms, authors are requested to make this fact clear
-when first submitting an article to the editor.
-
-The \texttt{ltugboat} class loads the package \path|mflogo.sty|
-\cite{Vieth:mflogo:1995} for typesetting the \MF\ logo. (If this package
-is not present by some mischance, \texttt{ltugboat} will emulate its
-important feature.)
-
-An additional canonically-recommended package is \path|url.sty|
-\cite{Arseneau:url:1996}, for typesetting filenames, email addresses,
-urls, etc.; it is being used throughout the present paper (not least in
-the bibliography), either on its own or via \texttt{hyperref}.
-
-Although not necessarily recommended in all cases, many additional
-packages are commonly used. To mention a few:
-\begin{description}
-\item[microtype] can help reduce overfull boxes and improve appearance;
-\item[hyperref] supports live and internal hyperlinks, outlines, and
-many other features.
-\end{description}
-
-\section{Typesetting urls}
+\subsection{Typesetting urls}
\label{sec:urls}
-As mentioned above, please load either \texttt{url} or (preferably)
-\texttt{hyperref} so that reasonable line breaking of urls can happen.
-
-Furthermore, for the printed (visible) \TUB\ page, nowadays we typically
-prefer to omit a leading \texttt{http://} or \texttt{https://}. But for
-the link to actually work in the output \PDF\ or \HTML, the protocol is
-required (or it appears to be a local filesystem path). Therefore the
-\texttt{ltugboat} class provides (as of version 2.28, released
-January~2023) the command \cs{tburl} for this. Related commands
-\cs{tbsurl} for \texttt{https} and \cs{tbhurl} for \texttt{http} were
-defined in version~2.23 (March~2020).\footnote{All these commands are
-wrappers around \cs{hyper@linkurl}, and are due to Ulrike Fischer.
-\url{https://github.com/latex3/hyperref/issues/125}\raggedright}
+In short:
+
+\begin{enumerate}
+\item Please load either the \texttt{url} or (preferably) the
+\texttt{hyperref} package so that reasonable line breaking of urls can
+happen.
+
+\item Add \verb|\def\url{\tburl}| to your preamble and use \cs{url} in your
+document as usual. (It seems too intrusive for the \TUB\ classes to
+redefine something as fragile and widespread as \cs{url}.)
+\end{enumerate}
+The rest of this section is more details about the above.
+
+The main reason for preferring the above is that for the printed
+(visible) \TUB\ page, nowadays we typically prefer to omit a leading
+\texttt{https://}. But for the link to actually work in the output \PDF\
+or \HTML, the protocol is required (else the \PDF\ reader thinks it is
+a local filesystem path). Therefore the \texttt{ltugboat} class provides
+(as of 2023) the command \cs{tburl} for this.\footnote{This and related
+commands are wrappers around \cs{hyper@linkurl}.
+Thanks to Ulrike Fischer for doing the real work:
+\tburl{https://github.com/latex3/hyperref/issues/125}\raggedright}
For example, the commands \verb|\tburl{tug.org}| and
\verb|\tburl{https://tug.org}| both typeset the text `\texttt{tug.org}'
(with the usual url line breaks possible) as a link to
\url{https://tug.org}.
-Similarly, \verb|\tburl{http://example.org}| typesets the text
-`\texttt{example.org}' as a link to \url{http://example.org}, for the
-(unusual nowadays) case when \url{http} is required.
+Since so few web sites do not support https,
+\verb|\tburl{http://example.org}| typesets the full url as text
+`\texttt{http://example.org}' as a link to itself. If it's desirable to
+elide the http://, the variant \cs{tbhurl} can be used.
-As shown, the correct protocol can be explicitly specified, and will be
-stripped for display.
+Thus, as shown, the correct protocol can be explicitly specified, and
+will be stripped for display. Just use \cs{tburl}.
-\cs{tburl} and related add the protocol and make live links if
-\texttt{hyperref} is loaded. Without \texttt{hyperref}, they are merely
-synonyms for \cs{url}. This is ok, and we still request that the
-protocol not be included; if live links are not being produced in the
-output, the printed url without the protocol suffices. (When a user
-copies/pastes url text into a browser, it will normally work.)
+In short, \cs{tburl} and related make live links and omit the protocol
+if \pkgname{hyperref} is loaded. We highly recommend this.
+
+Without \texttt{hyperref}, they are merely synonyms for \cs{url}. This
+is ok, and we still request that the protocol not be included; if live
+links are not being produced in the output, the printed url without the
+protocol suffices. (When a user copies/pastes url text into a browser,
+it will normally work.)
In order to keep using \cs{url} in a document body, we suggest
\verb|\def\url{\tburl}|.
-The shortcut macro \cs{tburlfootnote} makes a ragged-right footnote
-using \cs{tburl} command. We recognize that when writing url references,
-sometimes the best option is to put urls in footnotes. However, when
-it's sensible, we prefer to have them as either parentheticals in the
-main text or in bibliography entries, to ease page breaking.
-
For \texttt{ftp}, \texttt{rsync}, and other protocols, it is best to
always include them explicitly and use \cs{url}:\\
\verb|\url{ftp://tug.org}|,\\ \verb|\url{rsync://tug.org}|, etc.
-\subsection{Url shortcuts}
+Finally, sometimes it is best to allow line breaks at hyphens in urls.
+We've found that this is not confusing in practice. To enable this and
+\pkgname{hyperref} at the same time, it's necessary to load
+\pkgname{url} explicitly and enable the \tbcode{hyphens} option:
+
+\begin{verbatim}
+\usepackage[hyphens]{url}
+\usepackage[hidelinks,pdfa]{hyperref}
+\end{verbatim}
+
+\subsubsection{Url footnotes}
+\label{sec:urlfootnotes}
+
+The shortcut macro \cs{tburlfootnote} makes a ragged-right footnote
+using the \cs{tburl} command. We recognize that when writing url
+references, sometimes the best option is to put urls in footnotes.
+
+However, when it's sensible, we prefer to have urls as either
+parentheticals in the main text or in bibliography entries, to ease page
+breaking and reading flow. It is ideal to minimize\slash avoid footnotes
+in general.
+
+\subsubsection{Url shortcuts}
\label{sec:urlshortcuts}
-Another aspect of urls: the \tug\ web server supports a shortcut url
+A different aspect of urls: the \tug\ web server supports a shortcut url
mechanism, \url{tug.org/l/}\meta{ident}, where \meta{ident} can be any
tag, similar to \url{tinyurl.com} and similar sites. The idea is that
\url{tug.org} shortcuts can be used in \TUB\ articles needing to link to
@@ -767,7 +790,7 @@ will disappear.
The only way to create a \url{tug.org/l/} shortcut is by request, which
we are happy to receive.
-\section{Bibliography}
+\section{Bibliographies}
\label{sec:biblio}
In short: our basic recommendation for handling bibliographies is to use
@@ -795,42 +818,47 @@ small but useful features:
\begin{itemize}
\item It is based on \pkgname{abbrvurl.bst} (see \url{ctan.org/pkg/urlbst}),
-\item and thus supports \textsf{url} and \textsf{doi} fields, among others.
-Please use \textsf{url} instead of putting urls in the
-\textsf{note} field, where possible. Also, please don't bother to
+\item and thus supports \tbcode{url} and \tbcode{doi} fields, among others.
+Please use \tbcode{url} instead of putting urls in the
+\tbcode{note} field, where possible. Also, please don't bother to
include ``access date'' information for \TUB; we find that extraneous.
-\item The \textsf{url} field is ignored if either the \textsf{howpublished} or
-\textsf{doi} field is present. In practice we observe that people put
-the same information in all those fields, and we don't want to typeset
-redundant information.
+\item The \tbcode{url} field is ignored if either the \tbcode{doi} or
+\tbcode{howpublished} field is present. In practice we observe that
+people put the same information in all those fields, and we don't want
+to typeset redundant information.
-\item Does even more abbreviating than \textsf{abbrv}, such as
+\item Does even more abbreviating than \tbcode{abbrv}, such as
printing only two author names (plus ``et~al.'')\ if there are more than
four authors (thanks to Mico Loretan and Oren Patashnik).
-\item New field \textsf{bookauthor} for the \textsf{@incollection} and
-\textsf{@inproceedings} allows for citing a part, written by author~X,
+\item New field \tbcode{bookauthor} for the \tbcode{@incollection} and
+\tbcode{@inproceedings} allows for citing a part, written by author~X,
of a publication written by author~Y, and not just edited by~Y.
-\item For the \textsf{@misc} entry type, \textsf{editor} is accepted as
-well as \textsf{author}.
+\item For the \tbcode{@misc} entry type, \tbcode{editor} is accepted as
+well as \tbcode{author}.
-\item Defines entry types \textsf{@online} and \textsf{@software} as
-aliases for \textsf{@misc}.
+\item Defines entry types \tbcode{@online} and \tbcode{@software} as
+aliases for \tbcode{@misc}.
-\item Defines an \textsf{@ctan} entry type to reference packages on
+\item Defines an \tbcode{@ctan} entry type to reference packages on
\CTAN, following the fields output by the \pkgname{ctanbib} script (in
the package of the same name, \url{ctan.org/pkg/ctanbib}).
\item For completeness only: \verb|tugboat.bst| provides several
-fields intended to be used by the editors: \textsf{journaltie} to output
-a tie instead of space after the \textsf{journal} value,
-\textsf{monthtie} for the same after \textsf{month},
-\textsf{newpage} to force a page break after the current item,
-\textsf{nowarning} to omit empty field warnings, \textsf{prebibitem} to
-output material before \cs{bibitem} (e.g., a section heading), and
-\textsf{urlnewline} to force a line break before the \textsf{url} value.
+fields intended to be used by the editors:
+\begin{description}\raggedright
+\item[\sf journaltie] to output
+ a tie instead of space after the \tbcode{journal} value,
+\item[\sf monthtie] for the same after \tbcode{month},
+\item[\sf newpage] to force a page break after the current item,
+\item[\sf nowarning] to omit empty field warnings, \tbcode{prebibitem} to
+ output material before \cs{bibitem} (e.g., a section heading),
+\item[\sf pagesnodashify] to avoid autoconverting \texttt{-} to
+ \texttt{--} in the \texttt{pages} field,
+\item[\sf urlnewline] to force a line break before the \tbcode{url} value.
+\end{description}
As editors, we've found that these presentation tweaks can be desirable
for the final typeset output. Authors need not worry about them.
@@ -838,14 +866,14 @@ for the final typeset output. Authors need not worry about them.
By the way, we recommending using commas to terminate all fields in
\texttt{.bib} files, including the last one in an entry. That makes for
-one less thing to worry about when changing fields around in the source.
+one less thing to worry about when changing fields in the source.
Bibliographies can be difficult to typeset at the best of times.
\LaTeX{} sets \cs{sloppy} when typesetting the bibliography, but this
typically leads to unpleasant output with \TUB's narrow columns. The
author can specify typesetting parameters using the command
\cs{SetBibJustification}. The classes remain \cs{sloppy} by default, but
-the author may (for example) say:
+this can be changed with (for example),
\begin{verbatim}
\SetBibJustification{\raggedright}
\end{verbatim}
@@ -859,11 +887,8 @@ as reference `[2]' and \texttt{bar} as `[1]', use \verb|\cite{bar,foo}|.
One more note on references: for \TUB\ issues, please use the format
\textsl{volno\,:\,issno}, e.g., ``\TUB\ 32:1'' for volume~32, number~1.
-By the way, if anyone would like to volunteer to implement a \BibLaTeX\
-style with the same features and output as our \BibTeX\ style, we would
-be grateful.
-
-\subsection{Non-recommended bibliography facilities}
+\subsection*{Non-recommended bibliography facilities}
+\label{sec:biblio-harvard}
The preceding gives the bibliography recommendations for current \TUB\
articles. If, for whatever reason, you do not wish to follow those
@@ -892,7 +917,7 @@ date.
\begin{center}
\leavevmode
\begin{tabular}{@{}ll@{}}% @{ $\rightarrow$ } between columns removed
- \small\textsf{\textsl{Macro}} &\small\textsf{\textsl{Output}}\\
+ \small Macro & Output\\
\midrule
\verb|\cite{key}| & (Tom, Dick, and Harry, 1990)\\
\verb|\citeA{key}| & (Tom, Dick, and Harry)\\
@@ -925,8 +950,7 @@ use it, that is ok, but we may still change it to using the default
\LaTeX\ and \BibTeX\ facilities in processing for publication if the
output from \BibLaTeX\ is problematic, as we have often seen it to be.
-
-
+%\appendix
\section{Equivalences between the `plain' and \LaTeX{} \TUB\ packages}
\label{sec:equiv}
@@ -939,7 +963,7 @@ differ significantly.
\begin{center}
\leavevmode
\begin{tabular}{@{}ll@{}}
- \small\textsf{Plain macro} & \small\textsf{\LaTeX{} macro} \\
+ \small Plain macro & \small \LaTeX{} macro \\
\midrule
\cs{head} & \cs{section} \\
\cs{subhead} & \cs{subsection} \\
@@ -965,9 +989,8 @@ elaborate facilities, the user is referred to the \pkgname{verbatim},
\pkgname{listings}, and \pkgname{fancyvrb} packages (see
section~\ref{sec:verbatim}).
-Of course, the syntax of commands given to the \LaTeX{} classes is
-different (as discussed in section~\ref{sec:syntax}); arguments are
-(almost always) enclosed in braces instead of the various
+The syntax of commands given to the \LaTeX{} classes is different;
+arguments are (almost always) enclosed in braces instead of the various
forms provided by the `plain' macros.
\SetBibJustification{\raggedright}
diff --git a/Master/texmf-dist/doc/latex/tugboat/ltubguid.pdf b/Master/texmf-dist/doc/latex/tugboat/ltubguid.pdf
index 5d4df0b38fd..7b6b3231f1e 100644
--- a/Master/texmf-dist/doc/latex/tugboat/ltubguid.pdf
+++ b/Master/texmf-dist/doc/latex/tugboat/ltubguid.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/tugboat/tugboat-code.pdf b/Master/texmf-dist/doc/latex/tugboat/tugboat-code.pdf
index 2c5c124fa8f..09edcef3960 100644
--- a/Master/texmf-dist/doc/latex/tugboat/tugboat-code.pdf
+++ b/Master/texmf-dist/doc/latex/tugboat/tugboat-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
index a4b558b1587..2a98a67ffc1 100644
--- a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
+++ b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
@@ -1,5 +1,5 @@
% \iffalse (this is a meta-comment (so they say))
-% $Id: tugboat.dtx 490 2023-07-03 22:27:49Z karl $
+% $Id: tugboat.dtx 533 2023-10-28 22:40:31Z karl $
% tugboat.dtx - main source for LaTeX TUGboat classes.
%
% Copyright 1994-2023 TeX Users Group.
@@ -28,7 +28,7 @@
%<ltugboatsty>\ProvidesPackage{ltugboat}
%<ltugprocsty>\ProvidesPackage{ltugproc}
%<ltugcomn> \ProvidesPackage{ltugcomn}
- [2023-07-03 v2.30
+ [2023-10-28 v2.31
%<ltugboatcls> TUGboat journal class%
%<ltugproccls> TUG conference proceedings class%
%<ltugboatsty|ltugprocsty> TUG compatibility package%
@@ -221,8 +221,6 @@
% & separated by a slash)\\
% |\cs|& control sequence name\\
% & |\cs{name}|$\rightarrow$\cs{name}\\
-% |\env|& environment name \\
-% & |\env{name}|$\rightarrow$\env{name}\\
% |\meta|& meta-argument name\\
% & |\meta{name}|$\rightarrow$\meta{name}\\
% |\dash|& en-dash surrounded by thinspaces; only breakable AFTER\\
@@ -240,7 +238,7 @@
% |\revtitle|& with one argument, title of \ldots \\
% |\revpubinfo|& with one argument, other info pertaining to \ldots \\
% |\endreviewitem|& end data for item being reviewed\\
-% |\titleref|& with one argument, format title as straight text
+% |\titleref|& one argument, format title as straight text
% (slanted, frenchspacing) \\
% |\Input|& |\input| with some other bookkeeping for
% case where multiple articles are put together\\
@@ -342,7 +340,7 @@
\tubfinaloptiontrue
\AtEndOfClass{%
% Insert draft date into the header even with [final], if we are not
- % doing a production run. (tugboat.dates sets up page numbers
+ % doing a production run. (|tugboat.dates| sets up page numbers
% above 900 in such pseudo-draft mode.) We use [final] in the first
% place for this case because draft vs. final can change page
% layout, wrt registration marks, etc. (Not good, but too painful to
@@ -682,7 +680,7 @@
% Font used for the METAFONT logo, etc.
% \begin{macrocode}
\DeclareRobustCommand{\AllTeX}{%
- \texorpdfstring{(\La\kern-.075em)\kern-.075em\TeX}{(La)TeX}}
+ \texorpdfstring{(\La\kern-.075em)\kern-.05em\TeX}{(La)TeX}}
\def\AMS{American Mathematical Society}
\def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox
{$\mathcal{M}$}\kern-.125em$\mathcal{S}$}
@@ -799,10 +797,12 @@
%
% \begin{macrocode}
%<!latex>\def\LaTeX{\La\kern-.15em\TeX}
+\def\LMTX{\acro{LMTX}}
\def\LuaHBTeX{Lua\acro{HB}\-\TeX}%
\def\LuaHBLaTeX{Lua\acro{HB}\-\LaTeX}%
\def\LuaLaTeX{Lua\-\LaTeX}% dtk-logos defines it and people like to use it
\def\LuaTeX{Lua\-\TeX}% ditto
+\def\luatex{\LuaTeX}% ditto
\def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX}
\def\macOS{mac\acro{OS}}
\def\MacOSX{Mac\,\acro{OS\,X}}
@@ -848,9 +848,10 @@
\def\pcMF{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}MF\@}
\def\PCTeX{PC\thinspace\TeX}
\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\pdfLaTeX{pdf\/\-\LaTeX}% dtk-logos
+\def\pdflatex{\pdfLatex}
+\def\pdfTeX{pdf\/\-\TeX}% dtk-logos
+\def\pdftex{\pdfTeX}
\def\PDF{\acro{PDF}}
\def\PGF{\acro{PGF}}
\def\PHP{\acro{PHP}}
@@ -904,7 +905,7 @@
% \fi
% but let's make the smaller change.
\fi
-\def\TikZ{Ti{\em k}Z}
+\def\TikZ{Ti\/{\em k}Z}
\def\ttn{\textsl{TTN}\@}
\def\TTN{\textsl{\TeX{} and TUG News}}
\def\TUB{\texttub{TUGboat}}\def\texttub{\textsl} % redefined in some situations
@@ -993,7 +994,6 @@
% \end{macrocode}
%
% \begin{macro}{\tubsentencespace}
-%
% Occasionally, notably after citations that need to come after a
% sentence-ending period, we want to tell \TeX\ that it's still at the
% end of a sentence. As in:
@@ -1008,16 +1008,21 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\tubdots}
% Latin Modern and many other fonts irritatingly make the Unicode
% ellipsis character (U+2026) a single character's width, typically more
% squashed together than three period characters. This just looks wrong.
% It is too painful to try to redefine in general, but provide the
% normal definition to reset in individual papers with, e.g.:
% |\ifx\tubdots\undefined \else \let\dots\tubdots \let\ldots\tubdots \fi|
+%
+% \begin{macrocode}
\DeclareRobustCommand{\tubdots}{\ifmmode\mathellipsis\else
.\kern\fontdimen3\font
.\kern\fontdimen3\font
.\kern\fontdimen3\font\fi}
+% \end{macrocode}
+% \end{macro}
%
% \begin{macro}{\allowhyphens}
% Hyphen control: first, we save (via \cs{edef}) the hyphenpenalties in
@@ -1145,9 +1150,18 @@
\def\now{\ifnum\hours<10 0\fi\number\hours:%
\ifnum\minutes<10 0\fi\number\minutes}
\def\Now{\today\ \now}
-\newif\ifPrelimDraft % [draft] or [preprint] or pageno>900
+\newif\ifPrelimDraft % true if ([draft] or [preprint] or pageno>900)
\def\midrtitle{} % center of running heads
\def\rtitlenexttopage{\ifPrelimDraft \textsl{\small draft: \Now}\fi}
+%\def\rtitlenexttopage{\ifnum\value{page}>900 \textsl{\small draft: \Now}\fi}
+% \end{macrocode}
+%
+% Sometimes we want to refer to the pages of another article in the same
+% issue. |tugboat.dates| makes the real definition; here we define a
+% placeholder so it won't be undefined when we send the source back to
+% the author.
+% \begin{macrocode}
+\let\thisissuepageref\empty
% \end{macrocode}
%
% \subsection{Ragged right and friends}
@@ -1217,14 +1231,13 @@
%
% \subsection{Assorted user-level markup}
%
-% \LaTeXe{} defines a robust \cs{,} we provide a new definition
-% of |~| by redefining \cs{\nobreakspace} (\cs{DeclareRobustCommand}
-% doesn't mind redefinition, fortunately). This is based on the version
-% in AMS-\TeX---the \LaTeXe{} version (|ltspace.dtx|) has \cs{leavevmode}
-% and does not do anything with the surrounding space(s). Our version
-% messes up with the \cs{pfill} used in |doc|-generated indexes
-% (\url{github.com/latex3/latex2e/issues/75}), but later (2018++)
-% versions of |doc| should be protected against our redefinition.
+% We provide a new definition of |~| by redefining \cs{\nobreakspace}
+% (\cs{DeclareRobustCommand} doesn't mind redefinition, fortunately).
+% This is based on the version in AMS-\TeX---the \LaTeXe{} version
+% (|ltspace.dtx|) has \cs{leavevmode} and does not do anything with the
+% surrounding space(s). Our version messes up with the \cs{pfill} used in
+% |doc|-generated indexes (\url{github.com/latex3/latex2e/issues/75}),
+% but later (2018++) versions of |doc| should protect against our redefinition.
%
% \begin{macrocode}
\let\latexnobreakspace=\nobreakspace
@@ -1289,8 +1302,20 @@
{\textbraceleft #1\textbraceright}%
}
%
-% Well, just the \begin part. Never seen it used.
-\DeclareRobustCommand{\env}[1]{\cs{begin}\tubbraced{#1}}
+% Literal text, such as class names, package names, filenames, etc,
+% Trying to define separate commands for each seems impossible and pointless.
+% Usually we don't want hyphenation or any other kind of break.
+\DeclareRobustCommand{\tbcode}[1]{\mbox{\texttt{#1}}}
+%
+% On the other hand, sometimes we need to break such code fragments.
+% If |hyperref| is loaded, we want |\nolinkurl|, else just |\url|.
+\AtBeginDocument{%
+\ifx\nolinkurl\undefined
+ \DeclareRobustCommand{\tbcodebreak}{\url}
+\else
+ \DeclareRobustCommand{\tbcodebreak}{\nolinkurl}
+\fi
+}
%
% Not sure why we ever want this instead of LaTeX's \, (using \kern),
% but fine, just keeping it.
@@ -1306,9 +1331,6 @@
% \cs{tbhurl}\tubbraced{foo} produces \texttt{http://foo}.
\AtBeginDocument{%
\ifx\hyper@normalise\undefined
- \def\tburl{\url}%
- \def\tbsurl{\url}% no hyperref, so just \url is fine.
- \def\tbhurl{\url}%
\ifx\url\undefined % make sure \url is defined
\def\url{\begingroup % might as well catch common special chars
\catcode`\#=12 \catcode`\$=12 \catcode`\%=12 \catcode`\^=12
@@ -1316,6 +1338,9 @@
\finish@tub@url}
\def\finish@tub@url#1{\tt #1\endgroup}
\fi
+ \let\tburl\url % no hyperref, so just \url is fine;
+ \let\tbsurl\url % \let instead of \def so we can still
+ \let\tbhurl\url % use \def\url{\tbsurl} without infloop.
\else
% This hyperref hook-in is due to Ulrike Fischer.
% \url{https://github.com/latex3/hyperref/issues/125}.
@@ -1370,10 +1395,14 @@
\def\tbsurlfootnote#1{\footnote{\raggedright\tbsurl{#1}}}
\def\tbhurlfootnote#1{\footnote{\raggedright\tbhurl{#1}}}
%
+% Close up space between footnote mark and punctuation ("pre-punctuation").
+\DeclareRobustCommand{\tbppkernfoot}{\tubthinnerspace}
+
% Make \! work in text mode.
\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
%
-% Half a thinspace, positive and negative.
+% Half a thinspace, positive and negative. Should have named these
+% \cs{tb} instead of \cs{tub}, but not worth changing now.
\DeclareRobustCommand{\tubthinnerspace}
{\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
\DeclareRobustCommand{\tubthinnerspaceneg}
@@ -1461,7 +1490,7 @@
\therevauth\therevtitle\therevpubinfo\endgraf}%
\vskip\medskipamount
}
-\def\titleref#1{{\slshape\frenchspacing#1\/}}
+\def\titleref#1{{\slshape\frenchspacing#1\nocorr}}
\let\booktitle=\titleref % older name
% \end{macrocode}
%
@@ -1604,7 +1633,8 @@
\@readFLN
\everyjob=\expandafter{\the\everyjob\@readFLN}
\InputIfFileExists{\jobname.fln}%
- {\TBInfo{Reading alternative file file \jobname.fln}}{}
+ {\TBInfo{Reading alternative file \jobname.fln}}
+ {}
% \end{macrocode}
%
% The following needs to work entirely in \TeX's mouth
@@ -1667,20 +1697,27 @@
\let\TBdriver\gobble
% \end{macrocode}
%
-% Some hyphenation exceptions:
+% Hyphenation exceptions. We read our own full |ushyphex.tex| (generated
+% from |tb0hyf.tex|) if it's available. The additional exceptions are
+% nearly all included in the file, but keep defining them anyway, since
+% we have for many years.
+%
+% But do not define any exceptions if |\tubomithyphenations| is defined.
+% This is needed for the |hyf| articles themselves.
%
% \begin{macrocode}
\ifx\tubomithyphenations\@thisisundefined
+\InputIfFileExists{ushyphex.tex}{}{} % ok if it's missing
\hyphenation{Del-a-ware Dijk-stra Duane Eijk-hout
- Flor-i-da Free-BSD Ghost-script Ghost-view
+ Flor-i-da Free-BSD Ghost-script
Hara-lam-bous Jac-kow-ski Ja-pa-nese Karls-ruhe Lua-Meta
- Mac-OS Ma-la-ya-lam Math-Sci-Net
+ Mac-OS Math-Sci-Net
Net-BSD Open-BSD Open-Office
- Pak-i-stan Pfa-Edit Post-Script Rich-ard Skoup South-all
+ Pak-i-stan Post-Script Rich-ard Skoup South-all
Vieth VM-ware Win-Edt
acro-nym acro-nyms analy-sis ap-pen-di-ces ap-pen-dix asyn-chro-nous
bib-lio-graph-i-cal bit-map bit-mapped bit-maps buf-fer buf-fers bool-ean
- col-umns com-put-able com-put-abil-ity cus-tom-iz-able
+ col-umns com-put-able com-put-abil-ity
data-base data-bases
de-allo-cate de-allo-cates de-allo-cated de-allo-ca-tion
de-riv-a-tive de-riv-a-tives de-riv-a-ble der-i-va-tion dis-trib-ut-able
@@ -1694,7 +1731,7 @@
mne-mon-ic mne-mon-ics mono-space mono-spaced
name-space name-spaces
off-line over-view
- pal-ettes par-a-digm par-a-dig-mat-ic par-a-digms
+ pal-ettes par-a-digm par-a-dig-matic par-a-digms
pipe-line pipe-lines
plug-in plug-ins pres-ent-ly pro-gram-mable
re-allo-cate re-allo-cates re-allo-cated re-printed
@@ -1758,8 +1795,16 @@
\newdimen\headmargin \headmargin=3.5pc
% \end{macrocode}
%
-% In \LaTeXe, |twoside| option is forced on when
-% |article.cls| is loaded.
+% Don't go to a float page so soon. Not all of these are relevant to all
+% articles, but we may as well set them all.
+% \begin{macrocode}
+\renewcommand{\topfraction}{.9} % don't go to a float page so soon
+\renewcommand{\dbltopfraction}{.9}
+\renewcommand{\bottomfraction}{.7}
+\renewcommand{\textfraction}{.1}
+\renewcommand{\floatpagefraction}{.8}
+\renewcommand{\dblfloatpagefraction}{.8} % the most common one used
+% \end{macrocode}
%
% \subsection{Messing about with the \LaTeX{} logo}
% \label{sec:latex-logo}
@@ -2725,12 +2770,12 @@
\string#2\space used instead}#2}
% \end{macrocode}
%
-% \cs{l@<sectioning-name>} is for table of contents (of an article).
+% \cs{l@<sectioninglevel>} is for table of contents (of an article).
% We define new macros to allow easily changing the font used for toc
% entries (for \TUB, we usually want roman, not bold), and the space
% between entries. Nelson Beebe and Frank Mittelbach's articles
% often have toc's (and few others). Also turn off microtype
-% protrusion after \tableofcontents or leaders get messed up.
+% protrusion after \tableofcontents, or leaders get messed up.
%
% \begin{macrocode}
\def\TBtocsectionfont{\normalfont}
@@ -2741,14 +2786,16 @@
% |#1| is both the section number and title; |#2| is the page number.
% Per Ulrike, the hook calls are for tagging, introduced with the
% June 2023 \LaTeX.
+% qqq need to also do subsections like tb137carlisle to avoid hyphenation
\def\l@section#1#2{%
\addpenalty{\@secpenalty}%
\addvspace{\TBtocsectionspace}%
\@tempdima 1.5em
\begingroup
\parindent\z@
- \rightskip\z@ % article style makes \rightskip > 0
+ \rightskip=0pt plus2em
\parfillskip\z@
+ \hyphenpenalty=10000
\TBtocsectionfont
\leavevmode
\advance\leftskip\@tempdima
@@ -2772,7 +2819,7 @@
\UseHookWithArguments{contentsline/page/before}{4}
{\toclevel@part}{#1}{#2}{\@contentsline@destination}%
\fi
- #2%
+ \tubtypesetpageno{#2}%
\ifx\UseHookWithArguments\undefined\else
\UseHookWithArguments{contentsline/page/after}{4}
{\toclevel@part}{#1}{#2}{\@contentsline@destination}%
@@ -2905,9 +2952,14 @@
% With more recent LaTeX, define \@currentlabelname via hooks.
% \begin{macrocode}
\@ifl@t@r\fmtversion{2023-06-01}{%
- \AddToHookWithArguments{cmd/@sect/before}{\def\@currentlabelname{#7}}%
- \AddToHookWithArguments{cmd/@ssect/before}{\def\@currentlabelname{#5}}%
-}{%
+ \RequirePackage{gettitlestring}
+ \AddToHookWithArguments{cmd/@sect/before}{%
+ \GetTitleString{#7}%
+ \let\@currentlabelname\GetTitleStringResult}%
+ \AddToHookWithArguments{cmd/@ssect/before}{%
+ \GetTitleString{#5}%
+ \let\@currentlabelname\GetTitleStringResult}%
+}{% else older latex:
\let\@savelatexlabel=\label % so save original LaTeX command
%
\def\label#1{%
@@ -3023,7 +3075,7 @@
% Let's reduce the default space above captions a bit, and give it some
% flexibility. The default is |10pt|, which seems too much.
% \begin{macrocode}
-\setlength\abovecaptionskip{6pt plus1pt minus1pt}
+\setlength\abovecaptionskip{3pt plus2pt minus1pt}
% \end{macrocode}
%
% \subsection{Size changing commands}
@@ -3537,38 +3589,50 @@
\def\@oddhead{\MakeRegistrationMarks
\frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
- \rtitlex\qquad \midrtitle\hfil \rtitlenexttopage\quad\thepage}
+ \rtitlex\qquad \midrtitle\hfil
+ \rtitlenexttopage\quad\tubtypesetpageno{\thepage}}
\def\@evenhead{\MakeRegistrationMarks
\frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
- \thepage\quad\rtitlenexttopage \hfil\midrtitle \qquad\rtitlex}
+ \tubtypesetpageno{\thepage}\quad\rtitlenexttopage
+ \hfil\midrtitle \qquad\rtitlex}
-% Put a ? into the page number in all but a final run, so people
-% aren't tempted to cite it.
+% Put a ? into the page number in the headers in all but a final run, so
+% people aren't tempted to cite it.
%
-% We redefine |\thepage| so that the ? will also be used in page
-% references (in the text) and the toc. This is what's recommended by
-% the LaTeX developers: https://tex.stackexchange.com/questions/687258.
-% (Ulrike's example does this after loading hyperref, but doesn't seem
-% to matter?)
-\renewcommand\thepage{%
- \ifnum\value{page}>900
+\newcommand{\tubtypesetpageno}[1]{%
+ \ifnum #1>900
% in CM, numerals are exactly .5em.
%
% The \texorpdfstring avoids the usual hyperref warning:
% Token not allowed in a PDF string ... removing `\@ifnextchar'
\texorpdfstring{\makebox[.5em][l]{\small ?}}{?}%
%
- \textsl{\@arabic{\numexpr\value{page}-900\relax}}% e-tex
+ \textsl{\@arabic{\numexpr#1-900\relax}}% assuming e-tex
\else
- \@arabic{\value{page}}%
+ \@arabic{#1}%
\fi
}
-% This custom page number format will break makeindex, etc., so we have
-% to tell about the format. Per Ulrike:
-% \usepackage{index}
-% \newcommand\specialthepage{\inteval{\value{page}-900}}
-% \newindex[specialthepage]*{default}{idx}{ind}{Index}
+%
+% The above changes the page number in the headers and tocs. It does not
+% change the page number in cross-references, which will still show up
+% as `901' instead of `?1'. In order to do that, we'd have to redefine
+% |\thepage| (https://tex.stackexchange.com/questions/687258).
+%
+% The problem is that |\thepage| is not expected to contain typesetting
+% commands like |\makebox| and |\textsl|, but to expand to the simple
+% page number (in whatever form). For example, when redefining
+% |\thepage| to the above, terminal warnings then look like:
+% |LaTeX Warning: Citation `foo' on page \makebox [.5em][l]{...|
+% losing the actual page number.
+%
+% So apparently there is no way to add the ? correctly in all contexts.
+%
+% BTW, such a custom page number format would also break makeindex,
+% etc., but for that we could provide the information. Per Ulrike:
+%\usepackage{index}
+%\newcommand\specialthepage{\inteval{\value{page}-900}}
+%\newindex[specialthepage]*{default}{idx}{ind}{Index}
% can be used to reset the font, e.g., tb98kuester.
\def\tubheadhook{}
@@ -3735,7 +3799,7 @@
% spacefactor after inserting its text.
%
% \begin{macrocode}
-\newcommand{\acro}[1]{\textSMC{#1}\@}
+\DeclareRobustCommand{\acro}[1]{\textSMC{#1}\@}
%</common>
% \end{macrocode}
%
@@ -3843,12 +3907,13 @@
\fi
\authornumber\z@
\let\@signature\@defaultsignature
-\InputIfFileExists{ltugboat.cfg}{\TBInfo{Loading ltugboat
- configuration information}}{}
+\InputIfFileExists{ltugboat.cfg}
+ {\TBInfo{Loading ltugboat.cfg configuration information}}
+ {}
%</classtail>
% \end{macrocode}
%
-% \section{\protect\LaTeXe\ Proceedings class}
+% \section{\protect\LaTeXe\ proceedings class (no longer used)}
%
% \begin{macro}{\@tugclass}
% Make the code of |ltugboat.cls| (when we load it) say it's really
@@ -3943,7 +4008,7 @@
%
% \begin{macrocode}
\InputIfFileExists{\@tugclass.cfg}{\ClassInfo{ltugproc}%
- {Loading ltugproc configuration information}}{}
+ {Loading ltugproc.cfg configuration information}}{}
\@ifundefined{TUGprocExtraOptions}%
{\let\TUGprocExtraOptions\@empty}%
{\edef\TUGprocExtraOptions{,\TUGprocExtraOptions}}
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls b/Master/texmf-dist/tex/latex/tugboat/ltugboat.cls
index 487cb2ca7d2..e4e39182297 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-07-03 v2.30
+ [2023-10-28 v2.31
TUGboat journal class%
]
\newif\ifTBunicodeengine
@@ -72,7 +72,7 @@
\tubfinaloptiontrue
\AtEndOfClass{%
% Insert draft date into the header even with [final], if we are not
- % doing a production run. (tugboat.dates sets up page numbers
+ % doing a production run. (|tugboat.dates| sets up page numbers
% above 900 in such pseudo-draft mode.) We use [final] in the first
% place for this case because draft vs. final can change page
% layout, wrt registration marks, etc. (Not good, but too painful to
@@ -203,7 +203,7 @@
\selectfont #1}}}}
\def\tubline{\hbox to \hsize}
\DeclareRobustCommand{\AllTeX}{%
- \texorpdfstring{(\La\kern-.075em)\kern-.075em\TeX}{(La)TeX}}
+ \texorpdfstring{(\La\kern-.075em)\kern-.05em\TeX}{(La)TeX}}
\def\AMS{American Mathematical Society}
\def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox
{$\mathcal{M}$}\kern-.125em$\mathcal{S}$}
@@ -293,10 +293,12 @@
A}%
\vss}%
}}
+\def\LMTX{\acro{LMTX}}
\def\LuaHBTeX{Lua\acro{HB}\-\TeX}%
\def\LuaHBLaTeX{Lua\acro{HB}\-\LaTeX}%
\def\LuaLaTeX{Lua\-\LaTeX}% dtk-logos defines it and people like to use it
\def\LuaTeX{Lua\-\TeX}% ditto
+\def\luatex{\LuaTeX}% ditto
\def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX}
\def\macOS{mac\acro{OS}}
\def\MacOSX{Mac\,\acro{OS\,X}}
@@ -324,9 +326,10 @@
\def\pcMF{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}MF\@}
\def\PCTeX{PC\thinspace\TeX}
\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\pdfLaTeX{pdf\/\-\LaTeX}% dtk-logos
+\def\pdflatex{\pdfLatex}
+\def\pdfTeX{pdf\/\-\TeX}% dtk-logos
+\def\pdftex{\pdfTeX}
\def\PDF{\acro{PDF}}
\def\PGF{\acro{PGF}}
\def\PHP{\acro{PHP}}
@@ -380,7 +383,7 @@
% \fi
% but let's make the smaller change.
\fi
-\def\TikZ{Ti{\em k}Z}
+\def\TikZ{Ti\/{\em k}Z}
\def\ttn{\textsl{TTN}\@}
\def\TTN{\textsl{\TeX{} and TUG News}}
\def\TUB{\texttub{TUGboat}}\def\texttub{\textsl} % redefined in some situations
@@ -495,9 +498,10 @@
\def\now{\ifnum\hours<10 0\fi\number\hours:%
\ifnum\minutes<10 0\fi\number\minutes}
\def\Now{\today\ \now}
-\newif\ifPrelimDraft % [draft] or [preprint] or pageno>900
+\newif\ifPrelimDraft % true if ([draft] or [preprint] or pageno>900)
\def\midrtitle{} % center of running heads
\def\rtitlenexttopage{\ifPrelimDraft \textsl{\small draft: \Now}\fi}
+\let\thisissuepageref\empty
\newdimen\raggedskip \raggedskip=\z@
\newdimen\raggedstretch \raggedstretch=5em % ems of font set now (10pt)
\newskip\raggedparfill \raggedparfill=\z@\@plus 1fil
@@ -561,13 +565,17 @@
{\mbox{\texttt{\char`\{#1\char`\}}}}%
{\textbraceleft #1\textbraceright}%
}
-\DeclareRobustCommand{\env}[1]{\cs{begin}\tubbraced{#1}}
+\DeclareRobustCommand{\tbcode}[1]{\mbox{\texttt{#1}}}
+\AtBeginDocument{%
+\ifx\nolinkurl\undefined
+ \DeclareRobustCommand{\tbcodebreak}{\url}
+\else
+ \DeclareRobustCommand{\tbcodebreak}{\nolinkurl}
+\fi
+}
\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 % make sure \url is defined
\def\url{\begingroup % might as well catch common special chars
\catcode`\#=12 \catcode`\$=12 \catcode`\%=12 \catcode`\^=12
@@ -575,6 +583,9 @@
\finish@tub@url}
\def\finish@tub@url#1{\tt #1\endgroup}
\fi
+ \let\tburl\url % no hyperref, so just \url is fine;
+ \let\tbsurl\url % \let instead of \def so we can still
+ \let\tbhurl\url % use \def\url{\tbsurl} without infloop.
\else
% This hyperref hook-in is due to Ulrike Fischer.
% \url{https://github.com/latex3/hyperref/issues/125}.
@@ -611,6 +622,8 @@
\def\tburlfootnote{\tbsurlfootnote}
\def\tbsurlfootnote#1{\footnote{\raggedright\tbsurl{#1}}}
\def\tbhurlfootnote#1{\footnote{\raggedright\tbhurl{#1}}}
+\DeclareRobustCommand{\tbppkernfoot}{\tubthinnerspace}
+
\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
\DeclareRobustCommand{\tubthinnerspace}
{\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
@@ -668,7 +681,7 @@
\therevauth\therevtitle\therevpubinfo\endgraf}%
\vskip\medskipamount
}
-\def\titleref#1{{\slshape\frenchspacing#1\/}}
+\def\titleref#1{{\slshape\frenchspacing#1\nocorr}}
\let\booktitle=\titleref % older name
\newcount\issueseqno \issueseqno=-1
\def\v@lx{\gdef\volx{Volume~\volno~(\volyr), No.~\issno}}
@@ -733,7 +746,8 @@
\@readFLN
\everyjob=\expandafter{\the\everyjob\@readFLN}
\InputIfFileExists{\jobname.fln}%
- {\TBInfo{Reading alternative file file \jobname.fln}}{}
+ {\TBInfo{Reading alternative file \jobname.fln}}
+ {}
\def\@tubfilename#1{\expandafter\ifx\csname file@@#1\endcsname\relax
#1\else\csname file@@#1\endcsname\fi}
\def\fileinput#1{\@@input\@tubfilename{#1} }
@@ -759,16 +773,17 @@
\let\xrefto=\xreftoOFF
\let\TBdriver\gobble
\ifx\tubomithyphenations\@thisisundefined
+\InputIfFileExists{ushyphex.tex}{}{} % ok if it's missing
\hyphenation{Del-a-ware Dijk-stra Duane Eijk-hout
- Flor-i-da Free-BSD Ghost-script Ghost-view
+ Flor-i-da Free-BSD Ghost-script
Hara-lam-bous Jac-kow-ski Ja-pa-nese Karls-ruhe Lua-Meta
- Mac-OS Ma-la-ya-lam Math-Sci-Net
+ Mac-OS Math-Sci-Net
Net-BSD Open-BSD Open-Office
- Pak-i-stan Pfa-Edit Post-Script Rich-ard Skoup South-all
+ Pak-i-stan Post-Script Rich-ard Skoup South-all
Vieth VM-ware Win-Edt
acro-nym acro-nyms analy-sis ap-pen-di-ces ap-pen-dix asyn-chro-nous
bib-lio-graph-i-cal bit-map bit-mapped bit-maps buf-fer buf-fers bool-ean
- col-umns com-put-able com-put-abil-ity cus-tom-iz-able
+ col-umns com-put-able com-put-abil-ity
data-base data-bases
de-allo-cate de-allo-cates de-allo-cated de-allo-ca-tion
de-riv-a-tive de-riv-a-tives de-riv-a-ble der-i-va-tion dis-trib-ut-able
@@ -782,7 +797,7 @@
mne-mon-ic mne-mon-ics mono-space mono-spaced
name-space name-spaces
off-line over-view
- pal-ettes par-a-digm par-a-dig-mat-ic par-a-digms
+ pal-ettes par-a-digm par-a-dig-matic par-a-digms
pipe-line pipe-lines
plug-in plug-ins pres-ent-ly pro-gram-mable
re-allo-cate re-allo-cates re-allo-cated re-printed
@@ -829,6 +844,12 @@
\newdimen\trimwd \trimwd=\pagewd
\newdimen\trimlgt \trimlgt=11in
\newdimen\headmargin \headmargin=3.5pc
+\renewcommand{\topfraction}{.9} % don't go to a float page so soon
+\renewcommand{\dbltopfraction}{.9}
+\renewcommand{\bottomfraction}{.7}
+\renewcommand{\textfraction}{.1}
+\renewcommand{\floatpagefraction}{.8}
+\renewcommand{\dblfloatpagefraction}{.8} % the most common one used
\newcommand{\DeclareLaTeXLogo}[5]{\expandafter\def
\csname @LaTeX@#1/#2/#3\endcsname{{#4}{#5}}}
\def\@LaTeX@default{{.36}{.15}}
@@ -1293,8 +1314,9 @@
\@tempdima 1.5em
\begingroup
\parindent\z@
- \rightskip\z@ % article style makes \rightskip > 0
+ \rightskip=0pt plus2em
\parfillskip\z@
+ \hyphenpenalty=10000
\TBtocsectionfont
\leavevmode
\advance\leftskip\@tempdima
@@ -1318,7 +1340,7 @@
\UseHookWithArguments{contentsline/page/before}{4}
{\toclevel@part}{#1}{#2}{\@contentsline@destination}%
\fi
- #2%
+ \tubtypesetpageno{#2}%
\ifx\UseHookWithArguments\undefined\else
\UseHookWithArguments{contentsline/page/after}{4}
{\toclevel@part}{#1}{#2}{\@contentsline@destination}%
@@ -1366,9 +1388,14 @@
}
} % LaTeX earlier than June 2023
\@ifl@t@r\fmtversion{2023-06-01}{%
- \AddToHookWithArguments{cmd/@sect/before}{\def\@currentlabelname{#7}}%
- \AddToHookWithArguments{cmd/@ssect/before}{\def\@currentlabelname{#5}}%
-}{%
+ \RequirePackage{gettitlestring}
+ \AddToHookWithArguments{cmd/@sect/before}{%
+ \GetTitleString{#7}%
+ \let\@currentlabelname\GetTitleStringResult}%
+ \AddToHookWithArguments{cmd/@ssect/before}{%
+ \GetTitleString{#5}%
+ \let\@currentlabelname\GetTitleStringResult}%
+}{% else older latex:
\let\@savelatexlabel=\label % so save original LaTeX command
%
\def\label#1{%
@@ -1424,7 +1451,7 @@
\def\fnum@figure{{\tubcaptionfonts \bf \figurename\nobreakspace\thefigure}}
\def\fnum@table{{\tubcaptionfonts \bf \tablename\nobreakspace\thetable}}
\def\lstlistingnamestyle{\bfseries}
-\setlength\abovecaptionskip{6pt plus1pt minus1pt}
+\setlength\abovecaptionskip{3pt plus2pt minus1pt}
\renewcommand{\normalsize}{%
\@setfontsize\normalsize\@xpt\@xiipt
\abovedisplayskip=3\p@\@plus 3\p@\@minus\p@
@@ -1676,23 +1703,25 @@
\def\@oddhead{\MakeRegistrationMarks
\frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
- \rtitlex\qquad \midrtitle\hfil \rtitlenexttopage\quad\thepage}
+ \rtitlex\qquad \midrtitle\hfil
+ \rtitlenexttopage\quad\tubtypesetpageno{\thepage}}
\def\@evenhead{\MakeRegistrationMarks
\frenchspacing
\normalsize\csname normalshape\endcsname\rm \tubheadhook
- \thepage\quad\rtitlenexttopage \hfil\midrtitle \qquad\rtitlex}
+ \tubtypesetpageno{\thepage}\quad\rtitlenexttopage
+ \hfil\midrtitle \qquad\rtitlex}
-\renewcommand\thepage{%
- \ifnum\value{page}>900
+\newcommand{\tubtypesetpageno}[1]{%
+ \ifnum #1>900
% in CM, numerals are exactly .5em.
%
% The \texorpdfstring avoids the usual hyperref warning:
% Token not allowed in a PDF string ... removing `\@ifnextchar'
\texorpdfstring{\makebox[.5em][l]{\small ?}}{?}%
%
- \textsl{\@arabic{\numexpr\value{page}-900\relax}}% e-tex
+ \textsl{\@arabic{\numexpr#1-900\relax}}% assuming e-tex
\else
- \@arabic{\value{page}}%
+ \@arabic{#1}%
\fi
}
@@ -1779,7 +1808,7 @@
\newcommand{\SMC@unknown@warning}{\TBWarning{\string\SMC: nonstandard
text font size command -- using \string\small}}
\newcommand{\textSMC}[1]{{\SMC #1}}
-\newcommand{\acro}[1]{\textSMC{#1}\@}
+\DeclareRobustCommand{\acro}[1]{\textSMC{#1}\@}
\def\xEdNote{{\EdNoteFont Editor's note:\enspace }}
\def\EdNote{\@ifnextchar[%]
{%
@@ -1842,8 +1871,9 @@
\fi
\authornumber\z@
\let\@signature\@defaultsignature
-\InputIfFileExists{ltugboat.cfg}{\TBInfo{Loading ltugboat
- configuration information}}{}
+\InputIfFileExists{ltugboat.cfg}
+ {\TBInfo{Loading ltugboat.cfg configuration information}}
+ {}
\endinput
%%
%% End of file `ltugboat.cls'.
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugboat.sty b/Master/texmf-dist/tex/latex/tugboat/ltugboat.sty
index 3d64ea5ce5d..ceaa72406ba 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugboat.sty
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugboat.sty
@@ -31,7 +31,7 @@
%% extension .ins) which are part of the distribution.
%%
\ProvidesPackage{ltugboat}
- [2023-07-03 v2.30
+ [2023-10-28 v2.31
TUG compatibility package%
]
\@obsoletefile{ltugboat.cls}{ltugboat.sty}
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty b/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
index 63845f6b450..61cd56f89e4 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugcomn.sty
@@ -32,7 +32,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{ltugcomn}
- [2023-07-03 v2.30
+ [2023-10-28 v2.31
TUGboat `common macros' package%
]
\newif\ifTBunicodeengine
@@ -106,7 +106,7 @@
\selectfont #1}}}}
\def\tubline{\hbox to \hsize}
\DeclareRobustCommand{\AllTeX}{%
- \texorpdfstring{(\La\kern-.075em)\kern-.075em\TeX}{(La)TeX}}
+ \texorpdfstring{(\La\kern-.075em)\kern-.05em\TeX}{(La)TeX}}
\def\AMS{American Mathematical Society}
\def\AmS{$\mathcal{A}$\kern-.1667em\lower.5ex\hbox
{$\mathcal{M}$}\kern-.125em$\mathcal{S}$}
@@ -196,10 +196,12 @@
A}%
\vss}%
}}
+\def\LMTX{\acro{LMTX}}
\def\LuaHBTeX{Lua\acro{HB}\-\TeX}%
\def\LuaHBLaTeX{Lua\acro{HB}\-\LaTeX}%
\def\LuaLaTeX{Lua\-\LaTeX}% dtk-logos defines it and people like to use it
\def\LuaTeX{Lua\-\TeX}% ditto
+\def\luatex{\LuaTeX}% ditto
\def\LyX{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX}
\def\macOS{mac\acro{OS}}
\def\MacOSX{Mac\,\acro{OS\,X}}
@@ -227,9 +229,10 @@
\def\pcMF{\leavevmode\raise.5ex\hbox{p\kern-.3\p@ c}MF\@}
\def\PCTeX{PC\thinspace\TeX}
\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\pdfLaTeX{pdf\/\-\LaTeX}% dtk-logos
+\def\pdflatex{\pdfLatex}
+\def\pdfTeX{pdf\/\-\TeX}% dtk-logos
+\def\pdftex{\pdfTeX}
\def\PDF{\acro{PDF}}
\def\PGF{\acro{PGF}}
\def\PHP{\acro{PHP}}
@@ -283,7 +286,7 @@
% \fi
% but let's make the smaller change.
\fi
-\def\TikZ{Ti{\em k}Z}
+\def\TikZ{Ti\/{\em k}Z}
\def\ttn{\textsl{TTN}\@}
\def\TTN{\textsl{\TeX{} and TUG News}}
\def\TUB{\texttub{TUGboat}}\def\texttub{\textsl} % redefined in some situations
@@ -398,9 +401,10 @@
\def\now{\ifnum\hours<10 0\fi\number\hours:%
\ifnum\minutes<10 0\fi\number\minutes}
\def\Now{\today\ \now}
-\newif\ifPrelimDraft % [draft] or [preprint] or pageno>900
+\newif\ifPrelimDraft % true if ([draft] or [preprint] or pageno>900)
\def\midrtitle{} % center of running heads
\def\rtitlenexttopage{\ifPrelimDraft \textsl{\small draft: \Now}\fi}
+\let\thisissuepageref\empty
\newdimen\raggedskip \raggedskip=\z@
\newdimen\raggedstretch \raggedstretch=5em % ems of font set now (10pt)
\newskip\raggedparfill \raggedparfill=\z@\@plus 1fil
@@ -464,13 +468,17 @@
{\mbox{\texttt{\char`\{#1\char`\}}}}%
{\textbraceleft #1\textbraceright}%
}
-\DeclareRobustCommand{\env}[1]{\cs{begin}\tubbraced{#1}}
+\DeclareRobustCommand{\tbcode}[1]{\mbox{\texttt{#1}}}
+\AtBeginDocument{%
+\ifx\nolinkurl\undefined
+ \DeclareRobustCommand{\tbcodebreak}{\url}
+\else
+ \DeclareRobustCommand{\tbcodebreak}{\nolinkurl}
+\fi
+}
\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 % make sure \url is defined
\def\url{\begingroup % might as well catch common special chars
\catcode`\#=12 \catcode`\$=12 \catcode`\%=12 \catcode`\^=12
@@ -478,6 +486,9 @@
\finish@tub@url}
\def\finish@tub@url#1{\tt #1\endgroup}
\fi
+ \let\tburl\url % no hyperref, so just \url is fine;
+ \let\tbsurl\url % \let instead of \def so we can still
+ \let\tbhurl\url % use \def\url{\tbsurl} without infloop.
\else
% This hyperref hook-in is due to Ulrike Fischer.
% \url{https://github.com/latex3/hyperref/issues/125}.
@@ -514,6 +525,8 @@
\def\tburlfootnote{\tbsurlfootnote}
\def\tbsurlfootnote#1{\footnote{\raggedright\tbsurl{#1}}}
\def\tbhurlfootnote#1{\footnote{\raggedright\tbhurl{#1}}}
+\DeclareRobustCommand{\tbppkernfoot}{\tubthinnerspace}
+
\DeclareRobustCommand{\!}{\ifmmode\mskip-\thinmuskip \else\kern-0.16667em \fi}
\DeclareRobustCommand{\tubthinnerspace}
{\ifmmode\mskip.5\thinmuskip \else\kern0.08333em \fi}
@@ -571,7 +584,7 @@
\therevauth\therevtitle\therevpubinfo\endgraf}%
\vskip\medskipamount
}
-\def\titleref#1{{\slshape\frenchspacing#1\/}}
+\def\titleref#1{{\slshape\frenchspacing#1\nocorr}}
\let\booktitle=\titleref % older name
\newcount\issueseqno \issueseqno=-1
\def\v@lx{\gdef\volx{Volume~\volno~(\volyr), No.~\issno}}
@@ -636,7 +649,8 @@
\@readFLN
\everyjob=\expandafter{\the\everyjob\@readFLN}
\InputIfFileExists{\jobname.fln}%
- {\TBInfo{Reading alternative file file \jobname.fln}}{}
+ {\TBInfo{Reading alternative file \jobname.fln}}
+ {}
\def\@tubfilename#1{\expandafter\ifx\csname file@@#1\endcsname\relax
#1\else\csname file@@#1\endcsname\fi}
\def\fileinput#1{\@@input\@tubfilename{#1} }
@@ -662,16 +676,17 @@
\let\xrefto=\xreftoOFF
\let\TBdriver\gobble
\ifx\tubomithyphenations\@thisisundefined
+\InputIfFileExists{ushyphex.tex}{}{} % ok if it's missing
\hyphenation{Del-a-ware Dijk-stra Duane Eijk-hout
- Flor-i-da Free-BSD Ghost-script Ghost-view
+ Flor-i-da Free-BSD Ghost-script
Hara-lam-bous Jac-kow-ski Ja-pa-nese Karls-ruhe Lua-Meta
- Mac-OS Ma-la-ya-lam Math-Sci-Net
+ Mac-OS Math-Sci-Net
Net-BSD Open-BSD Open-Office
- Pak-i-stan Pfa-Edit Post-Script Rich-ard Skoup South-all
+ Pak-i-stan Post-Script Rich-ard Skoup South-all
Vieth VM-ware Win-Edt
acro-nym acro-nyms analy-sis ap-pen-di-ces ap-pen-dix asyn-chro-nous
bib-lio-graph-i-cal bit-map bit-mapped bit-maps buf-fer buf-fers bool-ean
- col-umns com-put-able com-put-abil-ity cus-tom-iz-able
+ col-umns com-put-able com-put-abil-ity
data-base data-bases
de-allo-cate de-allo-cates de-allo-cated de-allo-ca-tion
de-riv-a-tive de-riv-a-tives de-riv-a-ble der-i-va-tion dis-trib-ut-able
@@ -685,7 +700,7 @@
mne-mon-ic mne-mon-ics mono-space mono-spaced
name-space name-spaces
off-line over-view
- pal-ettes par-a-digm par-a-dig-mat-ic par-a-digms
+ pal-ettes par-a-digm par-a-dig-matic par-a-digms
pipe-line pipe-lines
plug-in plug-ins pres-ent-ly pro-gram-mable
re-allo-cate re-allo-cates re-allo-cated re-printed
@@ -714,7 +729,7 @@
\newcommand{\SMC@unknown@warning}{\TBWarning{\string\SMC: nonstandard
text font size command -- using \string\small}}
\newcommand{\textSMC}[1]{{\SMC #1}}
-\newcommand{\acro}[1]{\textSMC{#1}\@}
+\DeclareRobustCommand{\acro}[1]{\textSMC{#1}\@}
\endinput
%%
%% End of file `ltugcomn.sty'.
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugproc.cls b/Master/texmf-dist/tex/latex/tugboat/ltugproc.cls
index 96c6a5d73bc..927ea8fb9ab 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugproc.cls
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugproc.cls
@@ -32,7 +32,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass {ltugproc}
- [2023-07-03 v2.30
+ [2023-10-28 v2.31
TUG conference proceedings class%
]
\def\@tugclass{ltugproc}
@@ -71,7 +71,7 @@
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ltugboat}}
\InputIfFileExists{\@tugclass.cfg}{\ClassInfo{ltugproc}%
- {Loading ltugproc configuration information}}{}
+ {Loading ltugproc.cfg configuration information}}{}
\@ifundefined{TUGprocExtraOptions}%
{\let\TUGprocExtraOptions\@empty}%
{\edef\TUGprocExtraOptions{,\TUGprocExtraOptions}}
diff --git a/Master/texmf-dist/tex/latex/tugboat/ltugproc.sty b/Master/texmf-dist/tex/latex/tugboat/ltugproc.sty
index 66d7e77d4ab..ea46c90c4b5 100644
--- a/Master/texmf-dist/tex/latex/tugboat/ltugproc.sty
+++ b/Master/texmf-dist/tex/latex/tugboat/ltugproc.sty
@@ -31,7 +31,7 @@
%% extension .ins) which are part of the distribution.
%%
\ProvidesPackage{ltugproc}
- [2023-07-03 v2.30
+ [2023-10-28 v2.31
TUG compatibility package%
]
\@obsoletefile{ltugproc.cls}{ltugproc.sty}