texlive[64466] Master/texmf-dist: blowup (22sep22)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 22 22:10:01 CEST 2022


Revision: 64466
          http://tug.org/svn/texlive?view=revision&revision=64466
Author:   karl
Date:     2022-09-22 22:10:01 +0200 (Thu, 22 Sep 2022)
Log Message:
-----------
blowup (22sep22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex1.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex2.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex3.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex4.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex5.pdf
    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

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
    trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex

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

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

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

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

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

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

Index: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf	2022-09-22 20:09:41 UTC (rev 64465)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf	2022-09-22 20:10:01 UTC (rev 64466)

Property changes on: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex	2022-09-22 20:10:01 UTC (rev 64466)
@@ -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}
+%---------------------------


Property changes on: trunk/Master/texmf-dist/doc/latex/blowup/blowup-ex6.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
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-22 20:09:41 UTC (rev 64465)
+++ trunk/Master/texmf-dist/source/latex/blowup/blowup.dtx	2022-09-22 20:10:01 UTC (rev 64466)
@@ -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,7 +105,7 @@
 %              (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 
@@ -112,13 +112,19 @@
 %              (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 at 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 at scalePage{%
 %    \end{macrocode}
@@ -244,6 +253,9 @@
     \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\AtBeginShipoutBox}\BL at r}%
     \BL at b\kern\z@
   }%
+  \ifBL at mirroring
+    \setbox\@tempboxa=\hbox{\scalebox{\BL at h}[\BL at v]{\box\@tempboxa}}%
+  \fi  
 %    \end{macrocode}
 %   Denormalize the shipout box
 %    \begin{macrocode}
@@ -355,12 +367,21 @@
 %
 %    \begin{macrocode}
 \newif\ifBL at noscale \BL at noscalefalse
+\newif\ifBL at mirroring \BL at mirroringfalse
 %    \end{macrocode}
 %
 %    \begin{macrocode}
 \define at key{BL@}{noscale}[true]{%
-  \csname BL at noscale#1\endcsname
+  \global\csname BL at noscale#1\endcsname
 }
+\define at key{BL@}{h-mirroring}[true]{%
+  \global\csname BL at mirroring#1\endcsname
+  \gdef\BL at h{-1}%
+}
+\define at key{BL@}{v-mirroring}[true]{%
+  \global\csname BL at mirroring#1\endcsname
+  \gdef\BL at v{-1}%
+}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -370,6 +391,8 @@
 \newcommand*\BL at o{}
 \newcommand*\BL at t{}
 \newcommand*\BL at b{}
+\newcommand*\BL at h{1}
+\newcommand*\BL at 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 at landscape
     \@tempdima=\tPaperWidth

Modified: trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2022-09-22 20:09:41 UTC (rev 64465)
+++ trunk/Master/texmf-dist/tex/latex/blowup/blowup.sty	2022-09-22 20:10:01 UTC (rev 64466)
@@ -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 at save@dimen[1]{%
@@ -81,6 +81,9 @@
     \hb at xt@\tPaperWidth{\BL at l\BL at resize{\box\AtBeginShipoutBox}\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{%
     \vskip-1in\moveright-1in\box\@tempboxa}%
 }
@@ -150,9 +153,18 @@
   \BL at getDimens{#1}{\tPaperWidth}{\tPaperHeight}%
 }
 \newif\ifBL at noscale \BL at noscalefalse
+\newif\ifBL at mirroring \BL at mirroringfalse
 \define at key{BL@}{noscale}[true]{%
-  \csname BL at noscale#1\endcsname
+  \global\csname BL at noscale#1\endcsname
 }
+\define at key{BL@}{h-mirroring}[true]{%
+  \global\csname BL at mirroring#1\endcsname
+  \gdef\BL at h{-1}%
+}
+\define at key{BL@}{v-mirroring}[true]{%
+  \global\csname BL at mirroring#1\endcsname
+  \gdef\BL at v{-1}%
+}
 \newcommand*\BL at l{}
 \newcommand*\BL at r{}
 \newcommand*\BL at i{}
@@ -159,6 +171,8 @@
 \newcommand*\BL at o{}
 \newcommand*\BL at t{}
 \newcommand*\BL at b{}
+\newcommand*\BL at h{1}
+\newcommand*\BL at v{1}
 \newcommand\BL at setPos[1]{%
   \def\BL at l{\hss}\def\BL at r{\hss}%
   \def\BL at o{\hss}\def\BL at i{\hss}%
@@ -207,6 +221,8 @@
   \fi
 }
 \newcommand*\blowUp[1]{%
+  \global\tPaperWidth=\paperwidth
+  \global\tPaperHeight=\paperheight
   \setkeys{BL@}{#1}%
   \ifBL at landscape
     \@tempdima=\tPaperWidth



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