summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/leaflet/leaflet.dtx')
-rw-r--r--Master/texmf-dist/source/latex/leaflet/leaflet.dtx27
1 files changed, 15 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
index 1acc4424c7a..9a1ed13b26d 100644
--- a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
+++ b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
@@ -3,9 +3,9 @@
%
% (c) 1998 J\"urgen Schlegelmilch <schlegel@informatik.uni-rostock.de>
% (c) 2000 Walter Schmidt <w.a.schmidt@gmx.net>
-% (c) 2002/2004 Rolf Niepraschk <Rolf.Niepraschk@gmx.de> and
+% (c) 2002-2004 Rolf Niepraschk <Rolf.Niepraschk@gmx.de> and
% Hubert G\"a\ss{}lein
-% (c) 2012,... Rolf Niepraschk <Rolf.Niepraschk@gmx.de>
+% (c) 2012-2020 Rolf Niepraschk <Rolf.Niepraschk@gmx.de>
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -20,14 +20,13 @@
% \fi
%
% \iffalse
-%<class>\NeedsTeXFormat{LaTeX2e}[2020-10-01]
%<class>\ProvidesClass{leaflet}
-%<class> [2020/10/14 v2.0b LaTeX document class (JS,WaS,RN,HjG)]
+%<class> [2020/10/14 v2.0c LaTeX document class (JS,WaS,RN,HjG)]
%
%<*driver|manual>
%<driver>\def\filename{leaflet.dtx}
%<manual>\def\filename{leaflet-manual.tex}
-\def\fileversion{v2.0b} % change this when leaflet-manual changed, too.
+\def\fileversion{v2.0c} % change this when leaflet-manual changed, too.
\def\filedate{2020/10/14}
\def\docdate {2020/10/14} % change this when leaflet-manual changed, too.
%</driver|manual>
@@ -52,7 +51,7 @@
%</driver>
% \fi
%
-% \CheckSum{1272}
+% \CheckSum{1277}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -147,14 +146,15 @@
% \subsection{Test whether the LaTeX format is new enough}
% We use the 'shipout/before' hook.
% \begin{macrocode}
-\@ifundefined{DiscardShipoutBox}{%
+\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
+\IfFormatAtLeastTF{2020/10/01}{}{%
\ClassError{leaflet}{%
LaTeX version equal to or newer \MessageBreak
- than '2020-10-01' is required%
+ than '2020/10/01' is required%
}{%
Renew your TeX installation.%
- }%
-}{}
+ }%
+}
% \end{macrocode}
% \subsection{Saving some internal macros\dots}
%
@@ -437,6 +437,7 @@
% remaining commands must still wait until the next output page is
% ready. It works only for output commands in the main text which moved to
% the next page but not for floating output commands.
+% \changes{v2.0c}{2020/10/14}{Missing \cmd{\set@display@protect} (RN)}
% \begin{macrocode}
\newcommand*\@@@exec@outs{%
\begingroup
@@ -467,6 +468,7 @@
Too early to execute! <<<}%
\fi
\@tempcnta\z@ \def\reserved@b{}%
+ \set@display@protect
\@for\reserved@a :=\@@@pending@outs\do{%
\ifx\reserved@a\@empty\else
\ifnum\@tempcnta<\@tempcntb%
@@ -886,10 +888,11 @@
% The \cmd{\ShipoutBox} with the page content must be a bit moved to get a
% ``normal-sized'' box. In ``nocombine'' mode only put the background picture.
% \changes{v1.1a}{2015/12/27}{Additions for new option `foldcorr'. (RN)}
-% \changes{v2.0a}{2020/10/13}{Do not call \cmd{\@@@exec@outs} temporarily. (RN)}
+% \changes{v2.0a}{2020/10/13}{Temporarily do not call \cmd{\@@@exec@outs}. (RN)}
% \changes{v2.0a}{2020/10/13}{Using \LaTeX's new 'shipout/before' hook. (RN)}
% \changes{v2.0b}{2020/10/14}{Renamed \cmd{\LL@savePage} to
% \cmd{\LL@processPage}. (RN)}
+% \changes{v2.0c}{2020/10/14}{Activated \cmd{\@@@exec@outs} again. (RN)}
% \begin{macrocode}
\newcommand*\LL@processPage{%
\ifLL@combine\DiscardShipoutBox\fi
@@ -908,7 +911,7 @@
\if@tempswa\LL@tempdima=0.9797979798\paperwidth
\else\LL@tempdima=1.0101010101\paperwidth \fi
\fi
- %%%\@@@exec@outs
+ \@@@exec@outs
\expandafter\newsavebox\csname LL@box\Roman{LL@page}\endcsname%
\setbox\ShipoutBox=\vbox{\vskip1in\unvbox\ShipoutBox}%
\setbox\ShipoutBox=\vbox{\moveright1in\box\ShipoutBox}%