texlive[67640] Master/texmf-dist: blowup (15jul23)

commits+karl at tug.org commits+karl at tug.org
Sat Jul 15 22:10:09 CEST 2023


Revision: 67640
          http://tug.org/svn/texlive?view=revision&revision=67640
Author:   karl
Date:     2023-07-15 22:10:09 +0200 (Sat, 15 Jul 2023)
Log Message:
-----------
blowup (15jul23)

Modified Paths:
--------------
    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-ex6.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
    trunk/Master/texmf-dist/doc/latex/blowup/blowup.pdf
    trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx
    trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -11,11 +11,9 @@
 \usepackage{array,xcolor}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \renewcommand\familydefault{\sfdefault}

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -11,11 +11,9 @@
 \usepackage{array}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \renewcommand\familydefault{\sfdefault}

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -11,11 +11,9 @@
 \usepackage{array}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \renewcommand\familydefault{\sfdefault}

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -11,11 +11,9 @@
 \usepackage{array}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \renewcommand\familydefault{\sfdefault}

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -10,11 +10,9 @@
 \documentclass[paper=b6,fontsize=11pt,twoside]{scrartcl}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \newcommand*\aPage{%

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

Modified: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex	2023-07-15 20:10:09 UTC (rev 67640)
@@ -1,4 +1,4 @@
-% Rolf Niepraschk, 2020-09-19
+% Rolf Niepraschk, 2023-07-15
 %
 % Translate to pdf with any TeX compiler and check the page size with
 % 
@@ -11,11 +11,9 @@
 \usepackage{array,xcolor}
 
 % Just to show the page size of the source.
-\usepackage{xcolor,atbegshi}
-\AtBeginShipout{%
-  \AtBeginShipoutUpperLeft{%
-    \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}%
-  }%
+\usepackage{xcolor}
+\AddToHook{shipout/background}{%
+  \put(0,0){\textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}}%
 }
 
 \renewcommand\familydefault{\sfdefault}

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	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx	2023-07-15 20:10:09 UTC (rev 67640)
@@ -24,7 +24,7 @@
 \ProvidesFile{blowup.dtx}
 %</driver>
 %<package>\NeedsTeXFormat{LaTeX2e}[2020/10/01]
-%<package>\ProvidesPackage{blowup}[2022/09/22 2.1.0 Page scaling (RN)]
+%<package>\ProvidesPackage{blowup}[2023/07/15 2.2.0 Page scaling (RN)]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -152,7 +152,7 @@
 %
 %  Load some packages for utility macros. 
 %    \begin{macrocode}
-\RequirePackage{atbegshi,keyval,graphics}
+\RequirePackage{keyval,graphics}
 \@ifpackageloaded{typearea}{}{%
   \newcommand*\BL at save@dimen[1]{%
     \@ifundefined{BL@#1}{%
@@ -225,24 +225,25 @@
 %   The whole scaling process of the the shipout box to the dimension of the 
 %   new paper size.
 %   \changes{2.1.0}{2022/09/22}{New options `h-mirroring' and `v-mirroring' (RN)}
+%   \changes{2.2.0}{2023/07/15}{Using \LaTeX's \cmd{\ShipoutBox} (RN)}
 %    \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{%
-    \box\AtBeginShipoutBox\hss}%
-  \setbox\AtBeginShipoutBox=\vb at xt@\paperheight{%
-    \box\AtBeginShipoutBox\vss}%
+  \setbox\ShipoutBox=\vbox{%
+    \vskip1in\moveright1in\box\ShipoutBox}%
+  \setbox\ShipoutBox=\hb at xt@\paperwidth{%
+    \box\ShipoutBox\hss}%
+  \setbox\ShipoutBox=\vb at xt@\paperheight{%
+    \box\ShipoutBox\vss}%
   \ifBL at noscale\else
     \ifdim\oPaperWidth>\z@
-      \setbox\AtBeginShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
-        {\box\AtBeginShipoutBox}}%
+      \setbox\ShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
+        {\box\ShipoutBox}}%
     \else
       \def\BL at resize##1{\resizebox{\tPaperWidth}{!}{##1}}%
-      \setbox\@tempboxa=\hbox{\BL at resize{\copy\AtBeginShipoutBox}}%
+      \setbox\@tempboxa=\hbox{\BL at resize{\copy\ShipoutBox}}%
       \ifdim\ht\@tempboxa>\tPaperHeight
         \def\BL at resize##1{\resizebox{!}{\tPaperHeight}{##1}}%
       \fi
@@ -250,7 +251,7 @@
   \fi
   \setbox\@tempboxa=\vb at xt@\tPaperHeight{%
     \kern\z@\BL at t
-    \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\AtBeginShipoutBox}\BL at r}%
+    \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\ShipoutBox}\BL at r}%
     \BL at b\kern\z@
   }%
   \ifBL at mirroring
