texlive[56873] Master/texmf-dist: leaflet (7nov20)
commits+karl at tug.org
commits+karl at tug.org
Sat Nov 7 23:02:06 CET 2020
Revision: 56873
http://tug.org/svn/texlive?view=revision&revision=56873
Author: karl
Date: 2020-11-07 23:02:06 +0100 (Sat, 07 Nov 2020)
Log Message:
-----------
leaflet (7nov20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf
trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex
trunk/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf
trunk/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
trunk/Master/texmf-dist/tex/latex/leaflet/leaflet.cls
Modified: trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex 2020-11-07 22:01:51 UTC (rev 56872)
+++ trunk/Master/texmf-dist/doc/latex/leaflet/leaflet-manual.tex 2020-11-07 22:02:06 UTC (rev 56873)
@@ -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}}}}
Modified: trunk/Master/texmf-dist/doc/latex/leaflet/leaflet.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/leaflet/leaflet.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/leaflet/leaflet.dtx 2020-11-07 22:01:51 UTC (rev 56872)
+++ trunk/Master/texmf-dist/source/latex/leaflet/leaflet.dtx 2020-11-07 22:02:06 UTC (rev 56873)
@@ -21,14 +21,14 @@
%
% \iffalse
%<class>\ProvidesClass{leaflet}
-%<class> [2020/10/25 v2.0d LaTeX document class (JS,WaS,RN,HjG)]
+%<class> [2020/11/06 v2.1a LaTeX document class (JS,WaS,RN,HjG)]
%
%<*driver|manual>
%<driver>\def\filename{leaflet.dtx}
%<manual>\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|manual>
%<*driver>
\listfiles
@@ -51,7 +51,7 @@
%</driver>
% \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 at CutLine}{\@tempswafalse\LL at CutLine}}
\@onlypreamble\CutLine
-\newcommand*\LL at CutLine[1]{%
+\newcommand*\LL at CutLine[2][.]{%
\ifLL at combine
\ifx\Scissors\@empty\@tempswatrue\fi
- \if at 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 at 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}}}}
Modified: trunk/Master/texmf-dist/tex/latex/leaflet/leaflet.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/leaflet/leaflet.cls 2020-11-07 22:01:51 UTC (rev 56872)
+++ trunk/Master/texmf-dist/tex/latex/leaflet/leaflet.cls 2020-11-07 22:02:06 UTC (rev 56873)
@@ -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 at t@r\fmtversion}
\IfFormatAtLeastTF{2020/10/01}{}{%
\ClassError{leaflet}{%
@@ -425,22 +425,22 @@
\newcommand*\CutLine{%
\@ifstar{\@tempswatrue\LL at CutLine}{\@tempswafalse\LL at CutLine}}
\@onlypreamble\CutLine
-\newcommand*\LL at CutLine[1]{%
+\newcommand*\LL at CutLine[2][.]{%
\ifLL at combine
\ifx\Scissors\@empty\@tempswatrue\fi
- \if at 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 at tempswa\else\noexpand\Scissors%
+ \@tempa\@tempa\noexpand\Scissors\@tempa\fi}}}}%
+ }%
+ \@tempb
\fi}
\IfFileExists{pifont.sty}
{\RequirePackage{pifont}%
More information about the tex-live-commits
mailing list.