diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-18 18:29:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-18 18:29:21 +0000 |
commit | e57b5ddc88de53d52adec85044dfe5eab9a2f697 (patch) | |
tree | 48b155fc4af3df95870fbdd7d9bdc1b178902d49 /Master/texmf-dist/source/latex/eso-pic | |
parent | 98fd6239a0d381a229dac26511316eccff74c162 (diff) |
eso-pic update (18jul06)
git-svn-id: svn://tug.org/texlive/trunk@1875 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/eso-pic')
-rw-r--r-- | Master/texmf-dist/source/latex/eso-pic/eso-pic.dtx | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/Master/texmf-dist/source/latex/eso-pic/eso-pic.dtx b/Master/texmf-dist/source/latex/eso-pic/eso-pic.dtx index e9c2e3f7078..f551b28c65f 100644 --- a/Master/texmf-dist/source/latex/eso-pic/eso-pic.dtx +++ b/Master/texmf-dist/source/latex/eso-pic/eso-pic.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % -% Copyright (C) 1998-2002 by Rolf Niepraschk <niepraschk@ptb.de> -% -------------------------------------------------- +% Copyright (C) 1998-2005 by Rolf Niepraschk <Rolf.Niepraschk@ptb.de> +% ------------------------------------------------------------------- % % This file may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.2 @@ -12,16 +12,20 @@ % % and version 1.2 or later is part of all distributions of LaTeX % version 1999/12/01 or later. +% and version 1.3 or later is part of all distributions of LaTeX +% version 2003/12/01 or later. +% +% This work has the LPPL maintenance status "author-maintained". % % Please send error reports and suggestions for improvements to -% Rolf Niepraschk <niepraschk@ptb.de>. +% Rolf Niepraschk <Rolf.Niepraschk@ptb.de>. % % \fi % % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{eso-pic} -%<package> [2002/11/16 v1.1b eso-pic (RN)] +%<package> [2006/07/14 v1.1d eso-pic (RN)] % %<*driver> \documentclass[a4paper]{ltxdoc} @@ -33,7 +37,7 @@ %</driver> % \fi % -% \CheckSum{637} +% \CheckSum{619} % % \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 @@ -55,14 +59,14 @@ % =================================================================== % @LaTeX-package-file{ % author = {Rolf Niepraschk}, -% version = "v1.1b", -% date = "16 November 2002", +% version = "v1.1d", +% date = "14 July 2006", % filename = "eso-pic.sty", % address = "", % telephone = "", -% email = "niepraschk@ptb.de", +% email = "Rolf.Niepraschk@ptb.de", % codetable = "ISO/ASCII", -% keywords = "LaTeX2e, \shipout, picture", +% keywords = "LaTeX2e, \shipout, picture", % dependences = "everyshi", % supported = "yes", % docstring = "LaTeX package which makes it easy to add some @@ -100,7 +104,7 @@ % % \title{The \pkgname{eso-pic} package\thanks{This document % corresponds to \pkgname{eso-pic}~\fileversion, dated \filedate.}} -% \author{Rolf Niepraschk \\ \texttt{niepraschk@ptb.de}} +% \author{Rolf Niepraschk \\ \texttt{Rolf.Niepraschk@ptb.de}} % % \date{} % @@ -118,6 +122,7 @@ % \LaTeX's shipout routine. % % \section{Usage} +% See also the example \LaTeX\ documents |eso-ex?.tex|. % % \subsection{Basic commands for adding \LaTeX{} stuff to the page background} % \DescribeMacro{\AddToShipoutPicture} All the picture commands which are @@ -139,9 +144,9 @@ % command. % % \DescribeMacro{\gridSetup} -% |\gridSetup[|\meta{gridunitname}|]||{|\meta{gridunit}|}|^^A -% |{|\meta{labelfactor}|}||{|\meta{griddelta}|}| |{|\meta{gridDelta}|}|^^A -% |{|\meta{gap}|}|. For details see the implementation section.\par +% \cmd{\gridSetup}\oarg{gridunitname}\marg{gridunit}\marg{labelfactor}^^A +% \marg{griddelta} \marg{gridDelta}\marg{gap}. For details see the +% implementation section.\par % \DescribeMacro{\AtPageUpperLeft} % \DescribeMacro{\AtPageLowerLeft} % \DescribeMacro{\AtPageCenter} @@ -190,18 +195,16 @@ \RequirePackage{everyshi} % \end{macrocode} % \begin{macro}{\LenToUnit} +% \changes{v1.0d}{2006/07/14}{Using \cmd{\providecommand} instead of +% \cmd{\newcommand} for \cmd{\LenToUnit}} % \begin{macrocode} -\newcommand\LenToUnit[1]{#1\@gobble} +\providecommand*\LenToUnit[1]{#1\@gobble} % \end{macrocode} % \end{macro} % \begin{macro}{\AtPageUpperLeft} - % \begin{macrocode} \newcommand\AtPageUpperLeft[1]{% - \begingroup - \@tempdima=0pt\relax\@tempdimb=\ESO@yoffsetI\relax - \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){#1}% - \endgroup + \put(0,\LenToUnit{\ESO@yoffsetI}){#1}% } % \end{macrocode} % \end{macro} @@ -303,7 +306,7 @@ \advance\@tempdima\stockwidth% \fi\fi% \advance\@tempdimb\trimtop}% - \unitlength=1pt% + \unitlength=\p@% \global\setbox\@cclv\vbox{% \vbox{\let\protect\relax \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)% @@ -348,7 +351,7 @@ \newcommand\ESO@color[1]{} \newcommand\ESO@colorbox[3][]{% \begingroup - \fboxrule=0pt\fbox{#3}% + \fboxrule=\z@\fbox{#3}% \endgroup } % \end{macrocode} @@ -381,7 +384,7 @@ \else \def\@tempb{pt} \ifx\@tempa\@tempb - \gridSetup[\@tempa]{1pt}{1}{10}{50}{2} + \gridSetup[\@tempa]{\p@}{1}{10}{50}{2} \else \def\@tempb{in} \ifx\@tempa\@tempb @@ -421,28 +424,24 @@ \@tempcnta\@tempdima\advance\@tempcnta\@ne} % \end{macrocode} % \end{macro} +% \changes{v1.1c}{2005/12/24}{Remove the disadvantageous check of +% `pdfTeX'. Now using with Xe\LaTeX\ should be possible.} % \begin{macrocode} \AtBeginDocument{% \IfFileExists{color.sty} {% \RequirePackage{color} \let\ESO@color=\color\let\ESO@colorbox=\colorbox - \let\ESO@fcolorbox=\fcolorbox + \let\ESO@fcolorbox=\fcolorbox }{} + \ESO@dvipsfalse \@ifundefined{Gin@driver}{}% {% \ifx\Gin@driver\@empty\else% \filename@parse{\Gin@driver}\def\reserved@a{dvips}% \ifx\filename@base\reserved@a\ESO@dvipstrue\fi% \fi - }% - \ifx\pdfoutput\undefined\else - \ifx\pdfoutput\relax\else - \ifcase\pdfoutput\else - \ESO@dvipsfalse% - \fi - \fi - \fi + }% \ifESO@dvips\def\@tempb{eepic}\else\def\@tempb{epic}\fi \def\@tempa{dotted}%\def\ESO@gap{\LenToUnit{6\@wholewidth}}% \ifx\@tempa\ESO@subgridstyle @@ -461,10 +460,10 @@ \fi } \ifESO@texcoord - \def\ESO@yoffsetI{0pt}\def\ESO@yoffsetII{-\paperheight} + \def\ESO@yoffsetI{\z@}\def\ESO@yoffsetII{-\paperheight} \edef\ESO@griddeltaY{-\ESO@griddelta}\edef\ESO@gridDeltaY{-\ESO@gridDelta} \else - \def\ESO@yoffsetI{\paperheight}\def\ESO@yoffsetII{0pt} + \def\ESO@yoffsetI{\paperheight}\def\ESO@yoffsetII{\z@} \edef\ESO@griddeltaY{\ESO@griddelta}\edef\ESO@gridDeltaY{\ESO@gridDelta} \fi % \end{macrocode} |