diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-22 20:10:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-22 20:10:01 +0000 |
commit | d30bc5664488185ab7cc29d83704505e8e939915 (patch) | |
tree | 34aa36f9add2f14a4815f68b15abc90ecd2ab2a0 | |
parent | ebdfa47ce7700ac5de8a81e419b37bce25e117b5 (diff) |
blowup (22sep22)
git-svn-id: svn://tug.org/texlive/trunk@64466 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf | bin | 33365 -> 33365 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf | bin | 33377 -> 33377 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf | bin | 34010 -> 34010 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf | bin | 12537 -> 12537 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf | bin | 20246 -> 20246 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf | bin | 0 -> 33734 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex | 59 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/blowup/blowup.pdf | bin | 196888 -> 199133 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/blowup/blowup.dtx | 51 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/blowup/blowup.sty | 20 |
10 files changed, 115 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf Binary files differindex d67653e490d..6f1af028582 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf Binary files differindex 5ee25768e00..88ca3eeef60 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf Binary files differindex 53404b97d9d..d8bae71cf9f 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf Binary files differindex 5d0816e9a4c..fd00e54ac14 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf Binary files differindex f41f2eb1d25..f95c24b056b 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf Binary files differnew file mode 100644 index 00000000000..e03fb322a5b --- /dev/null +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf diff --git a/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex new file mode 100644 index 00000000000..4128a48b362 --- /dev/null +++ b/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex @@ -0,0 +1,59 @@ +% 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[a4paper,twoside]{article} +\usepackage{array,xcolor} + +% Just to show the page size of the source. +\usepackage{xcolor,atbegshi} +\AtBeginShipout{% + \AtBeginShipoutUpperLeft{% + \textcolor{green!30}{\rule[-\paperheight]{\paperwidth}{\paperheight}}% + }% +} + +\renewcommand\familydefault{\sfdefault} +\setlength\parindent{0pt} +\pagestyle{empty} + +\usepackage{blowup} +\blowUp{h-mirroring,v-mirroring}% vertical and horizontal mirrored + +\begin{document} + +\null\vfill + +\huge\centering + +A4-sized document not resized, mirrored vertically and horizontally + +\vfill + +\setlength\extrarowheight{.5ex} +\begin{tabular}{|>{\bfseries}l<{:}r<{\,mm}!{$\times$}r<{\,mm}|} \hline + letter & 216 & 279 \\ + legal & 216 & 356 \\ + executive & 184 & 267 \\ + A8 & 52 & 74 \\ + A7 & 74 & 105 \\ + A6 & 105 & 148 \\ + A5 & 148 & 210 \\ + A4 & 210 & 297 \\ + A3 & 297 & 420 \\ + A2 & 420 & 594 \\ + A1 & 594 & 841 \\ + A0 & 841 & 1189 \\ \hline +\end{tabular} + +\vfill + +\newpage\null 2nd page\dots + +\end{document} +%--------------------------- diff --git a/Master/texmf-dist/doc/latex/blowup/blowup.pdf b/Master/texmf-dist/doc/latex/blowup/blowup.pdf Binary files differindex 03efefbc9c8..38b26ab049c 100644 --- a/Master/texmf-dist/doc/latex/blowup/blowup.pdf +++ b/Master/texmf-dist/doc/latex/blowup/blowup.pdf diff --git a/Master/texmf-dist/source/latex/blowup/blowup.dtx b/Master/texmf-dist/source/latex/blowup/blowup.dtx index 374f2878def..33858619264 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/19 2.0.0 Page scaling (RN)] +%<package>\ProvidesPackage{blowup}[2022/09/22 2.1.0 Page scaling (RN)] % %<*driver> \documentclass{ltxdoc} @@ -43,7 +43,7 @@ %</driver> % \fi % -% \CheckSum{510} +% \CheckSum{546} % % \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 @@ -105,20 +105,26 @@ % (e.\,g., |a8|, |c7|,..., |b1|, |a0|) or a pair of dimensions % in curly brackets (e.\,g., |target={925mm,1225mm}|) or the % letter `x' followed by a scaling factor -% (e.\,g., |target=x1.414213|). \tabularnewline[.4\baselineskip] +% (e.\,g., |target=x1.414213|). \tabularnewline[.75ex] % 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., |origin={925mm,1225mm}|) or the % letter `x' followed by a scaling factor -% (e.\,g., |origin=x1.414213|). \tabularnewline[.4\baselineskip] +% (e.\,g., |origin=x1.414213|). \tabularnewline[.75ex] +% h-mirroring & horizontally mirroring of the final pages \tabularnewline +% & |true| (the same as no value) or |false| (default: |false|). +% \tabularnewline[.75ex] +% v-mirroring & vertically mirroring of the final pages \tabularnewline +% & |true| (the same as no value) or |false| (default: |false|). +% \tabularnewline[.75ex] % 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| (default: |false|). +% \tabularnewline[.75ex] % 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| (default: |false|). +% \tabularnewline[.75ex] % 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 @@ -126,10 +132,12 @@ % a pair of dimensions in curly brackets which means the offset % from the lower left or lower outside corner of the final paper. % Only meaningful for |noscale=true| and up-scaled paper -% size. \tabularnewline[.4\baselineskip] -% onepage & Suppresses the second page and all following pages: \tabularnewline -% & |true| (the same as no value) or |false|. \tabularnewline -% & Useful for creating a one-side paper like a poster. +% size. \tabularnewline[.75ex] +% onepage & Suppresses the second page and all following pages: +% \tabularnewline +% & |true| (the same as no value) or |false| (default: |false|). +% \tabularnewline +% & Useful for creating a one-page document like a poster. % \end{longtable} % \vspace{0\baselineskip} % See also the example documents |blowup-ex?.tex|. @@ -216,6 +224,7 @@ % \begin{macro}{\BL@scalePage} % 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)} % \begin{macrocode} \newcommand*\BL@scalePage{% % \end{macrocode} @@ -244,6 +253,9 @@ \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\AtBeginShipoutBox}\BL@r}% \BL@b\kern\z@ }% + \ifBL@mirroring + \setbox\@tempboxa=\hbox{\scalebox{\BL@h}[\BL@v]{\box\@tempboxa}}% + \fi % \end{macrocode} % Denormalize the shipout box % \begin{macrocode} @@ -355,11 +367,20 @@ % % \begin{macrocode} \newif\ifBL@noscale \BL@noscalefalse +\newif\ifBL@mirroring \BL@mirroringfalse % \end{macrocode} % % \begin{macrocode} \define@key{BL@}{noscale}[true]{% - \csname BL@noscale#1\endcsname + \global\csname BL@noscale#1\endcsname +} +\define@key{BL@}{h-mirroring}[true]{% + \global\csname BL@mirroring#1\endcsname + \gdef\BL@h{-1}% +} +\define@key{BL@}{v-mirroring}[true]{% + \global\csname BL@mirroring#1\endcsname + \gdef\BL@v{-1}% } % \end{macrocode} % @@ -370,6 +391,8 @@ \newcommand*\BL@o{} \newcommand*\BL@t{} \newcommand*\BL@b{} +\newcommand*\BL@h{1} +\newcommand*\BL@v{1} % \end{macrocode} % % @@ -446,6 +469,8 @@ % The only user-level macro. % \begin{macrocode} \newcommand*\blowUp[1]{% + \global\tPaperWidth=\paperwidth + \global\tPaperHeight=\paperheight \setkeys{BL@}{#1}% \ifBL@landscape \@tempdima=\tPaperWidth diff --git a/Master/texmf-dist/tex/latex/blowup/blowup.sty b/Master/texmf-dist/tex/latex/blowup/blowup.sty index 3fde596862f..8ef94397349 100644 --- a/Master/texmf-dist/tex/latex/blowup/blowup.sty +++ b/Master/texmf-dist/tex/latex/blowup/blowup.sty @@ -21,7 +21,7 @@ %% 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)] +\ProvidesPackage{blowup}[2022/09/22 2.1.0 Page scaling (RN)] \RequirePackage{atbegshi,keyval,graphics} \@ifpackageloaded{typearea}{}{% \newcommand*\BL@save@dimen[1]{% @@ -81,6 +81,9 @@ \hb@xt@\tPaperWidth{\BL@l\BL@resize{\box\AtBeginShipoutBox}\BL@r}% \BL@b\kern\z@ }% + \ifBL@mirroring + \setbox\@tempboxa=\hbox{\scalebox{\BL@h}[\BL@v]{\box\@tempboxa}}% + \fi \setbox\AtBeginShipoutBox=\vbox{% \vskip-1in\moveright-1in\box\@tempboxa}% } @@ -150,8 +153,17 @@ \BL@getDimens{#1}{\tPaperWidth}{\tPaperHeight}% } \newif\ifBL@noscale \BL@noscalefalse +\newif\ifBL@mirroring \BL@mirroringfalse \define@key{BL@}{noscale}[true]{% - \csname BL@noscale#1\endcsname + \global\csname BL@noscale#1\endcsname +} +\define@key{BL@}{h-mirroring}[true]{% + \global\csname BL@mirroring#1\endcsname + \gdef\BL@h{-1}% +} +\define@key{BL@}{v-mirroring}[true]{% + \global\csname BL@mirroring#1\endcsname + \gdef\BL@v{-1}% } \newcommand*\BL@l{} \newcommand*\BL@r{} @@ -159,6 +171,8 @@ \newcommand*\BL@o{} \newcommand*\BL@t{} \newcommand*\BL@b{} +\newcommand*\BL@h{1} +\newcommand*\BL@v{1} \newcommand\BL@setPos[1]{% \def\BL@l{\hss}\def\BL@r{\hss}% \def\BL@o{\hss}\def\BL@i{\hss}% @@ -207,6 +221,8 @@ \fi } \newcommand*\blowUp[1]{% + \global\tPaperWidth=\paperwidth + \global\tPaperHeight=\paperheight \setkeys{BL@}{#1}% \ifBL@landscape \@tempdima=\tPaperWidth |