summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx53
1 files changed, 35 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx b/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx
index 05753a8c984..823cd77bf9e 100644
--- a/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx
@@ -1,6 +1,7 @@
% \iffalse meta-comment
%
-% Copyright (C) 2007, 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+% Copyright (C) 2007, 2008, 2009 by
+% Heiko Oberdiek <oberdiek@uni-freiburg.de>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -73,7 +74,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: atbegshi 2008/07/31 v1.9 At begin shipout hook (HO)}
+\Msg{* Package: atbegshi 2009/12/02 v1.10 At begin shipout hook (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -84,7 +85,8 @@
This is a generated file.
-Copyright (C) 2007, 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+Copyright (C) 2007, 2008, 2009 by
+ Heiko Oberdiek <oberdiek@uni-freiburg.de>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
@@ -148,7 +150,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{atbegshi.drv}%
- [2008/07/31 v1.9 At begin shipout hook (HO)]%
+ [2009/12/02 v1.10 At begin shipout hook (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -157,7 +159,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{1413}
+% \CheckSum{1416}
%
% \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
@@ -178,7 +180,7 @@ and the derived files
% \GetFileInfo{atbegshi.drv}
%
% \title{The \xpackage{atbegshi} package}
-% \date{2008/07/31 v1.9}
+% \date{2009/12/02 v1.10}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -301,6 +303,11 @@ and the derived files
% See \cs{AtBeginShipoutUpperLeft}. The difference is that the material
% is put in the foreground.
%
+% \begin{declcs}{AtBeginShipoutOriginalShipout} \M{box}
+% \end{declcs}
+% It stores the meaning of \cs{shipout} at the time this package
+% is loaded.
+%
% \subsection{Examples}
%
% \subsubsection{Example: circle in background}
@@ -849,7 +856,7 @@ The last page.
\fi
\expandafter\x\csname ver@atbegshi.sty\endcsname
\ProvidesPackage{atbegshi}%
- [2008/07/31 v1.9 At begin shipout hook (HO)]
+ [2009/12/02 v1.10 At begin shipout hook (HO)]
% \end{macrocode}
%
% \subsection{Catcodes}
@@ -1004,7 +1011,7 @@ X \endgroup
\else
\AtBegShi@First
\let\protect\AtBegShi@OrgProtect
- \AtBegShi@OrgShipout\box\AtBeginShipoutBox
+ \AtBeginShipoutOriginalShipout\box\AtBeginShipoutBox
\fi
\fi
}
@@ -1143,8 +1150,8 @@ X \endgroup
\AtBegShi@CheckDefinable\AtBeginShipoutInit
\def\AtBeginShipoutInit{%
\csname newbox\endcsname\AtBeginShipoutBox
- \AtBegShi@CheckDefinable\AtBegShi@OrgShipout
- \global\let\AtBegShi@OrgShipout\shipout
+ \AtBegShi@CheckDefinable\AtBeginShipoutOriginalShipout
+ \global\let\AtBeginShipoutOriginalShipout\shipout
\global\let\shipout\AtBegShi@Shipout
\gdef\AtBeginShipoutInit{}%
}
@@ -1318,8 +1325,8 @@ X \endgroup
\let\AtBegShi@found\relax
\ifx\shipout\AtBegShi@Crop@shipout
\def\AtBegShi@found{\shipout}%
- \else\ifx\AtBegShi@OrgShipout\AtBegShi@Crop@shipout
- \def\AtBegShi@found{\AtBegShi@OrgShipout}%
+ \else\ifx\AtBeginShipoutOriginalShipout\AtBegShi@Crop@shipout
+ \def\AtBegShi@found{\AtBeginShipoutOriginalShipout}%
\else\ifx\@EveryShipout@Org@Shipout\AtBegShi@Crop@shipout
\def\AtBegShi@found{\@EveryShipout@Org@Shipout}%
\else\ifx\GPTorg@shipout\AtBegShi@Crop@shipout
@@ -1399,8 +1406,8 @@ X \endgroup
\let\AtBegShi@found\relax
\ifx\shipout\AtBegShi@Everyshi@shipout
\def\AtBegShi@found{\shipout}%
- \else\ifx\AtBegShi@OrgShipout\AtBegShi@Everyshi@shipout
- \def\AtBegShi@found{\AtBegShi@OrgShipout}%
+ \else\ifx\AtBeginShipoutOriginalShipout\AtBegShi@Everyshi@shipout
+ \def\AtBegShi@found{\AtBeginShipoutOriginalShipout}%
\else\ifx\CROP@shipout\AtBegShi@Everyshi@shipout
\def\AtBegShi@found{\CROP@shipout}%
\else\ifx\GPTorg@shipout\AtBegShi@Everyshi@shipout
@@ -1498,8 +1505,8 @@ X \endgroup
\let\AtBegShi@found\relax
\ifx\shipout\AtBegShi@Memoir@shipout
\def\AtBegShi@found{\shipout}%
- \else\ifx\AtBegShi@OrgShipout\AtBegShi@Memoir@shipout
- \def\AtBegShi@found{\AtBegShi@OrgShipout}%
+ \else\ifx\AtBeginShipoutOriginalShipout\AtBegShi@Memoir@shipout
+ \def\AtBegShi@found{\AtBeginShipoutOriginalShipout}%
\else\ifx\CROP@shipout\AtBegShi@Memoir@shipout
\def\AtBegShi@found{\CROP@shipout}%
\else\ifx\GPTorg@shipout\AtBegShi@Memoir@shipout
@@ -1653,7 +1660,7 @@ X \endgroup
%<*test2>
\input atbegshi.sty\relax
\def\msg#{\immediate\write16}
-\msg{File: atbegshi-test2.tex 2008/07/31 v1.9 Test file for plain-TeX}
+\msg{File: atbegshi-test2.tex 2009/12/02 v1.10 Test file for plain-TeX}
\def\testmsg#1#2{%
\msg{}%
\msg{*** Test with box (#1), expected page output [#2]}% hash-ok
@@ -1750,7 +1757,7 @@ Hello World
% \begin{macrocode}
%<*test3>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{atbegshi-test3.tex}[2008/07/31 v1.9 Test file for LaTeX]
+\ProvidesFile{atbegshi-test3.tex}[2009/12/02 v1.10 Test file for LaTeX]
\RequirePackage{color}
\pagecolor{yellow}
\documentclass[a5paper,showtrims]{memoir}
@@ -1774,6 +1781,10 @@ Hello World
}
\usepackage{eso-pic}
\makeatletter
+\@ifundefined{@EveryShipout@Init}{%
+ \typeout{Test skipped}%
+ \@@end
+}{}
\@EveryShipout@Init
\let\@EveryShipout@Init\relax
\makeatother
@@ -2041,6 +2052,12 @@ Hello World
% \item
% No changes in package code.
% \end{Version}
+% \begin{Version}{2009/12/02 v1.10}
+% \item
+% \cs{AtBeginShipoutOriginalShipout} added.
+% \item
+% Test file fixed.
+% \end{Version}
% \end{History}
%
% \PrintIndex