diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-20 19:54:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-20 19:54:38 +0000 |
commit | 1c07e610bd4fe2c469bca64a1218b295ac03301d (patch) | |
tree | 9a1d5ef524e7f3ac4189519541d72fe2ad3cc572 /Master/texmf-dist/tex | |
parent | 93afd31b3d1a970cd5f584038bc1a3224432f41a (diff) |
blowup (20sep22)
git-svn-id: svn://tug.org/texlive/trunk@64454 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/blowup/blowup.sty | 76 |
1 files changed, 42 insertions, 34 deletions
diff --git a/Master/texmf-dist/tex/latex/blowup/blowup.sty b/Master/texmf-dist/tex/latex/blowup/blowup.sty index 2c9dcf66dd8..3fde596862f 100644 --- a/Master/texmf-dist/tex/latex/blowup/blowup.sty +++ b/Master/texmf-dist/tex/latex/blowup/blowup.sty @@ -4,23 +4,24 @@ %% %% The original source files were: %% -%% blowup.dtx (with options: `package') +%% blowup.dtx (with options: `blowup.sty,package') %% -%% Copyright (C) 2007, 2017- -%% Rolf Niepraschk, Rolf.Niepraschk@gmx.de +%% IMPORTANT NOTICE: %% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2003/12/01 or later. +%% For the copyright see the source file. %% -%% This work has the LPPL maintenance status "author-maintained". +%% Any modified versions of this file must be renamed +%% with new filenames distinct from blowup.sty. %% -\NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{blowup}[2018/01/02 1.0 Document Scaling (RN)] +%% For distribution of the original source see the terms +%% for copying and modification in the file blowup.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% 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)] \RequirePackage{atbegshi,keyval,graphics} \@ifpackageloaded{typearea}{}{% \newcommand*\BL@save@dimen[1]{% @@ -31,6 +32,8 @@ \csname #1\endcsname\csname BL@#1\endcsname}% }% \newcommand*\BL@restore@dimens{}% + \BL@save@dimen{paperwidth}% + \BL@save@dimen{paperheight}% \BL@save@dimen{textwidth}% \BL@save@dimen{textheight}% \BL@save@dimen{evensidemargin}% @@ -42,14 +45,15 @@ \BL@save@dimen{footskip}% \BL@save@dimen{baselineskip}% \let\l@addto@macro=\relax - \RequirePackage{typearea}% + \RequirePackage[pagesize=false]{typearea}% + \expandafter\let\csname ver@typearea.sty\endcsname=\relax \BL@restore@dimens \let\BL@save@dimen=\relax \let\BL@restore@dimens=\relax } \providecommand*\vb@xt@{\vbox to} -\newlength\tPaperWidth \tPaperWidth=\paperwidth -\newlength\tPaperHeight \tPaperHeight=\paperheight +\newlength\tPaperWidth +\newlength\tPaperHeight \newlength\oPaperWidth \oPaperWidth=\z@ \newlength\oPaperHeight \oPaperHeight=\z@ \newcommand*\BL@resize[1]{#1} @@ -196,10 +200,10 @@ \define@key{BL@}{landscape}[true]{% \csname BL@landscape#1\endcsname } -\newcommand*\BL@pageInit{} +\newcommand*\BL@setup{} \define@key{BL@}{onepage}[true]{% \csname if#1\endcsname - \def\BL@pageInit{\gdef\shipout{\setbox\@tempboxa=}}% + \def\BL@setup{\gdef\shipout{\deadcycles\z@\setbox\@tempboxa=}}% \fi } \newcommand*\blowUp[1]{% @@ -209,43 +213,47 @@ \global\tPaperWidth=\tPaperHeight \global\tPaperHeight=\@tempdima \fi - \AtBeginShipout{\BL@scalePage}% + \AtBeginDocument{% + \AtBeginDvi{\BL@pagesize@code{\tPaperWidth}{\tPaperHeight}}% + \AtBeginShipout{\BL@setup\BL@scalePage} + }% \gdef\blowUp##1{% \PackageWarning{blowup}{Only the first call of `\string\blowUp' \MessageBreak is effective}}% } -\AtBeginShipout{\BL@pageInit} \@onlypreamble\blowUp -\AtBeginDocument{% - \BL@pagesize@specials{\tPaperWidth}{\tPaperHeight}% -} -\RequirePackage{ifxetex,ifluatex,ifpdf,ifvtex} -\newcommand*\BL@pagesize@specials[2]{} +\newcommand*\BL@pagesize@code[2]{} +\RequirePackage{iftex} \ifluatex \PackageInfo{blowup}{Generating code for LuaTeX}% \@ifundefined{pagewidth}{% - \def\BL@pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}% + \def\BL@pagesize@code#1#2{\global\pdfpagewidth=#1 % + \global\pdfpageheight=#2}% }{% - \def\BL@pagesize@specials#1#2{\pagewidth=#1 \pageheight=#2}% + \def\BL@pagesize@code#1#2{\global\pagewidth=#1 % + \global\pageheight=#2}% } \else \ifxetex \PackageInfo{blowup}{Generating code for XeTeX}% - \def\BL@pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 % - \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}% - \pdfpagewidth=#1 \pdfpageheight=#2}% + \def\BL@pagesize@code#1#2{\global\pdfpagewidth=#1 % + \global\pdfpageheight=#2}% \else \ifvtex \PackageInfo{blowup}{Generating code for VTeX}% - \def\BL@pagesize@specials#1#2{\mediawidth=#1 \mediaheight=#2}% + \def\BL@pagesize@code#1#2{\global\mediawidth=#1 % + \global\mediaheight=#2}% \else \ifpdf \PackageInfo{blowup}{Generating code for pdfTeX}% - \def\BL@pagesize@specials#1#2{\pdfpagewidth=#1 \pdfpageheight=#2}% + \def\BL@pagesize@code#1#2{\global\pdfpagewidth=#1 % + \global\pdfpageheight=#2}% \else \PackageInfo{blowup}{Generating code for dvips}% - \def\BL@pagesize@specials#1#2{\@tempdima=#1 \@tempdimb=#2 % - \AtBeginDvi{\special{papersize=\the\@tempdima,\the\@tempdimb}}}% + \def\BL@pagesize@code#1#2{% + \@tempdima=#1 \@tempdimb=#2 % + \special{papersize=\the\@tempdima,\the\@tempdimb}% + }% \fi \fi \fi |