diff options
author | Karl Berry <karl@freefriends.org> | 2008-07-22 23:47:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-07-22 23:47:55 +0000 |
commit | 2cf5ab3f06cded486b146abe9d7a8de6ee5af96b (patch) | |
tree | 05dce99ba2d4e72563f69a692af8052900cba579 /Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx | |
parent | 5082a3ce626f764158387dec191dee6ce4d88040 (diff) |
oberdiek update
git-svn-id: svn://tug.org/texlive/trunk@9711 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx | 60 |
1 files changed, 50 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx b/Master/texmf-dist/source/latex/oberdiek/atbegshi.dtx index 48f60ff346f..a2067710dcf 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 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +% Copyright (C) 2007, 2008 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 @@ -72,7 +72,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: atbegshi 2007/09/09 v1.6 At begin shipout hook (HO)} +\Msg{* Package: atbegshi 2008/07/19 v1.8 At begin shipout hook (HO)} \Msg{************************************************************************} \keepsilent @@ -83,7 +83,7 @@ This is a generated file. -Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +Copyright (C) 2007, 2008 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 @@ -146,7 +146,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{atbegshi.drv}% - [2007/09/09 v1.6 At begin shipout hook (HO)]% + [2008/07/19 v1.8 At begin shipout hook (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2007/11/11] \begin{document} @@ -155,7 +155,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{1382} +% \CheckSum{1408} % % \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 @@ -176,7 +176,7 @@ and the derived files % \GetFileInfo{atbegshi.drv} % % \title{The \xpackage{atbegshi} package} -% \date{2007/09/09 v1.6} +% \date{2008/07/19 v1.8} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -274,12 +274,17 @@ and the derived files % \begin{declcs}{AtBeginShipoutUpperLeft} \M{background material} % \end{declcs} % This is a macro that puts material in the background of -% box \cs{AtBeginShipoutbox}. +% box \cs{AtBeginShipoutBox}. % The \meta{background material} is set in an \cs{hbox}, the % reference point is the upper left corner of the output page. % In case of \pdfTeX\ in PDF mode, the settings of % \cs{pdfhorigin} and \cs{pdfvorigin} are respected. % +% The macro \cs{AtBeginShipoutUpperLeft} is intended to be used +% in one of the hook setting macros, such as +% \cs{AtBeginShipout}, \cs{AtBeginShipoutFirst}, or +% \cs{AtBeginShipoutNext}. +% % For \LaTeX\ users the \meta{background material} is set % inside a \texttt{picture} environment: % \begin{quote} @@ -289,6 +294,11 @@ and the derived files % |\end{picture}| % \end{quote} % +% \begin{declcs}{AtBeginShipoutUpperLeftForeground} \M{foreground material} +% \end{declcs} +% See \cs{AtBeginShipoutUpperLeft}. The difference is that the material +% is put in the foreground. +% % \subsection{Example} % % In this example we put a circle in the background in the middle @@ -802,7 +812,7 @@ The last page. \fi \expandafter\x\csname ver@atbegshi.sty\endcsname \ProvidesPackage{atbegshi}% - [2007/09/09 v1.6 At begin shipout hook (HO)] + [2008/07/19 v1.8 At begin shipout hook (HO)] % \end{macrocode} % % \subsection{Catcodes} @@ -1196,6 +1206,28 @@ X \endgroup } % \end{macrocode} % +% \begin{macrocode} +\def\AtBeginShipoutUpperLeftForeground#1{% + \global\setbox\AtBeginShipoutBox=\hbox to \wd\AtBeginShipoutBox{% + \rlap{% + \copy\AtBeginShipoutBox + }% + \rlap{% + \kern-\AtBegShi@horigin\relax + \vbox to 0pt{% + \kern-\AtBegShi@vorigin\relax + \kern-\ht\AtBeginShipoutBox + \AtBegShi@BeginPicture + #1% + \AtBegShi@EndPicture + \vss + }% + }% + \hss + }% +} +% \end{macrocode} +% % \subsection{Patches} % % Patches for \LaTeX\ packages that redefine \cs{shipout}. @@ -1584,7 +1616,7 @@ X \endgroup %<*test2> \input atbegshi.sty\relax \def\msg#{\immediate\write16} -\msg{File: atbegshi-test2.tex 2007/09/09 v1.6 Test file for plain-TeX} +\msg{File: atbegshi-test2.tex 2008/07/19 v1.8 Test file for plain-TeX} \def\testmsg#1#2{% \msg{}% \msg{*** Test with box (#1), expected page output [#2]}% hash-ok @@ -1681,7 +1713,7 @@ Hello World % \begin{macrocode} %<*test3> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{atbegshi-test3.tex}[2007/09/09 v1.6 Test file for LaTeX] +\ProvidesFile{atbegshi-test3.tex}[2008/07/19 v1.8 Test file for LaTeX] \RequirePackage{color} \pagecolor{yellow} \documentclass[a5paper,showtrims]{memoir} @@ -1957,6 +1989,14 @@ Hello World % \item % Catcode section rewritten. % \end{Version} +% \begin{Version}{2008/07/18 v1.7} +% \item +% Documentation of \cs{AtBeginShipoutUpperLeft} fixed and extended. +% \end{Version} +% \begin{Version}{2008/07/19 v1.8} +% \item +% \cs{AtBeginShipoutUpperLeftForeground} added. +% \end{Version} % \end{History} % % \PrintIndex |