@@ -259,7 +260,7 @@
 %    \end{macrocode}
 %   Denormalize the shipout box
 %    \begin{macrocode}
-  \setbox\AtBeginShipoutBox=\vbox{%
+  \setbox\ShipoutBox=\vbox{%
     \vskip-1in\moveright-1in\box\@tempboxa}%
 }
 %    \end{macrocode}
@@ -467,6 +468,7 @@
 %
 % \begin{macro}{\blowUp}
 %   The only user-level macro.
+%   \changes{2.2.0}{2023/07/15}{Using \LaTeX's shipout hook instead of package `atbegshi'}
 %    \begin{macrocode}
 \newcommand*\blowUp[1]{%
   \global\tPaperWidth=\paperwidth
@@ -479,7 +481,7 @@
   \fi
   \AtBeginDocument{%
     \AtBeginDvi{\BL at pagesize@code{\tPaperWidth}{\tPaperHeight}}%
-    \AtBeginShipout{\BL at setup\BL at scalePage}
+    \AddToHook{shipout}{\BL at setup\BL at scalePage}%
   }%
   \gdef\blowUp##1{%
     \PackageWarning{blowup}{Only the first call of `\string\blowUp'

Modified: trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2023-07-15 13:46:41 UTC (rev 67639)
+++ trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2023-07-15 20:10:09 UTC (rev 67640)
@@ -21,8 +21,8 @@
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
 \NeedsTeXFormat{LaTeX2e}[2020/10/01]
-\ProvidesPackage{blowup}[2022/09/22 2.1.0 Page scaling (RN)]
-\RequirePackage{atbegshi,keyval,graphics}
+\ProvidesPackage{blowup}[2023/07/15 2.2.0 Page scaling (RN)]
+\RequirePackage{keyval,graphics}
 \@ifpackageloaded{typearea}{}{%
   \newcommand*\BL at save@dimen[1]{%
     \@ifundefined{BL@#1}{%
@@ -58,19 +58,19 @@
 \newlength\oPaperHeight \oPaperHeight=\z@
 \newcommand*\BL at resize[1]{#1}
 \newcommand*\BL at scalePage{%
-  \setbox\AtBeginShipoutBox=\vbox{%
-    \vskip1in\moveright1in\box\AtBeginShipoutBox}%
-  \setbox\AtBeginShipoutBox=\hb at xt@\paperwidth{%
-    \box\AtBeginShipoutBox\hss}%
-  \setbox\AtBeginShipoutBox=\vb at xt@\paperheight{%
-    \box\AtBeginShipoutBox\vss}%
+  \setbox\ShipoutBox=\vbox{%
+    \vskip1in\moveright1in\box\ShipoutBox}%
+  \setbox\ShipoutBox=\hb at xt@\paperwidth{%
+    \box\ShipoutBox\hss}%
+  \setbox\ShipoutBox=\vb at xt@\paperheight{%
+    \box\ShipoutBox\vss}%
   \ifBL at noscale\else
     \ifdim\oPaperWidth>\z@
-      \setbox\AtBeginShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
-        {\box\AtBeginShipoutBox}}%
+      \setbox\ShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
+        {\box\ShipoutBox}}%
     \else
       \def\BL at resize##1{\resizebox{\tPaperWidth}{!}{##1}}%
-      \setbox\@tempboxa=\hbox{\BL at resize{\copy\AtBeginShipoutBox}}%
+      \setbox\@tempboxa=\hbox{\BL at resize{\copy\ShipoutBox}}%
       \ifdim\ht\@tempboxa>\tPaperHeight
         \def\BL at resize##1{\resizebox{!}{\tPaperHeight}{##1}}%
       \fi
@@ -78,13 +78,13 @@
   \fi
   \setbox\@tempboxa=\vb at xt@\tPaperHeight{%
     \kern\z@\BL at t
-    \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\AtBeginShipoutBox}\BL at r}%
+    \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\ShipoutBox}\BL at r}%
     \BL at b\kern\z@
   }%
   \ifBL at mirroring
     \setbox\@tempboxa=\hbox{\scalebox{\BL at h}[\BL at v]{\box\@tempboxa}}%
   \fi
-  \setbox\AtBeginShipoutBox=\vbox{%
+  \setbox\ShipoutBox=\vbox{%
     \vskip-1in\moveright-1in\box\@tempboxa}%
 }
 \newcommand\BL at tempa{}
@@ -231,7 +231,7 @@
   \fi
   \AtBeginDocument{%
     \AtBeginDvi{\BL at pagesize@code{\tPaperWidth}{\tPaperHeight}}%
-    \AtBeginShipout{\BL at setup\BL at scalePage}
+    \AddToHook{shipout}{\BL at setup\BL at scalePage}%
   }%
   \gdef\blowUp##1{%
     \PackageWarning{blowup}{Only the first call of `\string\blowUp'



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