summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty')
-rw-r--r--Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty47
1 files changed, 21 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty b/Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty
index 88f8d036628..9a345ade4b1 100644
--- a/Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty
+++ b/Master/texmf-dist/tex/plain/tugboat-plain/tugboat.sty
@@ -18,11 +18,11 @@
%% for preparation of items in TUGboat, the
%% Communications of the TeX Users Group.",
%% }
-%% $Id: tugboat.sty 561 2024-04-15 17:28:40Z karl $
+%% $Id: tugboat.sty 607 2024-10-26 22:26:03Z karl $
\def\thistubstyle{plain}
-\def\fileversion{v1.30}
-\def\filedate{2024-03-31}
+\def\fileversion{v1.31}
+\def\filedate{2024-10-26}
% general items
@@ -64,15 +64,12 @@
% ** utilities
% ** initialization
-
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ***** fonts *****
%
-
% Struts give ascenders and descenders to assist in baseline alignment
% (e.g. of adjoining vertical boxes); useful only with text fonts.
%
@@ -360,7 +357,6 @@
% ***** page dimensions *****
%
-
% vertical dimensions
\newdimen\trimlgt \trimlgt=11in % 10.5in (vols 7-9)
@@ -444,7 +440,6 @@
% ***** headers/footers *****
%
-
\def\pagenoprefix{}
\def\rtitlex{\def\tubfont{\tenpoint\rm}\TUB, \volx }
@@ -508,8 +503,6 @@
\newif\iftubsecondcolstart % when we splice, e.g., tb139wermuth-isdim
\newdimen\tubcolwidthandgutter
\newif\iftubfinaloption % set in tugboat.dates
-\def\tbsurl#1{{\tt #1}} % we don't try to have live urls in plain
-\def\tbhurl#1{{\tt #1}} % we don't try to have live urls in plain
\def\scriptsize{\let\rm=\sevenrm \font\tt=cmtt8 at 7pt % fake 7pt match LaTeX
\baselineskip=8pt \relax} % fake
\def\@empty{}
@@ -520,9 +513,9 @@
\ifnum\authornumber>0 % our convention: no doi if no author
\iftubfinaloption % do this if [final], even if pageno>900
\vbox to 0pt{% don't impact normal layout
- \edef\thedoi{\ifnum\count0>900 xnot\fi % but make url invalid if >900
- doi.org/\tubdoiprefix/\volno-\issno/\jobname}%
\scriptsize
+ \edef\thedoi{\ifnum\count0>900 xnot\fi % but make url invalid if >900
+ \tbsurl{doi.org/\tubdoiprefix/\tbissident/\jobname}}%
\vskip\baselineskip
\iftubsecondcolstart \moveright\tubcolwidthandgutter \fi
\rlap{\expandafter\tbsurl\expandafter{\thedoi}}%
@@ -577,14 +570,12 @@
\gdef\pageprefix{#2}% % as in A-10 for appendices; not used just now
\nextrunner }
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ***** insertions *****
%
-
\newif\if@floatable \@floatabletrue % sometimes we don't want
\def\nofloat{\@floatablefalse} % midinsertions to float
@@ -655,7 +646,6 @@
% ***** output *****
%
-
% Reorganize \pagecontents from PLAIN to put footnotes at very
% bottom of page, even if \raggedbottom. Also add bottom insertions.
@@ -810,14 +800,12 @@
\ExecuteNextDC % possible `Delayed Command'
}
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ***** page adjustment *****
%
-
% In the absence of automatic column-balancing, provide a mechanism
% for manually shortening a specified page.
@@ -923,7 +911,6 @@
\@form
\fi \fi}
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -1403,7 +1390,17 @@
}
-\def\endarticle{\vfil\end} % redefined in drivers
+% without the \nobreak, we can end up with an empty last page
+% (tb139wermuth-isdim). As Udo explains (13may24):
+% After TeX adjusts the page height the tugboat.sty output routine
+% starts the \ExecuteNextDC macro that prepares for a new page. This
+% page gets a \topskip and more input is read next. Only \endarticle is
+% left so a \vfill finishes the started column and your routine adds
+% another one to complete the page. That's all that ends up on the page.
+% With the \nobreak, the signature will be put on the last page, and the
+% previous page will be underfull, so it becomes obvious that a little
+% space should be taken away somewhere.
+\def\endarticle{\nobreak\vfil\end}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1474,6 +1471,7 @@
\newif\if@allowindent
\def\allowindent{\global\@allowindenttrue}
+
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -2010,14 +2008,12 @@
}
}
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ***** figures *****
%
-
\newif\if@@mid \@@midfalse
\newif\if@@bot \@@botfalse
\def\@caption{}
@@ -2116,16 +2112,12 @@
\def\twocolfigure{%
\figure[\fixed]}
-
-
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% ***** utilities *****
%
-
-
\def\linebreak{\unskip\break} % conflicts with LaTeX definition
% Define a structure that will permit a list (using \obeylines)
@@ -2208,7 +2200,6 @@
% ***** initialization *****
%
-
\def\initializearticle{%
\let\thetitle=\relax
\authornumber=0
@@ -2249,6 +2240,10 @@
Version Date Changes
------- --------- ---------------------------------------------------
+1.31 26 Oct 24 \thedoi: use \tbissident.
+ \endarticle: avoid empty last page, also for
+ tb139wermuth-isdim.
+
1.30 15 Apr 24 implement \iftubsecondcolstart for tb139wermuth-isdim.
1.29 28 Oct 23 introduce \abovecaptionskipamount, reduce to \smallskip