diff options
author | Karl Berry <karl@freefriends.org> | 2015-07-22 23:00:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-07-22 23:00:41 +0000 |
commit | af5d616299af5e2cf9a727ba04285bc1cb9de3e1 (patch) | |
tree | 7665dc45722449543a24392fc6b764689e6590f9 /Master/texmf-dist/tex | |
parent | 276fd5507c7ac807f3da11501d4f3323e4edc3a4 (diff) |
eso-pic (22jul15)
git-svn-id: svn://tug.org/texlive/trunk@37925 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/eso-pic/eso-pic.sty | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/eso-pic/eso-pic.sty b/Master/texmf-dist/tex/latex/eso-pic/eso-pic.sty index 8bc696ce6f5..13613813e3e 100644 --- a/Master/texmf-dist/tex/latex/eso-pic/eso-pic.sty +++ b/Master/texmf-dist/tex/latex/eso-pic/eso-pic.sty @@ -6,7 +6,7 @@ %% %% eso-pic.dtx (with options: `package') %% -%% Copyright (C) 1998-2010 +%% Copyright (C) 1998-2015 %% Rolf Niepraschk <Rolf.Niepraschk@gmx.de> %% %% This file may be distributed and/or modified under the @@ -23,7 +23,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{eso-pic} - [2015/07/14 v2.0f eso-pic (RN)] + [2015/07/21 v2.0g eso-pic (RN)] \RequirePackage{atbegshi} \providecommand*\LenToUnit[1]{\strip@pt\dimexpr#1*\p@/\unitlength} \newcommand\ESO@isMEMOIR[2]{#2} @@ -125,6 +125,7 @@ \newcommand{\ESO@HookIIIBG}{} \newcommand{\ESO@HookIFG}{} \newcommand{\ESO@HookIIFG}{} +\newcommand{\ESO@HookIIIFG}{} \newcommand{\ESO@HookI}{} \newcommand{\ESO@HookII}{} \newcommand{\ESO@HookIII}{} @@ -162,7 +163,7 @@ }% \AtBeginShipoutUpperLeftForeground{% \put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimb}){% - \ESO@HookIFG\ESO@HookIIFG + \ESO@HookIFG\ESO@HookIIFG\ESO@HookIIIFG \global\let\ESO@HookIIFG\@empty }% }% @@ -178,7 +179,7 @@ }% \AtBeginShipoutUpperLeftForeground{% \put(0,\LenToUnit{\ESO@yoffsetI}){% - \ESO@HookIFG\ESO@HookIIFG + \ESO@HookIFG\ESO@HookIIFG\ESO@HookIIIFG \global\let\ESO@HookIIFG\@empty }% }% @@ -186,7 +187,7 @@ } \RequirePackage{keyval} \newif\ifESO@dvips\ESO@dvipsfalse \newif\ifESO@grid\ESO@gridfalse -\newif\ifESO@texcoord\ESO@texcoordfalse +\newif\ifESO@texcoord\ESO@texcoordfalse \newif\ifESO@gridBG\ESO@gridBGfalse \newcommand*\ESO@gridunitname{} \newcommand*\ESO@gridunit{} \newcommand*\ESO@labelfactor{} @@ -220,6 +221,7 @@ \define@key{ESO}{dvips}[true]{\csname ESO@dvips#1\endcsname} \define@key{ESO}{grid}[true]{\csname ESO@grid#1\endcsname \setkeys{ESO}{gridcolor=black,subgridcolor=black}} +\define@key{ESO}{gridBG}[true]{\csname ESO@gridBG#1\endcsname} \define@key{ESO}{colorgrid}[true]{\csname ESO@grid#1\endcsname \setkeys{ESO}{gridcolor=red,subgridcolor=green}} \define@key{ESO}{gridcolor}{\def\ESO@gridcolor{#1}} @@ -356,7 +358,13 @@ \normalcolor% \endgroup } -\ifESO@grid\g@addto@macro\ESO@HookIFG{\ESO@gridpicture}\fi +\ifESO@grid + \ifESO@gridBG + \g@addto@macro\ESO@HookIIIBG{\ESO@gridpicture}% + \else + \g@addto@macro\ESO@HookIIIFG{\ESO@gridpicture}% + \fi +\fi \endinput %% %% End of file `eso-pic.sty'. |