diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty | 75 |
1 files changed, 42 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty b/Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty index 090004b4cf7..16602bcecb8 100644 --- a/Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty +++ b/Master/texmf-dist/tex/generic/oberdiek/atbegshi.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2008, 2009 by +%% Copyright (C) 2007-2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -94,7 +94,7 @@ \fi \expandafter\x\csname ver@atbegshi.sty\endcsname \ProvidesPackage{atbegshi}% - [2009/12/02 v1.10 At begin shipout hook (HO)] + [2010/03/01 v1.11 At begin shipout hook (HO)] \begingroup \catcode123 1 % { \catcode125 2 % } @@ -131,19 +131,21 @@ \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax + \input ltxcmds.sty\relax \else \RequirePackage{infwarerr}[2007/09/09]% + \RequirePackage{ltxcmds}[2010/03/01]% \fi \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname @ifdefinable\endcsname\relax \def\AtBegShi@CheckDefinable#1{% \ifcase\ifx#1\relax - \@ne + \ltx@one \else \ifx#1\@undefined - \@ne + \ltx@one \else - \z@ + \ltx@zero \fi \fi \errmessage{% @@ -158,10 +160,10 @@ \@ifdefinable{#1}{}% }% \fi -\newif\ifAtBegShi@Discarded +\ltx@newif\ifAtBegShi@Discarded \AtBegShi@CheckDefinable\AtBeginShipoutDiscard \def\AtBeginShipoutDiscard{% - \deadcycles=\z@ + \deadcycles=\ltx@zero \global\AtBegShi@Discardedtrue } \begingroup\expandafter\expandafter\expandafter\endgroup @@ -182,7 +184,7 @@ X \global \setbox\AtBeginShipoutBox=% } \def\AtBegShi@Test{% -X \ifdim\lastkern=\z@ +X \ifdim\lastkern=0pt % E \ifnum\AtBegShi@GroupLevel<\currentgrouplevel \expandafter\aftergroup \fi @@ -221,19 +223,19 @@ X \endgroup \def\@empty{}% \ifx\AtBegShi@HookFirst\@empty \else - \setbox\z@=\vbox{% + \setbox\ltx@zero=\vbox{% \begingroup \AtBegShi@HookFirst \endgroup }% - \wd\z@=\z@ - \ht\z@=\z@ - \dp\z@=\z@ + \wd\ltx@zero=0pt % + \ht\ltx@zero=0pt % + \dp\ltx@zero=0pt % \global\setbox\AtBeginShipoutBox=\vbox{% - \baselineskip\z@skip - \lineskip\z@skip - \lineskiplimit\z@ - \copy\z@ + \baselineskip 0pt\relax + \lineskip 0pt\relax + \lineskiplimit 0pt\relax + \copy\ltx@zero \copy\AtBeginShipoutBox }% \fi @@ -266,8 +268,8 @@ X \endgroup \expandafter\ifx\csname g@addto@macro\endcsname\relax \long\def\AtBegShi@AddTo#1#2{% \begingroup - \toks\z@\expandafter{#1#2}% - \xdef#1{\the\toks\z@}% + \toks\ltx@zero\expandafter{#1#2}% + \xdef#1{\the\toks\ltx@zero}% \endgroup }% \else @@ -291,10 +293,17 @@ X \endgroup } \AtBegShi@CheckDefinable\AtBeginShipoutInit \def\AtBeginShipoutInit{% - \csname newbox\endcsname\AtBeginShipoutBox - \AtBegShi@CheckDefinable\AtBeginShipoutOriginalShipout - \global\let\AtBeginShipoutOriginalShipout\shipout - \global\let\shipout\AtBegShi@Shipout + \ltx@IfUndefined{newbox}{% + \@PackageError{atbegshi}{% + \string\AtBeginShipoutInit\space failed\MessageBreak + because of missing \expandafter\string\csname newbox\endcsname + }\@ehc + }{% + \csname newbox\endcsname\AtBeginShipoutBox + \AtBegShi@CheckDefinable\AtBeginShipoutOriginalShipout + \global\let\AtBeginShipoutOriginalShipout\shipout + \global\let\shipout\AtBegShi@Shipout + }% \gdef\AtBeginShipoutInit{}% } \begingroup\expandafter\expandafter\expandafter\endgroup @@ -345,16 +354,16 @@ X \endgroup \else \endgroup \def\AtBegShi@BeginPicture{% - \setbox0=\hbox\bgroup + \setbox\ltx@zero=\hbox\bgroup \begingroup \ignorespaces }% \def\AtBegShi@EndPicture{% \endgroup \egroup - \ht0=0pt\relax - \dp0=0pt\relax - \copy0 % + \ht\ltx@zero=0pt\relax + \dp\ltx@zero=0pt\relax + \copy\ltx@zero }% \fi \def\AtBeginShipoutUpperLeft#1{% @@ -460,9 +469,9 @@ X \endgroup \CROP@@ship }% \def\CROP@shiplist{% - \lineskip\z@ - \lineskiplimit\z@ - \baselineskip\z@ + \lineskip 0pt\relax + \lineskiplimit 0pt\relax + \baselineskip 0pt\relax \CROP@kernel \box\AtBeginShipoutBox }% @@ -544,7 +553,7 @@ X \endgroup \def\AtBegShi@Everyshi@Output{% \ifvoid\AtBeginShipoutBox \else - \global\setbox\@cclv\box\AtBeginShipoutBox + \global\setbox\ltx@cclv\box\AtBeginShipoutBox \expandafter\@EveryShipout@Output \fi }% @@ -590,12 +599,12 @@ X \endgroup }% \ifx\AtBegShi@Memoir@shipi\mem@shipi \ifcase\ifx\AtBegShi@Memoir@shipiiA\mem@shipii - \z@ + \ltx@zero \else \ifx\AtBegShi@Memoir@shipiiB\mem@shipii - \z@ + \ltx@zero \else - \@ne + \ltx@one \fi \fi \let\AtBegShi@found\relax |