From 6750592bf6fcf9bb8430a8b30c52368e14b48e0f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 14 Oct 2020 21:46:43 +0000 Subject: leaflet (14oct20) git-svn-id: svn://tug.org/texlive/trunk@56666 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/leaflet/leaflet.dtx | 354 ++++++++++----------- 1 file changed, 174 insertions(+), 180 deletions(-) (limited to 'Master/texmf-dist/source/latex/leaflet') diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx index da7360318c2..1acc4424c7a 100644 --- a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx +++ b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx @@ -20,16 +20,16 @@ % \fi % % \iffalse -%\NeedsTeXFormat{LaTeX2e}[1999/12/01] +%\NeedsTeXFormat{LaTeX2e}[2020-10-01] %\ProvidesClass{leaflet} -% [2015/12/27 v1.1a LaTeX document class (JS,WaS,RN,HjG)] +% [2020/10/14 v2.0b LaTeX document class (JS,WaS,RN,HjG)] % %<*driver|manual> %\def\filename{leaflet.dtx} %\def\filename{leaflet-manual.tex} -\def\fileversion{v1.1b} % change this when leaflet-manual changed, too. -\def\filedate{2017/03/17} -\def\docdate {2015/12/27} % change this when leaflet-manual changed, too. +\def\fileversion{v2.0b} % 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> \listfiles @@ -52,7 +52,7 @@ % % \fi % -% \CheckSum{1303} +% \CheckSum{1272} % % \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 @@ -144,16 +144,29 @@ %<*class> % \end{macrocode} % +% \subsection{Test whether the LaTeX format is new enough} +% We use the 'shipout/before' hook. +% \begin{macrocode} +\@ifundefined{DiscardShipoutBox}{% + \ClassError{leaflet}{% + LaTeX version equal to or newer \MessageBreak + than '2020-10-01' is required% + }{% + Renew your TeX installation.% + }% +}{} +% \end{macrocode} % \subsection{Saving some internal macros\dots} % % \begin{macrocode} -\let\LL@shipout\shipout \let\LL@outputpage\@outputpage -\let\LL@begindvi\@begindvi \let\LL@@end\@@end +\let\LL@begindvi\@begindvi % \end{macrocode} % \subsection{Option processing} % % \changes{v1.0b}{2004/08/12}{New option -% \texttt{nospecialtricks} for testing purposes. (RN)} +% \texttt{nospecialtricks} for testing purposes. (RN)} +% \changes{v2.0a}{2020/10/13}{The macro \cmd{\LenToUnit} is no longer +% required. (RN)} % \begin{macrocode} \@ifundefined{iflandscape}{\newif\iflandscape}{}% \@ifundefined{iftumble}{\newif\iftumble}{}% @@ -213,10 +226,10 @@ \DeclareOption{foldmark}{% \def\LL@foldmark{% \begingroup - \linethickness{\LenToUnit{\foldmarkrule}}% + \linethickness{\foldmarkrule}% \@tempdima=\dimexpr\paperheight-\LL@tmargin - \put(0,\LenToUnit{\@tempdima}){% - \line(0,-1){\LenToUnit{\foldmarklength}}}% + \put(0,\@tempdima){% + \line(0,-1){\foldmarklength}}% \endgroup}% } % \end{macrocode} @@ -284,13 +297,12 @@ % \begin{macro}{\write} % \begin{macro}{\openout} % \begin{macro}{\closeout} -% Im Folgenden definieren wir die \TeX{} primitives \cmd{\immediate}, -% \cmd{\write}, \cmd{\openout} und \cmd{\closeout} um. Alle nicht -% ``immediate'' ausgef\"uhrten Anweisungen werden dem Makro -% \cmd{\@@@pending@outs} (Kommaliste) hinzugef\"ugt. So k\"onnen speziell die -% \cmd{\write}-Anweisungen unabh\"angig von \TeX's \cmd{\shipout} -% zu einem g\"unstigen Zeitpunkt ausgef\"uhrt werden. For V\TeX\ we -% must keep in mind that \cmd{\immediate}\cmd{\special} exist. +% In the following we redefine the \TeX{} primitives \cmd{\immediate}, +% \cmd{\write}, \cmd{\openout}, and \cmd{\closeout}. All of them not +% ``immediate'' executed statements are added to the macro +% \cmd{\@@@pending@outs} (comma list). So especially the \cmd{\write} +% statements independent of \TeX's \cmd{\shipout} run at a convenient time. For +% V\TeX\ we must keep in mind that \cmd{\immediate}\cmd{\special} exist. % \changes{v1.0b}{2004/08/12}{\cmd{\special} must be processed similar % to e.\,g. \cmd{\write} (V\TeX). (RN)} % \begin{macrocode} @@ -426,20 +438,20 @@ % ready. It works only for output commands in the main text which moved to % the next page but not for floating output commands. % \begin{macrocode} - \newcommand*\@@@exec@outs{% - \begingroup +\newcommand*\@@@exec@outs{% + \begingroup % \end{macrocode} % Pending io's $=\cmd{\@tempcntb} = \mbox{TOTAL-OUTS}\,-\,\mbox{LAST-EXEC}$ % \begin{macrocode} - \@tempcntb\c@@@total@outs\advance\@tempcntb-\c@@@last@exec% - \edef\reserved@a{\botmarks\@@@out@mark}% - \ifx\reserved@a\@empty\@tempcnta\z@\else\@tempcnta\reserved@a\fi% - \LL@debug@info{PENDING-OUTS:\the\@tempcntb\space\space - TOTAL-OUTS:\the\c@@@total@outs\space\space - LAST-EXEC:\the\c@@@last@exec\space\space - TOPMARK:\topmarks\@@@out@mark\space\space - FIRSTMARK:\firstmarks\@@@out@mark\space\space - BOTMARK:\botmarks\@@@out@mark}% + \@tempcntb\c@@@total@outs\advance\@tempcntb-\c@@@last@exec% + \edef\reserved@a{\botmarks\@@@out@mark}% + \ifx\reserved@a\@empty\@tempcnta\z@\else\@tempcnta\reserved@a\fi% + \LL@debug@info{PENDING-OUTS:\the\@tempcntb\space\space + TOTAL-OUTS:\the\c@@@total@outs\space\space + LAST-EXEC:\the\c@@@last@exec\space\space + TOPMARK:\topmarks\@@@out@mark\space\space + FIRSTMARK:\firstmarks\@@@out@mark\space\space + BOTMARK:\botmarks\@@@out@mark}% % \end{macrocode} % Last valid pending entry $ = \cmd{\@tempcntb} = % \mbox{PENDING-OUTS}\,-\,\mbox{TOTAL-OUTS}\,+\,\mbox{BOTMARK} $ @@ -447,33 +459,33 @@ % Number of invalid (moved) out's $ = \cmd{\@tempcnta} = % \mbox{TOTAL-OUTS}\,-\,\mbox{BOTMARK} $ % \begin{macrocode} - \advance\@tempcnta-\c@@@total@outs \advance\@tempcntb\@tempcnta - \@tempcnta-\@tempcnta% - \ifnum\@tempcnta>\z@ - \LL@debug@info{% - >>> resave \the\@tempcnta\space output command(s). - Too early to execute! <<<}% - \fi - \@tempcnta\z@ \def\reserved@b{}% - \@for\reserved@a :=\@@@pending@outs\do{% - \ifx\reserved@a\@empty\else - \ifnum\@tempcnta<\@tempcntb% - \reserved@a% execute output's related to the current page box. - \global\advance\c@@@last@exec\@ne - \LL@debug@info{>>> execute output command number - \the\c@@@last@exec\space<<<}% - \else + \advance\@tempcnta-\c@@@total@outs \advance\@tempcntb\@tempcnta + \@tempcnta-\@tempcnta% + \ifnum\@tempcnta>\z@ + \LL@debug@info{% + >>> resave \the\@tempcnta\space output command(s). + Too early to execute! <<<}% + \fi + \@tempcnta\z@ \def\reserved@b{}% + \@for\reserved@a :=\@@@pending@outs\do{% + \ifx\reserved@a\@empty\else + \ifnum\@tempcnta<\@tempcntb% + \reserved@a% execute output's related to the current page box. + \global\advance\c@@@last@exec\@ne + \LL@debug@info{>>> execute output command number + \the\c@@@last@exec\space<<<}% + \else % \end{macrocode} % Other output's must be resaved and still pending. % \begin{macrocode} - \expandafter\g@addto@macro\expandafter\reserved@b\expandafter{% - \reserved@a,}% - \fi - \advance\@tempcnta\@ne% - \fi}% - \expandafter\@temptokena\expandafter{\reserved@b}% - \xdef\@@@pending@outs{\the\@temptokena}% - \endgroup}% + \expandafter\g@addto@macro\expandafter\reserved@b\expandafter{% + \reserved@a,}% + \fi + \advance\@tempcnta\@ne% + \fi}% + \expandafter\@temptokena\expandafter{\reserved@b}% + \xdef\@@@pending@outs{\the\@temptokena}% + \endgroup}% % \end{macrocode} % \end{macro} % \begin{macrocode} @@ -498,13 +510,6 @@ \if@nobreak\ifvmode\nobreak\fi\fi}% % \end{macrocode} % \end{macro} -% \begin{macro}{\shipout} -% We make \LaTeX's \cmd{\shipout} inefficacious (no more shipout at -% all). -% \begin{macrocode} - \def\shipout{\deadcycles\z@\setbox\@tempboxa=} -% \end{macrocode} -% \end{macro} % \begin{macro}{\@begindvi} % Delay \cmd{\@begindvi} to be executed until the real page output. % \begin{macrocode} @@ -519,7 +524,7 @@ % package `calc'.(RN)} % \begin{macrocode} \LoadClass{article} -\RequirePackage{everyshi,graphicx} +\RequirePackage{graphicx} % \end{macrocode} % \begin{macro}{\LL@pagesize@specials} % Now the graphics driver is known. @@ -540,27 +545,27 @@ \if@tempswa \ClassInfo{leaflet}{Generating code for dvips}% \def\LL@pagesize@specials#1#2{% - \@tempdima=#1\@tempdimb=#2% + \@tempdima=#1\@tempdimb=#2 % \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}}% \fi \def\reserved@a{pdftex}% \ifx\filename@base\reserved@a \ClassInfo{leaflet}{Generating code for pdfTeX}% \def\LL@pagesize@specials#1#2{% - \@tempdima=#1\@tempdimb=#2% + \@tempdima=#1\@tempdimb=#2 % \pdfpagewidth\@tempdima\pdfpageheight\@tempdimb}% \fi \def\reserved@a{luatex}% \ifx\filename@base\reserved@a \ClassInfo{leaflet}{Generating code for LuaTeX}% - \ifx\pdfvariable\@undefined + \ifx\pdfpagewidth\@undefined \def\LL@pagesize@specials#1#2{% - \@tempdima=#1\@tempdimb=#2% - \pdfpagewidth\@tempdima\pdfpageheight\@tempdimb}% + \@tempdima=#1\@tempdimb=#2 % + \pagewidth\@tempdima\pageheight\@tempdimb}% \else \def\LL@pagesize@specials#1#2{% - \@tempdima=#1\@tempdimb=#2% - \pagewidth\@tempdima\pageheight\@tempdimb}% + \@tempdima=#1\@tempdimb=#2 % + \pdfpagewidth\@tempdima\pdfpageheight\@tempdimb}% \fi \fi \def\reserved@a{xetex}% @@ -814,16 +819,6 @@ % \end{macrocode} % \end{macro} % \end{macro} -% \begin{macro}{\LenToUnit} -% \changes{v1.0a}{2004/08/08}{New macro \cmd{\LenToUnit}. (RN)} -% \changes{v1.1a}{2015/12/27}{\cmd{\providecommand} instead of -% \cmd{\newcommand}. (RN)} -% \cmd{\LenToUnit}\marg{dimension} can be used in a -% |picture| environment instead of multiples of \cmd{\unitlength}. -% \begin{macrocode} -\providecommand\LenToUnit[1]{#1\@gobble} -% \end{macrocode} -% \end{macro} % \begin{macro}{\CutLine} % \begin{macro}{\CutLine*} % \begin{macro}{\Scissors} @@ -840,13 +835,13 @@ \if@tempswa \AddToBackground{#1}{% \put(0,0){% - \rotatebox{90}{\makebox(\LenToUnit{\paperheight},0){% + \rotatebox{90}{\makebox(\paperheight,0){% \normalsize \dotfill}}}}% \else \AddToBackground{#1}{% \put(0,0){% - \rotatebox{90}{\makebox(\LenToUnit{\paperheight},0){% + \rotatebox{90}{\makebox(\paperheight,0){% \normalsize \dotfill\Scissors\dotfill\dotfill\Scissors\dotfill}}}}% \fi @@ -876,7 +871,7 @@ % \end{macro} % We use our own page saving macro instead of real \LaTeX\ output. % \begin{macrocode} -\AtBeginDocument{\EveryShipout{\LL@savePage}} +\AtBeginDocument{\AddToHook{shipout/before}{\LL@processPage}} % \end{macrocode} % \begin{macro}{LL@page} % A counter for the small pages (absolute counting). @@ -885,14 +880,19 @@ \newcommand\LL@tempa{} % \end{macrocode} % \end{macro} -% \begin{macro}{\LL@savePage} +% \begin{macro}{\LL@processPage} % With ``combine'' option the six small pages will be saved in box registers % (\cmd{\LL@boxI}\dots \cmd{\LL@boxVI}). -% The box255 with the page content must be a bit moved to get a -% ``normal-sized'' box. +% 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}{Using \LaTeX's new 'shipout/before' hook. (RN)} +% \changes{v2.0b}{2020/10/14}{Renamed \cmd{\LL@savePage} to +% \cmd{\LL@processPage}. (RN)} % \begin{macrocode} -\newcommand*\LL@savePage{% +\newcommand*\LL@processPage{% + \ifLL@combine\DiscardShipoutBox\fi \ifnum\c@LL@page<7\relax \LL@tempdima=\paperwidth \ifLL@combine @@ -908,18 +908,19 @@ \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\@cclv=\vbox{\vskip1in\unvbox\@cclv}% - \setbox\@cclv=\vbox{\moveright1in\box\@cclv}% - \setbox\@cclv=\hb@xt@\paperwidth{\box\@cclv\hss}% - \iffoldcorr\setbox\@cclv=\hb@xt@\LL@tempdima{\hss\box\@cclv\hss}\fi + \setbox\ShipoutBox=\vbox{\vskip1in\unvbox\ShipoutBox}% + \setbox\ShipoutBox=\vbox{\moveright1in\box\ShipoutBox}% + \setbox\ShipoutBox=\hb@xt@\paperwidth{\box\ShipoutBox\hss}% + \iffoldcorr + \setbox\ShipoutBox=\hb@xt@\LL@tempdima{\hss\box\ShipoutBox\hss}\fi % \end{macrocode} % Add a background picture to a single small page (`combine'). % \begin{macrocode} - \setbox\@cclv=\vb@xt@\paperheight{% + \setbox\ShipoutBox=\vb@xt@\paperheight{% \vbox{% - \pictur@(0,0)(0,\LenToUnit{\paperheight})% + \pictur@(0,0)(0,\paperheight)% \begingroup \set@typeset@protect \paperwidth=\LL@tempdima @@ -927,26 +928,26 @@ \endgroup \endpicture }% - \nointerlineskip\box\@cclv\vss + \nointerlineskip\box\ShipoutBox\vss }% \global\expandafter\setbox - \csname LL@box\Roman{LL@page}\endcsname=\box\@cclv + \csname LL@box\Roman{LL@page}\endcsname=\box\ShipoutBox \typeout{\@spaces[\the\c@LL@page] ==> [\Roman{LL@page}]}% \else % \end{macrocode} % Add a background picture to a single small page (`nocombine'). % \begin{macrocode} - \setbox\@cclv\vbox{% + \setbox\ShipoutBox\vbox{% \vbox{\@tempdima=1in\relax \@tempdimb=\paperheight\advance\@tempdimb-\@tempdima - \pictur@(0,0)(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb})% + \pictur@(0,0)(\@tempdima,\@tempdimb)% \begingroup \set@typeset@protect \@nameuse{LL@smallPic\Roman{LL@page}}% \endgroup \endpicture }% - \nointerlineskip\box\@cclv + \nointerlineskip\box\ShipoutBox }% \fi \fi @@ -967,53 +968,58 @@ % \end{macrocode} % \end{macro} % -% \subsubsection{Generating missing small pages} -% -% NOTE TO OURSELVES: +% \noindent NOTE TO OURSELVES: % All the following must be done if the document code is already -% processed. -% \begin{macrocode} -\ifLL@combine -% \end{macrocode} -% \begin{macro}{\@@end} -% \begin{macrocode} - \def\@@end{% - \clearpage\pagestyle{empty}% +% processed. +% +% \changes{v2.0b}{2020/10/14}{Using hooks instead of redefinition +% of \cmd{\@@end}. (RN)} +% \begin{macro}{\LL@add@empty@pages} +% Generating missing small pages +% \begin{macrocode} +\newcommand*\LL@add@empty@pages{% + \clearpage\pagestyle{empty}% + \loop\ifnum\c@LL@page<7\relax + \ClassInfo{leaflet}{Generating empty page \the\c@page}% + \null\newpage + \repeat +} % \end{macrocode} -% Restore the original \cmd{\@outputpage} command (removing any related -% background pictures). +% \end{macro} +% \begin{macro}{\LL@shipout@combined@pages} % \begin{macrocode} - \let\@outputpage\LL@outputpage +\newcommand*\LL@shipout@combined@pages{% % \end{macrocode} -% Suppresses all everyshi's clients (removing other kinds of -% background pictures) but our page saving macro is still needed for +% +% \subsubsection{Reassembling the small pages} +% +% Suppresses all shipout hook's clients (removing other kinds of +% background pictures). Our page saving macro is still needed for % the next step and must be set again. +% \changes{v2.0b}{2020/10/14}{Suppress other background images. (RN)} % \begin{macrocode} - \def\@EveryShipout@Hook{}% - \def\@EveryShipout@AtNextHook{}% - \EveryShipout{\LL@savePage}% + \RemoveFromHook{shipout/foreground}[*] + \RemoveFromHook{shipout/background}[*] + \RemoveFromHook{shipout/firstpage}[*] + \RemoveFromHook{shipout/lastpage}[*] + \RemoveFromHook{shipout/before}[*] + \AddToHook{shipout/before}{\LL@processPage} % \end{macrocode} % Create empty pages if necessary. % \begin{macrocode} - \loop\ifnum\c@LL@page<7\relax - \ClassInfo{leaflet}{Generating empty page \the\c@page}% - \null\newpage - \repeat + \LL@add@empty@pages % \end{macrocode} -% -% \subsubsection{Reassembling the small pages} -% -% Here begins the real output using \LaTeX's original \cmd{\shipout}. -% The \textsf{everyshi} package isn't active any more. -% The begin dvi hook is reactivated. -% \begin{macrocode} - \let\shipout\LL@shipout \let\@begindvi\LL@begindvi - \paperwidth=3\paperwidth - \iflandscape - \LL@pagesize@specials{\paperwidth}{\paperheight}% - \else - \LL@pagesize@specials{\paperheight}{\paperwidth}% - \fi +% Here begins the real output. LaTeX's \cmd{\shipout} will no more suppressed. +% The begin dvi hook is reactivated. Final removing content from the hook. +% \begin{macrocode} + \RemoveFromHook{shipout/before}[*] + \let\@begindvi\LL@begindvi + \paperwidth=3\paperwidth + \iflandscape + \LL@pagesize@specials{\paperwidth}{\paperheight}% + \else + \LL@pagesize@specials{\paperheight}{\paperwidth}% + \fi % \end{macrocode} % \begin{macro}{\LL@shipoutPage} % \changes{v1.0c}{2004/08/13}{Fix \cmd{\protect}-ion problems. (RN/HjG)} @@ -1024,22 +1030,22 @@ % Helper macros for page output: reassemble the small pages. % % \begin{macrocode} - \newcommand*\LL@shipoutPage[1]{% + \newcommand*\LL@shipoutPage[1]{% % \set@display@protect - \let \protect \noexpand - \shipout\vb@xt@\paperheight{% - \set@typeset@protect - \vskip-1in% - \@begindvi\hb@xt@\paperwidth{\hskip-1in##1\hss}\vss}}% - \newcommand*\LL@preparePages[3]{% - \typeout{[\@Roman{##1}\space\@Roman{##2}\space\@Roman{##3}] ==>}% + \let \protect \noexpand + \shipout\vb@xt@\paperheight{% + \set@typeset@protect + \vskip-1in% + \@begindvi\hb@xt@\paperwidth{\hskip-1in##1\hss}\vss}}% + \newcommand*\LL@preparePages[3]{% + \typeout{[\@Roman{##1}\space\@Roman{##2}\space\@Roman{##3}] ==>}% % \end{macrocode} % Add a background picture to a large page. % \begin{macrocode} - \pictur@(0,0)\@nameuse{LL@largePic\Roman{page}}\endpicture% - \LL@preparePage{##1}\LL@preparePage{##2}\LL@preparePage{##3}}% - \newcommand*\LL@preparePage[1]{% - \expandafter\box\csname LL@box\@Roman{##1}\endcsname}% + \pictur@(0,0)\@nameuse{LL@largePic\Roman{page}}\endpicture% + \LL@preparePage{##1}\LL@preparePage{##2}\LL@preparePage{##3}}% + \newcommand*\LL@preparePage[1]{% + \expandafter\box\csname LL@box\@Roman{##1}\endcsname}% % \end{macrocode} % \end{macro} % \end{macro} @@ -1049,35 +1055,31 @@ % order, to allow the typesetting of a 4 page leaflet and a detachable 2 page % form, for summaries, fill-in forms, applications, questionnaires, etc. % \begin{macrocode} - \LL@selectOutput - \iftwopart - {\setcounter{page}{1}% - \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{6}{4}{1}}}}% - {\setcounter{page}{2}% - \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{5}}}}% - \else - {\setcounter{page}{1}% - \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{5}{6}{1}}}}% - {\setcounter{page}{2}% - \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{4}}}}% - \fi - \LL@@end - }% + \LL@selectOutput + \iftwopart + {\setcounter{page}{1}% + \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{6}{4}{1}}}}% + {\setcounter{page}{2}% + \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{5}}}}% + \else + {\setcounter{page}{1}% + \LL@shipoutPage{\LL@rotate@I{\LL@preparePages{5}{6}{1}}}}% + {\setcounter{page}{2}% + \LL@shipoutPage{\LL@rotate@II{\LL@preparePages{2}{3}{4}}}}% + \fi +}% % \end{macrocode} -% End of the redefinition of \cmd{\@@end}. % \end{macro} -% \begin{macrocode} +% \begin{macrocode} +\ifLL@combine + \AddToHook{enddocument/end}{\LL@shipout@combined@pages} \else % \end{macrocode} % Create empty pages if necessary and then call the normal \LaTeX\ end. % \begin{macrocode} \LL@pagesize@specials{\paperwidth}{\paperheight}% \AtEndDocument{% - \clearpage\pagestyle{empty}% - \loop\ifnum\c@LL@page<7\relax - \ClassInfo{leaflet}{Generating empty page \the\c@page}% - \null\newpage - \repeat + \LL@add@empty@pages } \fi % @@ -1138,8 +1140,7 @@ \MakeShortVerb{\|} \usepackage{url} \usepackage{graphicx} -\usepackage[dvipsnames,usenames]{color} -\definecolor{LIGHTGRAY}{gray}{.9} +\usepackage[svgnames]{xcolor} %%%%\renewcommand{\descfont}{\normalfont} \newcommand\Lpack[1]{\textsf{#1}} @@ -1160,13 +1161,13 @@ \CutLine{6}% Dotted line with scissors \AddToBackground{5}{% Background of a small page - \put(0,0){\textcolor{Cerulean}{\rule{\paperwidth}{\paperheight}}}} + \put(0,0){\textcolor{LightSkyBlue}{\rule{\paperwidth}{\paperheight}}}} \AddToBackground*{2}{% Background of a large page - \put(\LenToUnit{.5\paperwidth},\LenToUnit{.5\paperheight}){% + \put(.5\paperwidth,.5\paperheight){% \makebox(0,0)[c]{% \resizebox{.9\paperwidth}{!}{\rotatebox{35.26}{% - \textsf{\textbf{\textcolor{LIGHTGRAY}{BACKGROUND}}}}}}}} + \textsf{\textbf{\textcolor{LightGray}{BACKGROUND}}}}}}}} \begin{document} @@ -1208,10 +1209,6 @@ document is created in PostScript or PDF format, using \end{itemize} (Some other drivers supported by standard \LaTeX{} work as well.) -The non-standard macro package \Lpack{everyshi} \cite{cit:everyshi} is -used by the \Lclass{leaflet} class. - - \section{Features} Basically the \Lclass{leaflet} class provides the same features as the @@ -1401,9 +1398,6 @@ this document class. \bibitem{cit:latex-man} \textsc{L.\,Lamport}: \LaTeX. A Document Preparation System. \textit{User's Guide And Reference Manual.} Second Edition. 1994. -\bibitem{cit:everyshi} - \textsc{M.\,Schr\"oder}: The \Lpack{everyshi} package. 2001. - CTAN: \url{macros/latex/contrib/ms/everyshi.dtx} \end{thebibliography} \loggingall -- cgit v1.2.3 From 555796a9dcf50f8997d2d26611609cb60d1dee7c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 20 Oct 2020 20:40:07 +0000 Subject: leaflet (20oct20) git-svn-id: svn://tug.org/texlive/trunk@56716 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/leaflet/leaflet-manual.pdf | Bin 92279 -> 92279 bytes .../doc/latex/leaflet/leaflet-manual.tex | 18 ++++++++----- Master/texmf-dist/doc/latex/leaflet/leaflet.pdf | Bin 246694 -> 246849 bytes Master/texmf-dist/source/latex/leaflet/leaflet.dtx | 27 ++++++++++--------- Master/texmf-dist/source/latex/leaflet/leaflet.ins | 16 +++++++----- Master/texmf-dist/tex/latex/leaflet/leaflet.cls | 29 ++++++++++++--------- Master/tlpkg/libexec/ctan2tds | 1 + 7 files changed, 54 insertions(+), 37 deletions(-) (limited to 'Master/texmf-dist/source/latex/leaflet') diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf index 07cf61a3f2c..ef8311bfb97 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf differ diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex index a7bfda1184e..c88f6daa5fa 100644 --- a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex +++ b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex @@ -6,22 +6,26 @@ %% %% leaflet.dtx (with options: `manual') %% -%% Copyright (C) 2003, 2004, ... -%% Rolf Niepraschk, Rolf.Niepraschk@gmx.de -%% Hubert Gaesslein, hubertjg@gmx.de +%% (c) 1998 J{\accent "7F u}rgen Schlegelmilch +%% (c) 2000 Walter Schmidt +%% (c) 2002-2004 Rolf Niepraschk and +%% Hubert G{\accent "7F a}\ss {}lein +%% (c) 2012-2020 Rolf Niepraschk %% -%% This work may be distributed and/or modified under the +%% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt +%% The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% %% and version 1.3 or later is part of all distributions of LaTeX %% version 2003/12/01 or later. %% %% This work has the LPPL maintenance status "author-maintained". %% \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. \listfiles diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf index 7f2ae799141..052a8071e93 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf differ 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 % (c) 2000 Walter Schmidt -% (c) 2002/2004 Rolf Niepraschk and +% (c) 2002-2004 Rolf Niepraschk and % Hubert G\"a\ss{}lein -% (c) 2012,... Rolf Niepraschk +% (c) 2012-2020 Rolf Niepraschk % % 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 -%\NeedsTeXFormat{LaTeX2e}[2020-10-01] %\ProvidesClass{leaflet} -% [2020/10/14 v2.0b LaTeX document class (JS,WaS,RN,HjG)] +% [2020/10/14 v2.0c LaTeX document class (JS,WaS,RN,HjG)] % %<*driver|manual> %\def\filename{leaflet.dtx} %\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. % @@ -52,7 +51,7 @@ % % \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}% diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.ins b/Master/texmf-dist/source/latex/leaflet/leaflet.ins index af980d0555d..08598b54412 100644 --- a/Master/texmf-dist/source/latex/leaflet/leaflet.ins +++ b/Master/texmf-dist/source/latex/leaflet/leaflet.ins @@ -3,15 +3,19 @@ \preamble -Copyright (C) 2003, 2004, ... -Rolf Niepraschk, Rolf.Niepraschk@gmx.de -Hubert Gaesslein, hubertjg@gmx.de +(c) 1998 J\"urgen Schlegelmilch +(c) 2000 Walter Schmidt +(c) 2002-2004 Rolf Niepraschk and + Hubert G\"a\ss{}lein +(c) 2012-2020 Rolf Niepraschk -This work may be distributed and/or modified under the +This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. -The latest version of this license is in - http://www.latex-project.org/lppl.txt +The latest version of this license is in: + + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX version 2003/12/01 or later. diff --git a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls index 38eb4fcb81d..8fc5e81940b 100644 --- a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls +++ b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls @@ -6,31 +6,35 @@ %% %% leaflet.dtx (with options: `class') %% -%% Copyright (C) 2003, 2004, ... -%% Rolf Niepraschk, Rolf.Niepraschk@gmx.de -%% Hubert Gaesslein, hubertjg@gmx.de +%% (c) 1998 J{\accent "7F u}rgen Schlegelmilch +%% (c) 2000 Walter Schmidt +%% (c) 2002-2004 Rolf Niepraschk and +%% Hubert G{\accent "7F a}\ss {}lein +%% (c) 2012-2020 Rolf Niepraschk %% -%% This work may be distributed and/or modified under the +%% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt +%% The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% %% and version 1.3 or later is part of all distributions of LaTeX %% version 2003/12/01 or later. %% %% This work has the LPPL maintenance status "author-maintained". %% -\NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{leaflet} - [2020/10/14 v2.0b LaTeX document class (JS,WaS,RN,HjG)] -\@ifundefined{DiscardShipoutBox}{% + [2020/10/14 v2.0c LaTeX document class (JS,WaS,RN,HjG)] +\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.% }% -}{} +} \let\LL@begindvi\@begindvi \@ifundefined{iflandscape}{\newif\iflandscape}{}% \@ifundefined{iftumble}{\newif\iftumble}{}% @@ -207,6 +211,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% @@ -463,7 +468,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}% diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 6fd85e92f79..68429c4e005 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -2868,6 +2868,7 @@ my $core_latex = "$Master/texmf-dist/tex/latex"; 'lastpage' => 'tex', 'latex-veryshortguide' => 'latex', # requires interaction 'lcd' => 'latex -translate-file=empty.tcx', # no 8-bit + 'leaflet' => 'etex', 'letterswitharrows' => 'tex', 'listings' => 'latex', # requires interaction 'lmake' => 'latex', # requires interaction -- cgit v1.2.3 From 9bb9223d7faaae2d280a746ebc6bfb63c5e54b1f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 25 Oct 2020 21:34:30 +0000 Subject: leaflet (25oct20) git-svn-id: svn://tug.org/texlive/trunk@56760 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/leaflet/leaflet-manual.pdf | Bin 92279 -> 92279 bytes .../doc/latex/leaflet/leaflet-manual.tex | 8 ++++---- Master/texmf-dist/doc/latex/leaflet/leaflet.pdf | Bin 246849 -> 247112 bytes Master/texmf-dist/source/latex/leaflet/leaflet.dtx | 17 +++++++++-------- Master/texmf-dist/source/latex/leaflet/leaflet.ins | 4 ++-- Master/texmf-dist/tex/latex/leaflet/leaflet.cls | 7 +++---- 6 files changed, 18 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist/source/latex/leaflet') diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf index ef8311bfb97..70fdd0348c6 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf differ diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex index c88f6daa5fa..ab2185aef6e 100644 --- a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex +++ b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex @@ -6,10 +6,10 @@ %% %% leaflet.dtx (with options: `manual') %% -%% (c) 1998 J{\accent "7F u}rgen Schlegelmilch +%% (c) 1998 Jürgen Schlegelmilch %% (c) 2000 Walter Schmidt %% (c) 2002-2004 Rolf Niepraschk and -%% Hubert G{\accent "7F a}\ss {}lein +%% Hubert Gäßlein %% (c) 2012-2020 Rolf Niepraschk %% %% This file may be distributed and/or modified under the @@ -25,8 +25,8 @@ %% This work has the LPPL maintenance status "author-maintained". %% \def\filename{leaflet-manual.tex} -\def\fileversion{v2.0c} % change this when leaflet-manual changed, too. -\def\filedate{2020/10/14} +\def\fileversion{v2.0d} % change this when leaflet-manual changed, too. +\def\filedate{2020/10/25} \def\docdate {2020/10/14} % change this when leaflet-manual changed, too. \listfiles \errorcontextlines=99 diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf index 052a8071e93..fb5b491f790 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf differ diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx index 9a1ed13b26d..cc540ca5d55 100644 --- a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx +++ b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx @@ -1,10 +1,10 @@ % \iffalse meta-comment % % -% (c) 1998 J\"urgen Schlegelmilch +% (c) 1998 Jürgen Schlegelmilch % (c) 2000 Walter Schmidt % (c) 2002-2004 Rolf Niepraschk and -% Hubert G\"a\ss{}lein +% Hubert Gäßlein % (c) 2012-2020 Rolf Niepraschk % % This file may be distributed and/or modified under the @@ -21,13 +21,13 @@ % % \iffalse %\ProvidesClass{leaflet} -% [2020/10/14 v2.0c LaTeX document class (JS,WaS,RN,HjG)] +% [2020/10/25 v2.0d LaTeX document class (JS,WaS,RN,HjG)] % %<*driver|manual> %\def\filename{leaflet.dtx} %\def\filename{leaflet-manual.tex} -\def\fileversion{v2.0c} % change this when leaflet-manual changed, too. -\def\filedate{2020/10/14} +\def\fileversion{v2.0d} % change this when leaflet-manual changed, too. +\def\filedate{2020/10/25} \def\docdate {2020/10/14} % change this when leaflet-manual changed, too. % %<*driver> @@ -51,7 +51,7 @@ % % \fi % -% \CheckSum{1277} +% \CheckSum{1276} % % \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 @@ -85,6 +85,8 @@ % \changes{v1.0d}{2012/06/04}{Options `twopart/notwopart' suggested % by Luis Rivera. No more `final' in \cmd{\ExecuteOptions} suggested % by Axel Berger (RN)} +% \changes{v2.0d}{2020/10/25}{Using UTF8 in the preamble for author names +% to prevent unpacking issue. (RN)} % % \DoNotIndex{\newcommand,\renewcommand,\newenvironment,\renewenvironment} % \DoNotIndex{\providecommand,\def,\edef,\let,\gdef,\xdef,\global,\newtoks} @@ -888,7 +890,7 @@ % 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}{Temporarily do not call \cmd{\@@@exec@outs}. (RN)} +% \changes{v2.0a}{2020/10/13}{Do not call \cmd{\@@@exec@outs} temporarily. (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)} @@ -1003,7 +1005,6 @@ % \begin{macrocode} \RemoveFromHook{shipout/foreground}[*] \RemoveFromHook{shipout/background}[*] - \RemoveFromHook{shipout/firstpage}[*] \RemoveFromHook{shipout/lastpage}[*] \RemoveFromHook{shipout/before}[*] \AddToHook{shipout/before}{\LL@processPage} diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.ins b/Master/texmf-dist/source/latex/leaflet/leaflet.ins index 08598b54412..50b802b47f2 100644 --- a/Master/texmf-dist/source/latex/leaflet/leaflet.ins +++ b/Master/texmf-dist/source/latex/leaflet/leaflet.ins @@ -3,10 +3,10 @@ \preamble -(c) 1998 J\"urgen Schlegelmilch +(c) 1998 Jürgen Schlegelmilch (c) 2000 Walter Schmidt (c) 2002-2004 Rolf Niepraschk and - Hubert G\"a\ss{}lein + Hubert Gäßlein (c) 2012-2020 Rolf Niepraschk This file may be distributed and/or modified under the diff --git a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls index 8fc5e81940b..abb7bb4697c 100644 --- a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls +++ b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls @@ -6,10 +6,10 @@ %% %% leaflet.dtx (with options: `class') %% -%% (c) 1998 J{\accent "7F u}rgen Schlegelmilch +%% (c) 1998 Jürgen Schlegelmilch %% (c) 2000 Walter Schmidt %% (c) 2002-2004 Rolf Niepraschk and -%% Hubert G{\accent "7F a}\ss {}lein +%% Hubert Gäßlein %% (c) 2012-2020 Rolf Niepraschk %% %% This file may be distributed and/or modified under the @@ -25,7 +25,7 @@ %% This work has the LPPL maintenance status "author-maintained". %% \ProvidesClass{leaflet} - [2020/10/14 v2.0c LaTeX document class (JS,WaS,RN,HjG)] + [2020/10/25 v2.0d LaTeX document class (JS,WaS,RN,HjG)] \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020/10/01}{}{% \ClassError{leaflet}{% @@ -525,7 +525,6 @@ \newcommand*\LL@shipout@combined@pages{% \RemoveFromHook{shipout/foreground}[*] \RemoveFromHook{shipout/background}[*] - \RemoveFromHook{shipout/firstpage}[*] \RemoveFromHook{shipout/lastpage}[*] \RemoveFromHook{shipout/before}[*] \AddToHook{shipout/before}{\LL@processPage} -- cgit v1.2.3 From 6cdef7b2569f67661d5b2cb99e317da16a7603e9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 7 Nov 2020 22:02:06 +0000 Subject: leaflet (7nov20) git-svn-id: svn://tug.org/texlive/trunk@56873 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/leaflet/leaflet-manual.pdf | Bin 92279 -> 92539 bytes .../doc/latex/leaflet/leaflet-manual.tex | 10 ++--- Master/texmf-dist/doc/latex/leaflet/leaflet.pdf | Bin 247112 -> 247180 bytes Master/texmf-dist/source/latex/leaflet/leaflet.dtx | 48 ++++++++++----------- Master/texmf-dist/tex/latex/leaflet/leaflet.cls | 30 ++++++------- 5 files changed, 44 insertions(+), 44 deletions(-) (limited to 'Master/texmf-dist/source/latex/leaflet') diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf index 70fdd0348c6..fcb4ae6761c 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf differ diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex index ab2185aef6e..fa299041662 100644 --- a/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex +++ b/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex @@ -25,9 +25,9 @@ %% This work has the LPPL maintenance status "author-maintained". %% \def\filename{leaflet-manual.tex} -\def\fileversion{v2.0d} % change this when leaflet-manual changed, too. -\def\filedate{2020/10/25} -\def\docdate {2020/10/14} % change this when leaflet-manual changed, too. +\def\fileversion{v2.1a} % change this when leaflet-manual changed, too. +\def\filedate{2020/11/06} +\def\docdate {2020/11/06} % change this when leaflet-manual changed, too. \listfiles \errorcontextlines=99 \documentclass[ @@ -89,8 +89,8 @@ Hubert G\"a\ss lein} \date{Last updated~\docdate\\printed \today} -\CutLine*{1}% Dotted line without scissors -\CutLine{6}% Dotted line with scissors +\CutLine*{1}% Dotted line without scissors (same as \CutLine*[.]{1}) +\CutLine[-]{6}% Solid line with scissors \AddToBackground{5}{% Background of a small page \put(0,0){\textcolor{LightSkyBlue}{\rule{\paperwidth}{\paperheight}}}} diff --git a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf index fb5b491f790..7eb81eb1ccb 100644 Binary files a/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf and b/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf differ diff --git a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx index cc540ca5d55..1e1ead32055 100644 --- a/Master/texmf-dist/source/latex/leaflet/leaflet.dtx +++ b/Master/texmf-dist/source/latex/leaflet/leaflet.dtx @@ -21,14 +21,14 @@ % % \iffalse %\ProvidesClass{leaflet} -% [2020/10/25 v2.0d LaTeX document class (JS,WaS,RN,HjG)] +% [2020/11/06 v2.1a LaTeX document class (JS,WaS,RN,HjG)] % %<*driver|manual> %\def\filename{leaflet.dtx} %\def\filename{leaflet-manual.tex} -\def\fileversion{v2.0d} % change this when leaflet-manual changed, too. -\def\filedate{2020/10/25} -\def\docdate {2020/10/14} % change this when leaflet-manual changed, too. +\def\fileversion{v2.1a} % change this when leaflet-manual changed, too. +\def\filedate{2020/11/06} +\def\docdate {2020/11/06} % change this when leaflet-manual changed, too. % %<*driver> \listfiles @@ -51,7 +51,7 @@ % % \fi % -% \CheckSum{1276} +% \CheckSum{1290} % % \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 @@ -824,31 +824,31 @@ % \end{macro} % \end{macro} % \begin{macro}{\CutLine} +% \changes{v2.1a}{2020/11/06}{Optional parameter for line type} % \begin{macro}{\CutLine*} % \begin{macro}{\Scissors} -% Adds a dotted line with two scissors on the left side of the page given as -% parameter |#1|. -% The starred version draws only the dotted line. +% Adds a line with two scissors on the left side of the page given as +% parameter |#1|. The starred version draws only the line. % \begin{macrocode} \newcommand*\CutLine{% \@ifstar{\@tempswatrue\LL@CutLine}{\@tempswafalse\LL@CutLine}} \@onlypreamble\CutLine -\newcommand*\LL@CutLine[1]{% +\newcommand*\LL@CutLine[2][.]{% \ifLL@combine \ifx\Scissors\@empty\@tempswatrue\fi - \if@tempswa - \AddToBackground{#1}{% - \put(0,0){% - \rotatebox{90}{\makebox(\paperheight,0){% - \normalsize - \dotfill}}}}% - \else - \AddToBackground{#1}{% - \put(0,0){% - \rotatebox{90}{\makebox(\paperheight,0){% - \normalsize - \dotfill\Scissors\dotfill\dotfill\Scissors\dotfill}}}}% - \fi + \if .#1% + \def\@tempa{\dotfill}% + \else\if -#1% + \def\@tempa{\hrulefill}% + \fi\fi + \edef\@tempb{% + \noexpand\AddToBackground{#2}{% + \noexpand\put(0,0){% + \noexpand\rotatebox{90}{\noexpand\makebox(\paperheight,0){% + \noexpand\normalsize\@tempa\if@tempswa\else\noexpand\Scissors% + \@tempa\@tempa\noexpand\Scissors\@tempa\fi}}}}% + }% + \@tempb \fi} \IfFileExists{pifont.sty} {\RequirePackage{pifont}% @@ -1161,8 +1161,8 @@ Hubert G\"a\ss lein} \date{Last updated~\docdate\\printed \today} -\CutLine*{1}% Dotted line without scissors -\CutLine{6}% Dotted line with scissors +\CutLine*{1}% Dotted line without scissors (same as \CutLine*[.]{1}) +\CutLine[-]{6}% Solid line with scissors \AddToBackground{5}{% Background of a small page \put(0,0){\textcolor{LightSkyBlue}{\rule{\paperwidth}{\paperheight}}}} diff --git a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls index abb7bb4697c..70c366d1198 100644 --- a/Master/texmf-dist/tex/latex/leaflet/leaflet.cls +++ b/Master/texmf-dist/tex/latex/leaflet/leaflet.cls @@ -25,7 +25,7 @@ %% This work has the LPPL maintenance status "author-maintained". %% \ProvidesClass{leaflet} - [2020/10/25 v2.0d LaTeX document class (JS,WaS,RN,HjG)] + [2020/11/06 v2.1a LaTeX document class (JS,WaS,RN,HjG)] \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020/10/01}{}{% \ClassError{leaflet}{% @@ -425,22 +425,22 @@ \newcommand*\CutLine{% \@ifstar{\@tempswatrue\LL@CutLine}{\@tempswafalse\LL@CutLine}} \@onlypreamble\CutLine -\newcommand*\LL@CutLine[1]{% +\newcommand*\LL@CutLine[2][.]{% \ifLL@combine \ifx\Scissors\@empty\@tempswatrue\fi - \if@tempswa - \AddToBackground{#1}{% - \put(0,0){% - \rotatebox{90}{\makebox(\paperheight,0){% - \normalsize - \dotfill}}}}% - \else - \AddToBackground{#1}{% - \put(0,0){% - \rotatebox{90}{\makebox(\paperheight,0){% - \normalsize - \dotfill\Scissors\dotfill\dotfill\Scissors\dotfill}}}}% - \fi + \if .#1% + \def\@tempa{\dotfill}% + \else\if -#1% + \def\@tempa{\hrulefill}% + \fi\fi + \edef\@tempb{% + \noexpand\AddToBackground{#2}{% + \noexpand\put(0,0){% + \noexpand\rotatebox{90}{\noexpand\makebox(\paperheight,0){% + \noexpand\normalsize\@tempa\if@tempswa\else\noexpand\Scissors% + \@tempa\@tempa\noexpand\Scissors\@tempa\fi}}}}% + }% + \@tempb \fi} \IfFileExists{pifont.sty} {\RequirePackage{pifont}% -- cgit v1.2.3