diff options
author | Karl Berry <karl@freefriends.org> | 2007-04-22 17:14:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-04-22 17:14:12 +0000 |
commit | 3a0595042f7a56658ecc4a51fe68f2ab4312bc49 (patch) | |
tree | 4a9226c3e5b6e27b47ca17b9afc98b5d1d1d7601 /Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty | |
parent | 64e0b27d1ebe077904838f130fc85b3b1981df2b (diff) |
atbegshi 1.2 (oberdiek 20apr07)
git-svn-id: svn://tug.org/texlive/trunk@4170 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty b/Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty index 7473f84b469..3bc3af30c1e 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/atenddvi.sty @@ -28,36 +28,35 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{atenddvi}% - [2007/03/20 v1.0 At end DVI hook (HO)]% + [2007/04/17 v1.1 At end DVI hook (HO)]% \RequirePackage{zref-abspage,zref-lastpage}[2007/03/19] -\RequirePackage{everyshi} +\RequirePackage{atbegshi} \let\AtEndDvi@Hook\@empty \newcommand*{\AtEndDvi}{% \g@addto@macro\AtEndDvi@Hook } -\def\AtEndDvi@EveryShipout{% +\def\AtEndDvi@AtBeginShipout{% \begingroup - \set@typeset@protect \ifnum\value{abspage}=1 % \zref@refused{LastPage}% \fi \ifnum\zref@extractdefault{LastPage}{abspage}{0}=\value{abspage}% \xdef\AtEndDvi@LastPage{\number\value{abspage}}% - \global\setbox\@cclv=\vbox{% + \global\setbox\AtBeginShipoutBox=\vbox{% \hbox{% - \box\@cclv - \setbox\@cclv=\hbox{% + \box\AtBeginShipoutBox + \setbox\AtBeginShipoutBox=\hbox{% \begingroup \AtEndDvi@Hook \endgroup }% - \wd\@cclv=\z@ - \ht\@cclv=\z@ - \dp\@cclv=\z@ - \box\@cclv + \wd\AtBeginShipoutBox=\z@ + \ht\AtBeginShipoutBox=\z@ + \dp\AtBeginShipoutBox=\z@ + \box\AtBeginShipoutBox }% }% - \global\let\AtEndDvi@EveryShipout\@empty + \global\let\AtEndDvi@AtBeginShipout\@empty \global\let\AtEndDvi\@gobble \let\on@line\@empty \PackageInfo{atenddvi}{Last page = \AtEndDvi@LastPage}% @@ -65,7 +64,7 @@ \endgroup } \def\AtEndDvi@AtBeginDocument{% - \EveryShipout{\AtEndDvi@EveryShipout}% + \AtBeginShipout{\AtEndDvi@AtBeginShipout}% \if@filesw \immediate\write\@mainaux{% \string\providecommand\string\AtEndDvi@Check{}% |