texlive[64454] Master/texmf-dist: blowup (20sep22)

commits+karl at tug.org commits+karl at tug.org
Tue Sep 20 21:54:38 CEST 2022


Revision: 64454
          http://tug.org/svn/texlive?view=revision&revision=64454
Author:   karl
Date:     2022-09-20 21:54:38 +0200 (Tue, 20 Sep 2022)
Log Message:
-----------
blowup (20sep22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/blowup/README.md
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup.pdf
    trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx
    trunk/Master/texmf-dist/source/latex/blowup/blowup.ins
    trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty

Modified: trunk/Master/texmf-dist/doc/latex/blowup/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/README.md	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/README.md	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,9 +1,13 @@
 # blowup
-The package blowup only defines the user-level macro \blowUp, which can be
-used to upscale or downscale all pages of a document. It is  similar to the
-TeX primitive \magnification but more accurate and in a user-friendly manner.
 
+This package only defines the user-level macro `\blowUp`, which can be used 
+to scale all pages of a document up or down. It is similar to the TeX 
+primitive `\mag`, but more accurate and user-friendly. `\blowUp` can be 
+useful for creating posters from a normal sized document and for many other 
+types of fine-tuning of a finished document (e.g., minor scaling changes and 
+position of the pages). 
+
 Home page: https://github.com/rolfn/blowup
 
-Rolf Niepraschk, 2018-01-02
+Rolf Niepraschk, 2022-09-19
 

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,25 +1,21 @@
-
-%---------------------------
-% Rolf Niepraschk, Rolf.Niepraschk at gmx.de, 2017-07-28
-
-% lualatex blowup-test.tex
-% or
-% pdflatex blowup-test.tex
-% or
-% latex blowup-test.tex ; dvips blowup-test ; ps2pdf blowup-test.ps
-% or
-% vlatex blowup-test.tex
+% Rolf Niepraschk, 2020-09-19
 %
-% pdfinfo blowup-test.pdf
-
+% Translate to pdf with any TeX compiler and check the page size with
+% 
+%   pdfinfo filename.pdf
+% 
+% or via the properties menu of the pdf viewer
+%
 \listfiles
 \documentclass[letterpaper,twoside]{article}
 \usepackage{array,xcolor}
 
-% Only to show the source page size.
-\usepackage{eso-pic}
-\AddToShipoutPicture{%
-  \AtPageLowerLeft{\textcolor{green!30}{\rule{\paperwidth}{\paperheight}}}%
+% Just to show the page size of the source.
+\usepackage{xcolor,atbegshi}
+\AtBeginShipout{%
+  \AtBeginShipoutUpperLeft{%
+    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
+  }%
 }
 
 \renewcommand\familydefault{\sfdefault}
@@ -26,7 +22,7 @@
 \setlength\parindent{0pt}
 \pagestyle{empty}
 
-\usepackage{blowup}% Load "blowup" as last package!
+\usepackage{blowup}
 \blowUp{target=a4,pos=c}% vert. and horiz. centered (default)
 
 \begin{document}

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,25 +1,21 @@
-
-%---------------------------
-% Rolf Niepraschk, Rolf.Niepraschk at gmx.de, 2017-07-28
-
-% lualatex blowup-test.tex
-% or
-% pdflatex blowup-test.tex
-% or
-% latex blowup-test.tex ; dvips blowup-test ; ps2pdf blowup-test.ps
-% or
-% vlatex blowup-test.tex
+% Rolf Niepraschk, 2020-09-19
 %
-% pdfinfo blowup-test.pdf
-
+% Translate to pdf with any TeX compiler and check the page size with
+% 
+%   pdfinfo filename.pdf
+% 
+% or via the properties menu of the pdf viewer
+%
 \listfiles
 \documentclass[a4paper,twoside]{article}
-\usepackage{array,xcolor}
+\usepackage{array}
 
-% Only to show the source page size.
-\usepackage{eso-pic}
-\AddToShipoutPicture{%
-  \AtPageLowerLeft{\textcolor{green!30}{\rule{\paperwidth}{\paperheight}}}%
+% Just to show the page size of the source.
+\usepackage{xcolor,atbegshi}
+\AtBeginShipout{%
+  \AtBeginShipoutUpperLeft{%
+    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
+  }%
 }
 
 \renewcommand\familydefault{\sfdefault}
@@ -26,8 +22,9 @@
 \setlength\parindent{0pt}
 \pagestyle{empty}
 
-\usepackage{blowup}% Load "blowup" as last package!
-\blowUp{target=letter,pos=outside}% outside aligned
+\usepackage{blowup}
+\blowUp{target=letter,pos=c}% centered
+%\blowUp{target=letter,pos=outside}% outside aligned
 
 \begin{document}
 
@@ -60,4 +57,3 @@
 \newpage\null 2nd page\dots
 
 \end{document}
-%---------------------------

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,25 +1,21 @@
-
-%---------------------------
-% Rolf Niepraschk, Rolf.Niepraschk at gmx.de, 2017-07-28
-
-% lualatex blowup-test.tex
-% or
-% pdflatex blowup-test.tex
-% or
-% latex blowup-test.tex ; dvips blowup-test ; ps2pdf blowup-test.ps
-% or
-% vlatex blowup-test.tex
+% Rolf Niepraschk, 2020-09-19
 %
-% pdfinfo blowup-test.pdf
-
+% Translate to pdf with any TeX compiler and check the page size with
+% 
+%   pdfinfo filename.pdf
+% 
+% or via the properties menu of the pdf viewer
+%
 \listfiles
 \documentclass[a5paper,twoside]{article}
-\usepackage{array,xcolor}
+\usepackage{array}
 
-% Only to show the source page size.
-\usepackage{eso-pic}
-\AddToShipoutPicture{%
-  \AtPageLowerLeft{\textcolor{green!30}{\rule{\paperwidth}{\paperheight}}}%
+% Just to show the page size of the source.
+\usepackage{xcolor,atbegshi}
+\AtBeginShipout{%
+  \AtBeginShipoutUpperLeft{%
+    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
+  }%
 }
 
 \renewcommand\familydefault{\sfdefault}
@@ -26,9 +22,9 @@
 \setlength\parindent{0pt}
 \pagestyle{empty}
 
-\usepackage{blowup}% Load "blowup" as last package!
-\blowUp{origin={143mm,202mm},target=a5,pos={o,b}}% top and outside aligned
-% or the same:
+\usepackage{blowup}
+\blowUp{origin={143mm,202mm},target=a5,pos={o,c}}% centered and outside aligned
+% or:
 %  \blowUp{origin=x0.966216,target=a5,pos={o,b}}% top and outside aligned
 
 \begin{document}
@@ -38,7 +34,7 @@
 \Large\centering
 
 A bit downscaled A5-size document on \mbox{A5-size paper} 
-(more space for binding)
+(5mm more space for binding)
 
 \vfill
 
@@ -63,4 +59,3 @@
 \newpage\null 2nd page\,\dots
 
 \end{document}
-%---------------------------

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,25 +1,21 @@
-
-%---------------------------
-% Rolf Niepraschk, Rolf.Niepraschk at gmx.de, 2017-07-28
-
-% lualatex blowup-test.tex
-% or
-% pdflatex blowup-test.tex
-% or
-% latex blowup-test.tex ; dvips blowup-test ; ps2pdf blowup-test.ps
-% or
-% vlatex blowup-test.tex
+% Rolf Niepraschk, 2020-09-19
 %
-% pdfinfo blowup-test.pdf
-
+% Translate to pdf with any TeX compiler and check the page size with
+% 
+%   pdfinfo filename.pdf
+% 
+% or via the properties menu of the pdf viewer
+%
 \listfiles
 \documentclass[paper=a4,landscape]{scrartcl}
-\usepackage{array,xcolor}
+\usepackage{array}
 
-% Only to show the source page size.
-\usepackage{eso-pic}
-\AddToShipoutPicture{%
-  \AtPageLowerLeft{\textcolor{green!30}{\rule{\paperwidth}{\paperheight}}}%
+% Just to show the page size of the source.
+\usepackage{xcolor,atbegshi}
+\AtBeginShipout{%
+  \AtBeginShipoutUpperLeft{%
+    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
+  }%
 }
 
 \renewcommand\familydefault{\sfdefault}
@@ -26,7 +22,7 @@
 \setlength\parindent{0pt}
 \pagestyle{empty}
 
-\usepackage{blowup}% Load "blowup" as last package!
+\usepackage{blowup}
 \blowUp{target=a0,landscape,onepage}
 
 \begin{document}
@@ -61,4 +57,3 @@
 \newpage\null 2nd page\,\dots
 
 \end{document}
-%---------------------------

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,8 +1,22 @@
-
+% Rolf Niepraschk, 2020-09-19
+%
+% Translate to pdf with any TeX compiler and check the page size with
+% 
+%   pdfinfo filename.pdf
+% 
+% or via the properties menu of the pdf viewer
+%
 \listfiles
 \documentclass[paper=b6,fontsize=11pt,twoside]{scrartcl}
-\usepackage{showframe}
 
+% Just to show the page size of the source.
+\usepackage{xcolor,atbegshi}
+\AtBeginShipout{%
+  \AtBeginShipoutUpperLeft{%
+    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
+  }%
+}
+
 \newcommand*\aPage{%
   \Huge
   \noindent A \hfill B \hfill C 
@@ -20,4 +34,3 @@
 \aPage
 
 \end{document}
-%---------------------------

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,8 +1,7 @@
 % \iffalse meta-comment
 %
-% Copyright (C) 2007, 2018-
-% Rolf Niepraschk, Rolf.Niepraschk at gmx.de
-% 
+% Copyright (C) 2007, 2017-2022 by Rolf Niepraschk 
+% ---------------------------------------------------------------------------
 % This work 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.
@@ -9,10 +8,15 @@
 % 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".
+% version 2005/12/01 or later.
 %
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Rolf Niepraschk. 
+%
+% This work consists of the files blowup.dtx and blowup.ins
+% and the derived filebase blowup.sty.
+%
 % \fi
 %
 % \iffalse
@@ -19,14 +23,13 @@
 %<*driver>
 \ProvidesFile{blowup.dtx}
 %</driver>
-%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-%<package>\ProvidesPackage{blowup}[2018/01/02 1.0 Document Scaling (RN)]
+%<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+%<package>\ProvidesPackage{blowup}[2022/09/19 2.0.0 Page scaling (RN)]
 %
 %<*driver>
 \documentclass{ltxdoc}
-\usepackage{array,longtable}
-\IfFileExists{ragged2e.sty}{%
-  \usepackage{ragged2e}}{\let\RaggedRight=\raggedright}
+\usepackage{blowup,array,longtable,ragged2e}
+\let\RaggedRight=\raggedright
 \newcommand{\m}[1]{\mbox{$\langle$\it #1\/$\rangle$}}
 \renewcommand{\arg}[1]{{\ttfamily\string{}\m{#1}{\ttfamily\string}}}
 \EnableCrossrefs
@@ -34,11 +37,13 @@
 \RecordChanges
 \begin{document}
   \DocInput{blowup.dtx}
+  \PrintChanges
+  \PrintIndex
 \end{document}
 %</driver>
 % \fi
 %
-% \CheckSum{504}
+% \CheckSum{510}
 %
 % \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
@@ -57,46 +62,40 @@
 %   Right brace   \}     Tilde         \~}
 %
 %
-% \changes{v0.1a}{2007/08/14}{Initial version. (RN)}
+% \changes{0.1a}{2007/08/14}{Initial version. (RN)}
+% \changes{2.0.0}{2022/09/19}{Major parts rewritten. (RN)}
 %
-% \GetFileInfo{blowup.dtx}
+% \DoNotIndex{\newcommand,\newenvironment,\z@,\vskip,\hskip,\vss,\hss,\value,
+%  \the,\ifx,\if,\fi,ifdim,\ifodd,\else,\providecommand,\newif,\newlength,\noexpand,
+%  \let,\def,\gdef,\edef,\xdef,\kern,\string,\box,\copy,\csname,\endcsname,
+%  \begingroup,\endgroup,\expandafter,\relax,\@tempboxa,\@tempdima,\@tempdimb,
+%  \@empty,\@firstoftwo,\@ifundefined,\@nil,\@secondoftwo,\@tempswafalse,
+%  \@tempswatrue,\if at tempswa,\@for,\do,\ht,\wd,\dp,\g at addto@macro,\hbox,\vbox,
+%  \hb at xt@,\vb at xt@,\global,\l at addto@macro,\moveright,\BL at tempa,\BL at tempb}
 %
-% \DoNotIndex{\newcommand,\newenvironment}
-% 
-% \newcommand\afterheading{\par\nobreak\@afterheading}
-% \newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
-% 
+% \providecommand*{\url}{\texttt}
+% \GetFileInfo{blowup.sty}  
+% \title{The \textsf{blowup} package}
+% \author{Rolf Niepraschk} 
+% \date{Version~\fileversion~(\filedate)}
 %
-% \title{The \textsf{blowup} package\thanks{This document
-%   corresponds to \textsf{blowup}~\fileversion, dated \filedate.}}
-% \author{Rolf Niepraschk \\ \texttt{Rolf.Niepraschk at gmx.de}}
-%
 % \maketitle
-% 
-%    \begin{abstract}
-%       \noindent
-%       This package only defines the user-level macro \cmd{\blowUp}, 
-%       which can be used to upscale or downscale all pages 
-%       of a document. It is 
-%       similar to the \TeX\ primitive \cmd{\magnification} but more 
-%       accurate and in a user-friendly manner. \cmd{\blowUp} 
-%       may be useful for the creation of posters from a normal-sized 
-%       document and for many kinds of fine adjustments of a ready 
-%       typesetted document (e.\,g., minor changes of scaling and 
-%       position of the pages). 
-%    \end{abstract}
 %
-%    \tableofcontents
+% \section{Introduction}
 %
+% This package only defines the user-level macro \cmd{\blowUp}, which can be 
+% used to scale all pages of a document up or down. It is similar to the \TeX\ 
+% primitive \cmd{\mag}, but more accurate and user-friendly. \cmd{\blowUp} can
+% be useful for creating posters from a normal sized document and for many other 
+% types of fine-tuning of a finished document (e.g., minor scaling changes and 
+% position of the pages).  
+%
 % \section{Usage}
-% Load the package after other packages that affect the paper size 
-% (e.\,g., \textsf{geometry} and \textsf{hyperref}). 
-% Then call the macro \cmd{\blowUp} before |\begin{document}| to scale 
-% the document. \par \medskip \noindent
-%  |\usepackage{blowup}| \par \noindent
-%  \cmd{\blowUp}\arg{key=value} \par \noindent
-%  \vspace{-\baselineskip}
+% The only user macro is \cmd{\blowUp}\arg{key=value}. Call it before 
+% |\begin{document}| to scale all pages of the document:  \par \medskip\noindent
+%  
 %  \setlength\extrarowheight{.2ex}
+%  \newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
 %  \begin{longtable}{@{}lP{.75\linewidth}@{}}
 %    \multicolumn{1}{@{}l}{\textbf{key}} & 
 %    \multicolumn{1}{l@{}}{\textbf{value}} \tabularnewline \hline 
@@ -104,21 +103,22 @@
 %              & |letter|, |legal|, |executive| or a paper size from the 
 %              ISO/DIN paper series A, B, C, D 
 %              (e.\,g., |a8|, |c7|,..., |b1|, |a0|) or a pair of dimensions
-%              in curly brackets (e.\,g., |paper={925mm,1225mm}|) or the 
+%              in curly brackets (e.\,g., |target={925mm,1225mm}|) or the 
 %              letter `x' followed by a scaling factor 
-%              (e.\,g., |paper=x1.414213|). \tabularnewline[.4\baselineskip]
-%    origin    & The paper size of the source document; no scaling to the target 
-%              size. \tabularnewline
+%              (e.\,g., |target=x1.414213|). \tabularnewline[.4\baselineskip]
+%    origin    & Scaled size of the source document: \tabularnewline
 %              & |letter|, |legal|, |executive| or a paper size from the 
 %              ISO/DIN paper series A, B, C, D 
 %              (e.\,g., |a8|, |c7|,..., |b1|, |a0|) or a pair of dimensions
-%              in curly brackets (e.\,g., |paper={925mm,1225mm}|) or the 
+%              in curly brackets (e.\,g., |origin={925mm,1225mm}|) or the 
 %              letter `x' followed by a scaling factor 
-%              (e.\,g., |paper=x1.414213|). \tabularnewline[.4\baselineskip]
+%              (e.\,g., |origin=x1.414213|). \tabularnewline[.4\baselineskip]
 %    landscape & Exchanges paperwidth and paperheight: \tabularnewline
-%              & |true| (the same as no value) or |false|. \tabularnewline[.4\baselineskip]
+%              & |true| (the same as no value) or |false|. 
+%                 \tabularnewline[.4\baselineskip]
 %    noscale   & No scaling of the original paper size: \tabularnewline
-%              & |true| (the same as no value) or |false|. \tabularnewline[.4\baselineskip]
+%              & |true| (the same as no value) or |false|. 
+%                 \tabularnewline[.4\baselineskip]
 %    pos       & Position of the page on the paper: \tabularnewline
 %              & |left| or |right|, |inside| or |outside|, |top| or |bottom| 
 %              (only the first letter is significant; default is 
@@ -134,19 +134,14 @@
 %  \vspace{0\baselineskip}
 %  See also the example documents |blowup-ex?.tex|.
 %
-%    \section{Required Packages} 
+% \StopEventually{}
 %
-%    The \textsf{blowup} package requires the following packages: 
-%    \textsf{atbegshi}, \textsf{graphics}, \textsf{keyval}, and 
-%    \textsf{typearea}.
-%
-% \StopEventually{\PrintChanges\PrintIndex}
-%
 % \section{Implementation}
 %
-%    \begin{macrocode}
+% \iffalse
 %<*package>
-%    \end{macrocode}
+% \fi
+%
 %  Load some packages for utility macros. 
 %    \begin{macrocode}
 \RequirePackage{atbegshi,keyval,graphics}
@@ -158,10 +153,16 @@
     \g at addto@macro\BL at restore@dimens{%
       \csname #1\endcsname\csname BL@#1\endcsname}%
   }%
-  \newcommand*\BL at restore@dimens{}%
 %    \end{macrocode}
+% \begin{macro}{\BL at restore@dimens}
 % Some dimensions changed by \textsf{typearea} must be saved and restored.
 %    \begin{macrocode}
+  \newcommand*\BL at restore@dimens{}%
+%    \end{macrocode}
+% \end{macro}
+%    \begin{macrocode}
+  \BL at save@dimen{paperwidth}%
+  \BL at save@dimen{paperheight}%
   \BL at save@dimen{textwidth}%
   \BL at save@dimen{textheight}%
   \BL at save@dimen{evensidemargin}%
@@ -172,30 +173,33 @@
   \BL at save@dimen{topskip}%
   \BL at save@dimen{footskip}%
   \BL at save@dimen{baselineskip}%
-%    \end{macrocode}
-% \changes{v0.1j}{2008/11/14}{Undefine \cmd{\l at addto@macro}. (RN)}
-% Prevent an error if \cmd{\l at addto@macro} is already defined.
-%    \begin{macrocode}
   \let\l at addto@macro=\relax
-  \RequirePackage{typearea}%
+  \RequirePackage[pagesize=false]{typearea}%
+  \expandafter\let\csname ver at typearea.sty\endcsname=\relax
   \BL at restore@dimens
   \let\BL at save@dimen=\relax
   \let\BL at restore@dimens=\relax
 }
+%    \end{macrocode}
+%
+% \begin{macro}{\vb at xt@}
+%   Similar to \cmd{\hb at xt@}
+%    \begin{macrocode}
 \providecommand*\vb at xt@{\vbox to}
 %    \end{macrocode}
+% \end{macro}
 % \begin{macro}{\tPaperWidth}
 % \begin{macro}{\tPaperHeight}
-% The size of the scaled pages.
+%   The size of the scaled final pages.
 %    \begin{macrocode}
-\newlength\tPaperWidth  \tPaperWidth=\paperwidth
-\newlength\tPaperHeight \tPaperHeight=\paperheight
+\newlength\tPaperWidth
+\newlength\tPaperHeight
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
 % \begin{macro}{\oPaperWidth}
 % \begin{macro}{\oPaperHeight}
-% The size of the original pages.
+%    The size of the original pages.
 %    \begin{macrocode}
 \newlength\oPaperWidth  \oPaperWidth=\z@
 \newlength\oPaperHeight \oPaperHeight=\z@
@@ -202,13 +206,21 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
+%
+% \begin{macro}{\BL at resize}
+%   Resizes the shipout box.
 %    \begin{macrocode}
 \newcommand*\BL at resize[1]{#1}
 %    \end{macrocode}
+% \end{macro}
 % \begin{macro}{\BL at scalePage}
-% Scales the output box to the dimension of the new paper size.
+%   The whole scaling process of the the shipout box to the dimension of the 
+%   new paper size.
 %    \begin{macrocode}
 \newcommand*\BL at scalePage{%
+%    \end{macrocode}
+%   Normalize the shipout box
+%    \begin{macrocode}
   \setbox\AtBeginShipoutBox=\vbox{%
     \vskip1in\moveright1in\box\AtBeginShipoutBox}%
   \setbox\AtBeginShipoutBox=\hb at xt@\paperwidth{%
@@ -232,11 +244,15 @@
     \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\AtBeginShipoutBox}\BL at r}%
     \BL at b\kern\z@
   }%
+%    \end{macrocode}
+%   Denormalize the shipout box
+%    \begin{macrocode}
   \setbox\AtBeginShipoutBox=\vbox{%
     \vskip-1in\moveright-1in\box\@tempboxa}%
 }
 %    \end{macrocode}
 % \end{macro}
+%
 %    \begin{macrocode}
 \newcommand\BL at tempa{}
 \newcommand\BL at tempb{}
@@ -243,10 +259,11 @@
 \newcommand*\BL at strip@comma{}
 \def\BL at strip@comma#1,{#1}
 %    \end{macrocode}
+%
 % \begin{macro}{\BL at is@dimen at pair}
-% The parameter two will be executed if the first parameter is 
-% a comma-separated pair of two dimensions. If not the parameter three 
-% will be executed.
+%   The parameter two will be executed if the first parameter is 
+%   a comma-separated pair of two dimensions. If not the parameter three 
+%   will be executed.   
 %    \begin{macrocode}
 \newcommand*\BL at is@dimen at pair[1]{%
   \expandafter\BL@@is at dimen@pair#1,\@nil
@@ -269,14 +286,16 @@
 }
 %    \end{macrocode}
 % \end{macro}
+%
 %    \begin{macrocode}
 \newcommand*\BL at strip@x{}
 \def\BL at strip@x#1x{#1}
 %    \end{macrocode}
+%
 % \begin{macro}{\BL at is@factor}
-% The parameter two will be executed if the first parameter is the 
-% small letter x (`times') immediately followed by a number. If not 
-% the parameter three will be executed.
+%   The parameter two will be executed if the first parameter is the 
+%   small letter x (`times') immediately followed by a number. If not 
+%   the parameter three will be executed.
 %    \begin{macrocode}
 \newcommand*\BL at is@factor[1]{%
   \expandafter\BL@@is at factor#1x\@nil
@@ -297,8 +316,10 @@
 }
 %    \end{macrocode}
 % \end{macro}
+%
+%
 % \begin{macro}{\BL at getDimens}
-% Sets the two dimen registers (|#2| and |#3|) according to parameter |#1|.
+%   Sets the two dimen registers (|#2| and |#3|) according to parameter |#1|.
 %    \begin{macrocode}
 \newcommand*\BL at getDimens[3]{%
   \BL at is@dimen at pair{#1}{%
@@ -319,18 +340,30 @@
 }
 %    \end{macrocode}
 % \end{macro}
-% The key-value definitions for \cmd{\blowUp}.
+%  The key-value definitions for \cmd{\blowUp}:
 %    \begin{macrocode}
 \define at key{BL@}{origin}{%
   \BL at getDimens{#1}{\oPaperWidth}{\oPaperHeight}%
 }
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \define at key{BL@}{target}{%
   \BL at getDimens{#1}{\tPaperWidth}{\tPaperHeight}%
 }
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \newif\ifBL at noscale \BL at noscalefalse
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \define at key{BL@}{noscale}[true]{%
   \csname BL at noscale#1\endcsname
 }
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \newcommand*\BL at l{}
 \newcommand*\BL at r{}
 \newcommand*\BL at i{}
@@ -338,9 +371,11 @@
 \newcommand*\BL at t{}
 \newcommand*\BL at b{}
 %    \end{macrocode}
+%
+%
 % \begin{macro}{\BL at setPos}
-% Modify the macros \cmd{\BL at l}, \cmd{\BL at r} (\cmd{\BL at i}, \cmd{\BL at o}), 
-% \cmd{\BL at t}, and \cmd{\BL at b} for positioning the page on the paper.
+%   Modify the macros \cmd{\BL at l}, \cmd{\BL at r} (\cmd{\BL at i}, \cmd{\BL at o}), 
+%   \cmd{\BL at t}, and \cmd{\BL at b} for positioning the page on the paper.
 %    \begin{macrocode}
 \newcommand\BL at setPos[1]{%
   \def\BL at l{\hss}\def\BL at r{\hss}%
@@ -358,9 +393,6 @@
     \if
   }{%
     \@for\BL at tempa:=#1\do{%
-%    \end{macrocode}
-%  Extract the first letter.
-%    \begin{macrocode}
       \edef\BL at tempb{\expandafter\@car\BL at tempa\@nil}%
       \expandafter\let\csname BL@\BL at tempb \endcsname\relax
     }%
@@ -381,23 +413,37 @@
 }
 %    \end{macrocode}
 % \end{macro}
+%
 %    \begin{macrocode}
 \define at key{BL@}{pos}{%
   \BL at setPos{#1}%
 }
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \newif\ifBL at landscape \BL at landscapefalse
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \define at key{BL@}{landscape}[true]{%
   \csname BL at landscape#1\endcsname
 }
-\newcommand*\BL at pageInit{}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\newcommand*\BL at setup{}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \define at key{BL@}{onepage}[true]{%
   \csname if#1\endcsname
-    \def\BL at pageInit{\gdef\shipout{\setbox\@tempboxa=}}%
+    \def\BL at setup{\gdef\shipout{\deadcycles\z@\setbox\@tempboxa=}}%
   \fi
 }
 %    \end{macrocode}
+%
 % \begin{macro}{\blowUp}
-% The only user-level macro.
+%   The only user-level macro.
 %    \begin{macrocode}
 \newcommand*\blowUp[1]{%
   \setkeys{BL@}{#1}%
@@ -406,7 +452,10 @@
     \global\tPaperWidth=\tPaperHeight
     \global\tPaperHeight=\@tempdima
   \fi
-  \AtBeginShipout{\BL at scalePage}%
+  \AtBeginDocument{%
+    \AtBeginDvi{\BL at pagesize@code{\tPaperWidth}{\tPaperHeight}}%
+    \AtBeginShipout{\BL at setup\BL at scalePage}
+  }%
   \gdef\blowUp##1{%
     \PackageWarning{blowup}{Only the first call of `\string\blowUp'
       \MessageBreak is effective}}%
@@ -413,53 +462,62 @@
 }
 %    \end{macrocode}
 % \end{macro}
+%
 %    \begin{macrocode}
-\AtBeginShipout{\BL at pageInit}
 \@onlypreamble\blowUp
-\AtBeginDocument{%
-  \BL at pagesize@specials{\tPaperWidth}{\tPaperHeight}%
-}
 %    \end{macrocode}
-% \begin{macro}{\BL at pagesize@specials}
-% Write pagesize informations to the output file. Depends on \TeX\ 
-% compiler or driver.
+%
+% \begin{macro}{\BL at pagesize@code}
+%   Page size information (depending on the \TeX\ compiler or driver).
 %    \begin{macrocode}
-\RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex} 
-\newcommand*\BL at pagesize@specials[2]{}
+\newcommand*\BL at pagesize@code[2]{}
+%    \end{macrocode}
+% \end{macro}
+%
+%    \begin{macrocode}
+\RequirePackage{iftex}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \ifluatex
   \PackageInfo{blowup}{Generating code for LuaTeX}%
   \@ifundefined{pagewidth}{%
-    \def\BL at pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}%
+    \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+      \global\pdfpageheight=#2}%
   }{%
-    \def\BL at pagesize@specials#1#2{\pagewidth=#1 \pageheight=#2}% 
+    \def\BL at pagesize@code#1#2{\global\pagewidth=#1 %
+      \global\pageheight=#2}%
   }
 \else
   \ifxetex
     \PackageInfo{blowup}{Generating code for XeTeX}%
-    \def\BL at pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 %
-      \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}%
-      \pdfpagewidth=#1 \pdfpageheight=#2}%
+    \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+      \global\pdfpageheight=#2}%
   \else
     \ifvtex
       \PackageInfo{blowup}{Generating code for VTeX}%
-      \def\BL at pagesize@specials#1#2{\mediawidth=#1 \mediaheight=#2}%
+      \def\BL at pagesize@code#1#2{\global\mediawidth=#1 %
+        \global\mediaheight=#2}%
     \else
       \ifpdf
         \PackageInfo{blowup}{Generating code for pdfTeX}%
-        \def\BL at pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}%
+        \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+          \global\pdfpageheight=#2}%
       \else
         \PackageInfo{blowup}{Generating code for dvips}%
-        \def\BL at pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 %
-          \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}}%      
+        \def\BL at pagesize@code#1#2{%
+          \@tempdima=#1 \@tempdimb=#2 %
+          \special{papersize=\the\@tempdima,\the\@tempdimb}%
+        }%
       \fi
-    \fi    
+    \fi
   \fi
 \fi
 %    \end{macrocode}
-% \end{macro}
-%    \begin{macrocode}
+%
+% \iffalse
 %</package>
-%    \end{macrocode}
+% \fi
 %
 % \Finale
-%\endinput
+\endinput

Modified: trunk/Master/texmf-dist/source/latex/blowup/blowup.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/blowup/blowup.ins	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/source/latex/blowup/blowup.ins	2022-09-20 19:54:38 UTC (rev 64454)
@@ -1,44 +1,10 @@
-%%
-%% Copyright (C) 2007, 2017-
-%% Rolf Niepraschk, Rolf.Niepraschk at gmx.de
-%% 
-%% This work 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
-%% 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".
 
-\input docstrip.tex
+\input docstrip
 \keepsilent
-
-\usedir{tex/latex/blowup}
-
-\preamble
-                    
-   Copyright (C) 2007, 2017-
-   Rolf Niepraschk, Rolf.Niepraschk at gmx.de
-
-   This work 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
-   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".
-
-\endpreamble
-
-\keepsilent
 \askforoverwritefalse
 
-\generate{
-  \file{blowup.sty}{\from{blowup.dtx}{package}}
+\generate{\file{blowup.sty}{\usepreamble\defaultpreamble
+\usepostamble\defaultpostamble\from{blowup.dtx}{blowup.sty,package}}
 }
 
 \obeyspaces

Modified: trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2022-09-20 19:54:23 UTC (rev 64453)
+++ trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2022-09-20 19:54:38 UTC (rev 64454)
@@ -4,23 +4,24 @@
 %%
 %% The original source files were:
 %%
-%% blowup.dtx  (with options: `package')
+%% blowup.dtx  (with options: `blowup.sty,package')
 %% 
-%%    Copyright (C) 2007, 2017-
-%%    Rolf Niepraschk, Rolf.Niepraschk at gmx.de
+%% IMPORTANT NOTICE:
 %% 
-%%    This work 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
-%%    and version 1.3 or later is part of all distributions of LaTeX
-%%    version 2003/12/01 or later.
+%% For the copyright see the source file.
 %% 
-%%    This work has the LPPL maintenance status "author-maintained".
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from blowup.sty.
 %% 
-\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{blowup}[2018/01/02 1.0 Document Scaling (RN)]
+%% For distribution of the original source see the terms
+%% for copying and modification in the file blowup.dtx.
+%% 
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+\NeedsTeXFormat{LaTeX2e}[2020/10/01]
+\ProvidesPackage{blowup}[2022/09/19 2.0.0 Page scaling (RN)]
 \RequirePackage{atbegshi,keyval,graphics}
 \@ifpackageloaded{typearea}{}{%
   \newcommand*\BL at save@dimen[1]{%
@@ -31,6 +32,8 @@
       \csname #1\endcsname\csname BL@#1\endcsname}%
   }%
   \newcommand*\BL at restore@dimens{}%
+  \BL at save@dimen{paperwidth}%
+  \BL at save@dimen{paperheight}%
   \BL at save@dimen{textwidth}%
   \BL at save@dimen{textheight}%
   \BL at save@dimen{evensidemargin}%
@@ -42,14 +45,15 @@
   \BL at save@dimen{footskip}%
   \BL at save@dimen{baselineskip}%
   \let\l at addto@macro=\relax
-  \RequirePackage{typearea}%
+  \RequirePackage[pagesize=false]{typearea}%
+  \expandafter\let\csname ver at typearea.sty\endcsname=\relax
   \BL at restore@dimens
   \let\BL at save@dimen=\relax
   \let\BL at restore@dimens=\relax
 }
 \providecommand*\vb at xt@{\vbox to}
-\newlength\tPaperWidth  \tPaperWidth=\paperwidth
-\newlength\tPaperHeight \tPaperHeight=\paperheight
+\newlength\tPaperWidth
+\newlength\tPaperHeight
 \newlength\oPaperWidth  \oPaperWidth=\z@
 \newlength\oPaperHeight \oPaperHeight=\z@
 \newcommand*\BL at resize[1]{#1}
@@ -196,10 +200,10 @@
 \define at key{BL@}{landscape}[true]{%
   \csname BL at landscape#1\endcsname
 }
-\newcommand*\BL at pageInit{}
+\newcommand*\BL at setup{}
 \define at key{BL@}{onepage}[true]{%
   \csname if#1\endcsname
-    \def\BL at pageInit{\gdef\shipout{\setbox\@tempboxa=}}%
+    \def\BL at setup{\gdef\shipout{\deadcycles\z@\setbox\@tempboxa=}}%
   \fi
 }
 \newcommand*\blowUp[1]{%
@@ -209,43 +213,47 @@
     \global\tPaperWidth=\tPaperHeight
     \global\tPaperHeight=\@tempdima
   \fi
-  \AtBeginShipout{\BL at scalePage}%
+  \AtBeginDocument{%
+    \AtBeginDvi{\BL at pagesize@code{\tPaperWidth}{\tPaperHeight}}%
+    \AtBeginShipout{\BL at setup\BL at scalePage}
+  }%
   \gdef\blowUp##1{%
     \PackageWarning{blowup}{Only the first call of `\string\blowUp'
       \MessageBreak is effective}}%
 }
-\AtBeginShipout{\BL at pageInit}
 \@onlypreamble\blowUp
-\AtBeginDocument{%
-  \BL at pagesize@specials{\tPaperWidth}{\tPaperHeight}%
-}
-\RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex}
-\newcommand*\BL at pagesize@specials[2]{}
+\newcommand*\BL at pagesize@code[2]{}
+\RequirePackage{iftex}
 \ifluatex
   \PackageInfo{blowup}{Generating code for LuaTeX}%
   \@ifundefined{pagewidth}{%
-    \def\BL at pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}%
+    \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+      \global\pdfpageheight=#2}%
   }{%
-    \def\BL at pagesize@specials#1#2{\pagewidth=#1 \pageheight=#2}%
+    \def\BL at pagesize@code#1#2{\global\pagewidth=#1 %
+      \global\pageheight=#2}%
   }
 \else
   \ifxetex
     \PackageInfo{blowup}{Generating code for XeTeX}%
-    \def\BL at pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 %
-      \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}%
-      \pdfpagewidth=#1 \pdfpageheight=#2}%
+    \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+      \global\pdfpageheight=#2}%
   \else
     \ifvtex
       \PackageInfo{blowup}{Generating code for VTeX}%
-      \def\BL at pagesize@specials#1#2{\mediawidth=#1 \mediaheight=#2}%
+      \def\BL at pagesize@code#1#2{\global\mediawidth=#1 %
+        \global\mediaheight=#2}%
     \else
       \ifpdf
         \PackageInfo{blowup}{Generating code for pdfTeX}%
-        \def\BL at pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}%
+        \def\BL at pagesize@code#1#2{\global\pdfpagewidth=#1 %
+          \global\pdfpageheight=#2}%
       \else
         \PackageInfo{blowup}{Generating code for dvips}%
-        \def\BL at pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 %
-          \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}}%
+        \def\BL at pagesize@code#1#2{%
+          \@tempdima=#1 \@tempdimb=#2 %
+          \special{papersize=\the\@tempdima,\the\@tempdimb}%
+        }%
       \fi
     \fi
   \fi



More information about the tex-live-commits mailing list.