summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-15 20:10:09 +0000
committerKarl Berry <karl@freefriends.org>2023-07-15 20:10:09 +0000
commitf15b764fe1a5af37fceeba3e43e165dda9a6a226 (patch)
tree7f4e7eb0c013e3dc3d5bc7ba1aac906b118ab546
parent1d063e56ff2f4f491ff3b9a560c6e9be6f7b8e82 (diff)
blowup (15jul23)
git-svn-id: svn://tug.org/texlive/trunk@67640 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdfbin33365 -> 33364 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdfbin33377 -> 33377 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdfbin34010 -> 34012 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdfbin12537 -> 12537 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdfbin20246 -> 20244 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdfbin33734 -> 33735 bytes
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex10
-rw-r--r--Master/texmf-dist/doc/latex/blowup/blowup.pdfbin199133 -> 209753 bytes
-rw-r--r--Master/texmf-dist/source/latex/blowup/blowup.dtx30
-rw-r--r--Master/texmf-dist/tex/latex/blowup/blowup.sty28
15 files changed, 54 insertions, 64 deletions
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
index 6f1af028582..30fe2d329fe 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex
index eb58ff61ef4..eef16d3ca6d 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.tex
@@ -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}
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
index 88ca3eeef60..b5187fbc247 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex
index bb9d839fc74..aba0371a692 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.tex
@@ -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}
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
index d8bae71cf9f..5384be13038 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex
index 65cf7b8dc9c..f443e566cf3 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.tex
@@ -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}
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
index fd00e54ac14..55b12d44151 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex
index c68fb047773..2a41bc98364 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.tex
@@ -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}
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
index f95c24b056b..3587883699d 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex
index 435bc7ba276..da742eb153d 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.tex
@@ -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{%
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
index e03fb322a5b..b3dcd5a8715 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
index 4128a48b362..d9708672196 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
+++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
@@ -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}
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup.pdf b/Master/texmf-dist/doc/latex/blowup/blowup.pdf
index 38b26ab049c..c5d0c91fa50 100644
--- a/Master/texmf-dist/doc/latex/blowup/blowup.pdf
+++ b/Master/texmf-dist/doc/latex/blowup/blowup.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/blowup/blowup.dtx b/Master/texmf-dist/source/latex/blowup/blowup.dtx
index 33858619264..1781c1a6f5b 100644
--- a/Master/texmf-dist/source/latex/blowup/blowup.dtx
+++ b/Master/texmf-dist/source/latex/blowup/blowup.dtx
@@ -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@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@scalePage{%
% \end{macrocode}
% Normalize the shipout box
% \begin{macrocode}
- \setbox\AtBeginShipoutBox=\vbox{%
- \vskip1in\moveright1in\box\AtBeginShipoutBox}%
- \setbox\AtBeginShipoutBox=\hb@xt@\paperwidth{%
- \box\AtBeginShipoutBox\hss}%
- \setbox\AtBeginShipoutBox=\vb@xt@\paperheight{%
- \box\AtBeginShipoutBox\vss}%
+ \setbox\ShipoutBox=\vbox{%
+ \vskip1in\moveright1in\box\ShipoutBox}%
+ \setbox\ShipoutBox=\hb@xt@\paperwidth{%
+ \box\ShipoutBox\hss}%
+ \setbox\ShipoutBox=\vb@xt@\paperheight{%
+ \box\ShipoutBox\vss}%
\ifBL@noscale\else
\ifdim\oPaperWidth>\z@
- \setbox\AtBeginShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
- {\box\AtBeginShipoutBox}}%
+ \setbox\ShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
+ {\box\ShipoutBox}}%
\else
\def\BL@resize##1{\resizebox{\tPaperWidth}{!}{##1}}%
- \setbox\@tempboxa=\hbox{\BL@resize{\copy\AtBeginShipoutBox}}%
+ \setbox\@tempboxa=\hbox{\BL@resize{\copy\ShipoutBox}}%
\ifdim\ht\@tempboxa>\tPaperHeight
\def\BL@resize##1{\resizebox{!}{\tPaperHeight}{##1}}%
\fi
@@ -250,7 +251,7 @@
\fi
\setbox\@tempboxa=\vb@xt@\tPaperHeight{%
\kern\z@\BL@t
- \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\AtBeginShipoutBox}\BL@r}%
+ \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\ShipoutBox}\BL@r}%
\BL@b\kern\z@
}%
\ifBL@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@pagesize@code{\tPaperWidth}{\tPaperHeight}}%
- \AtBeginShipout{\BL@setup\BL@scalePage}
+ \AddToHook{shipout}{\BL@setup\BL@scalePage}%
}%
\gdef\blowUp##1{%
\PackageWarning{blowup}{Only the first call of `\string\blowUp'
diff --git a/Master/texmf-dist/tex/latex/blowup/blowup.sty b/Master/texmf-dist/tex/latex/blowup/blowup.sty
index 8ef94397349..038d5d11720 100644
--- a/Master/texmf-dist/tex/latex/blowup/blowup.sty
+++ b/Master/texmf-dist/tex/latex/blowup/blowup.sty
@@ -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@save@dimen[1]{%
\@ifundefined{BL@#1}{%
@@ -58,19 +58,19 @@
\newlength\oPaperHeight \oPaperHeight=\z@
\newcommand*\BL@resize[1]{#1}
\newcommand*\BL@scalePage{%
- \setbox\AtBeginShipoutBox=\vbox{%
- \vskip1in\moveright1in\box\AtBeginShipoutBox}%
- \setbox\AtBeginShipoutBox=\hb@xt@\paperwidth{%
- \box\AtBeginShipoutBox\hss}%
- \setbox\AtBeginShipoutBox=\vb@xt@\paperheight{%
- \box\AtBeginShipoutBox\vss}%
+ \setbox\ShipoutBox=\vbox{%
+ \vskip1in\moveright1in\box\ShipoutBox}%
+ \setbox\ShipoutBox=\hb@xt@\paperwidth{%
+ \box\ShipoutBox\hss}%
+ \setbox\ShipoutBox=\vb@xt@\paperheight{%
+ \box\ShipoutBox\vss}%
\ifBL@noscale\else
\ifdim\oPaperWidth>\z@
- \setbox\AtBeginShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
- {\box\AtBeginShipoutBox}}%
+ \setbox\ShipoutBox=\hbox{\resizebox{\oPaperWidth}{\oPaperHeight}%
+ {\box\ShipoutBox}}%
\else
\def\BL@resize##1{\resizebox{\tPaperWidth}{!}{##1}}%
- \setbox\@tempboxa=\hbox{\BL@resize{\copy\AtBeginShipoutBox}}%
+ \setbox\@tempboxa=\hbox{\BL@resize{\copy\ShipoutBox}}%
\ifdim\ht\@tempboxa>\tPaperHeight
\def\BL@resize##1{\resizebox{!}{\tPaperHeight}{##1}}%
\fi
@@ -78,13 +78,13 @@
\fi
\setbox\@tempboxa=\vb@xt@\tPaperHeight{%
\kern\z@\BL@t
- \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\AtBeginShipoutBox}\BL@r}%
+ \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\ShipoutBox}\BL@r}%
\BL@b\kern\z@
}%
\ifBL@mirroring
\setbox\@tempboxa=\hbox{\scalebox{\BL@h}[\BL@v]{\box\@tempboxa}}%
\fi
- \setbox\AtBeginShipoutBox=\vbox{%
+ \setbox\ShipoutBox=\vbox{%
\vskip-1in\moveright-1in\box\@tempboxa}%
}
\newcommand\BL@tempa{}
@@ -231,7 +231,7 @@
\fi
\AtBeginDocument{%
\AtBeginDvi{\BL@pagesize@code{\tPaperWidth}{\tPaperHeight}}%
- \AtBeginShipout{\BL@setup\BL@scalePage}
+ \AddToHook{shipout}{\BL@setup\BL@scalePage}%
}%
\gdef\blowUp##1{%
\PackageWarning{blowup}{Only the first call of `\string\blowUp'