diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/blowup/blowup.sty | 20 |
1 files changed, 18 insertions, 2 deletions
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 |