diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx | 98 |
1 files changed, 57 insertions, 41 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx b/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx index 7658b9ca33a..4c28abb9929 100644 --- a/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% 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 @@ -68,6 +68,8 @@ % %<*ignore> \begingroup + \catcode123=1 % + \catcode125=2 % \def\x{LaTeX2e}% \expandafter\endgroup \ifcase 0\ifx\install y1\fi\expandafter @@ -79,7 +81,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: atbegshi 2009/12/02 v1.10 At begin shipout hook (HO)} +\Msg{* Package: atbegshi 2010/03/01 v1.11 At begin shipout hook (HO)} \Msg{************************************************************************} \keepsilent @@ -90,7 +92,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 @@ -133,7 +135,8 @@ and the derived files \file{atbegshi-test3.tex}{\from{atbegshi.dtx}{test3}}% } -\obeyspaces +\catcode32=13\relax% active space +\let =\space% \Msg{************************************************************************} \Msg{*} \Msg{* To finish the installation you have to move the following} @@ -160,7 +163,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atbegshi.drv}% - [2009/12/02 v1.10 At begin shipout hook (HO)]% + [2010/03/01 v1.11 At begin shipout hook (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \begin{document} @@ -169,7 +172,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{1416} +% \CheckSum{1430} % % \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 @@ -190,7 +193,7 @@ and the derived files % \GetFileInfo{atbegshi.drv} % % \title{The \xpackage{atbegshi} package} -% \date{2009/12/02 v1.10} +% \date{2010/03/01 v1.11} % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}} % % \maketitle @@ -866,7 +869,7 @@ The last page. \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)] % \end{macrocode} % % \subsection{Catcodes} @@ -913,8 +916,10 @@ The last page. \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 % \end{macrocode} % @@ -924,12 +929,12 @@ The last page. \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{% @@ -948,13 +953,13 @@ The last page. % \end{macro} % % \begin{macrocode} -\newif\ifAtBegShi@Discarded +\ltx@newif\ifAtBegShi@Discarded % \end{macrocode} % \begin{macro}{\AtBeginShipoutDiscard} % \begin{macrocode} \AtBegShi@CheckDefinable\AtBeginShipoutDiscard \def\AtBeginShipoutDiscard{% - \deadcycles=\z@ + \deadcycles=\ltx@zero \global\AtBegShi@Discardedtrue } % \end{macrocode} @@ -988,7 +993,7 @@ X \global % \begin{macro}{\AtBegShi@Test} % \begin{macrocode} \def\AtBegShi@Test{% -X \ifdim\lastkern=\z@ +X \ifdim\lastkern=0pt % E \ifnum\AtBegShi@GroupLevel<\currentgrouplevel \expandafter\aftergroup \fi @@ -1040,19 +1045,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 @@ -1119,8 +1124,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 @@ -1159,10 +1164,17 @@ X \endgroup % \begin{macrocode} \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{}% } % \end{macrocode} @@ -1227,16 +1239,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 % \end{macrocode} @@ -1362,9 +1374,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 }% @@ -1452,7 +1464,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 }% @@ -1504,12 +1516,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 @@ -1670,7 +1682,7 @@ X \endgroup %<*test2> \input atbegshi.sty\relax \def\msg#{\immediate\write16} -\msg{File: atbegshi-test2.tex 2009/12/02 v1.10 Test file for plain-TeX} +\msg{File: atbegshi-test2.tex 2010/03/01 v1.11 Test file for plain-TeX} \def\testmsg#1#2{% \msg{}% \msg{*** Test with box (#1), expected page output [#2]}% hash-ok @@ -1767,7 +1779,7 @@ Hello World % \begin{macrocode} %<*test3> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{atbegshi-test3.tex}[2009/12/02 v1.10 Test file for LaTeX] +\ProvidesFile{atbegshi-test3.tex}[2010/03/01 v1.11 Test file for LaTeX] \RequirePackage{color} \pagecolor{yellow} \documentclass[a5paper,showtrims]{memoir} @@ -2068,6 +2080,10 @@ Hello World % \item % Test file fixed. % \end{Version} +% \begin{Version}{2010/03/01 v1.11} +% \item +% Compatibility with \iniTeX\ except for \cs{newbox}. +% \end{Version} % \end{History} % % \PrintIndex |