summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/tugboat/tugboat.dtx')
-rw-r--r--Master/texmf-dist/source/latex/tugboat/tugboat.dtx22
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
index 019a552c217..43469c42945 100644
--- a/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
+++ b/Master/texmf-dist/source/latex/tugboat/tugboat.dtx
@@ -1,8 +1,8 @@
% \iffalse (this is a meta-comment (so they say))
-% $Id: tugboat.dtx 136 2014-11-13 18:23:44Z karl $
+% $Id: tugboat.dtx 138 2015-03-18 23:23:36Z karl $
% tugboat.dtx - main source for LaTeX TUGboat classes.
%
-% Copyright 1994-2014 TeX Users Group.
+% Copyright 1994-2015 TeX Users Group.
%
% This file is part of the tugboat package.
%
@@ -28,7 +28,7 @@
%<ltugboatsty>\ProvidesPackage{ltugboat}
%<ltugprocsty>\ProvidesPackage{ltugproc}
%<ltugcomn> \ProvidesPackage{ltugcomn}
- [2014/11/12 v2.16
+ [2015/03/24 v2.17
%<ltugboatcls> TUGboat journal class%
%<ltugproccls> TUG conference proceedings class%
%<ltugboatsty|ltugprocsty> TUG compatibility package%
@@ -160,8 +160,7 @@
% |\mf|& \textsc{Metafont}\\
% |\MFB|& The Metafont book\\
% |\MP|& \MP\\
-% |\mp|& MetaPost (in text only: remains `\ensuremath{\mp}'
-% in maths)\\
+% |\mp|& MetaPost (in text only: still `\ensuremath{\mp}' in math)\\
% |\OMEGA|& Omega `logo' (\ensuremath{\Omega})\\
% |\OCP|& Omega compiled process\\
% |\OOXML|&\\
@@ -337,7 +336,7 @@
\def\TBWarningNL{\ClassWarningNoLine{\@tugclass}}
% \end{macrocode}
%
-% Some trivial options, just flicking switches, etc.
+% |draft| vs.\ |preprint| vs.\ |final|.
%
% \begin{macrocode}
\newif\ifpreprint
@@ -345,6 +344,16 @@
\DeclareOption{draft}{%
\AtEndOfClass{%
\setcounter{page}{901}%
+ %
+ % Put a question mark into the page number in draft mode.
+ \let\tuborigthepage = \thepage
+ \def\thepage{%
+ \ifnum\value{page}>900
+ \textsl{?\,\@arabic{\numexpr\the\c@page-900\relax}}%
+ \else
+ \arabic{page}%
+ \fi}%
+ %
\BlackBoxes
\def\MakeRegistrationMarks{}%
\PrelimDrafttrue
@@ -355,6 +364,7 @@
}
\DeclareOption{final}{%
\AtEndOfClass{%
+ \let\thepage=\tuborigthepage
\NoBlackBoxes
\PrelimDraftfalse
\@tubrunningfull