From ca1867b161ce8cc70c23d5b05ef8c3cc173f0f34 Mon Sep 17 00:00:00 2001 From: "Dr. Clea F. Rees" Date: Tue, 9 Dec 2008 23:19:21 +0000 Subject: eso-pic update 2008/12/09 git-svn-id: svn://tug.org/texlive/trunk@11572 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/eso-pic/showframe.sty | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/tex/latex/eso-pic/showframe.sty') diff --git a/Master/texmf-dist/tex/latex/eso-pic/showframe.sty b/Master/texmf-dist/tex/latex/eso-pic/showframe.sty index af62b075e60..04b11d60ce4 100644 --- a/Master/texmf-dist/tex/latex/eso-pic/showframe.sty +++ b/Master/texmf-dist/tex/latex/eso-pic/showframe.sty @@ -7,7 +7,7 @@ % page with \AddToShipoutPicture*{\ShowFramePicture}. Another useful % options maybe eso-pic's "colorgrid", "grid" and "texcoord". -\ProvidesPackage{showframe}[2005/12/18 v0.1g showframe (new impl., RN)] +\ProvidesPackage{showframe}[2008/12/09 v0.1h showframe (new impl., RN)] \newif\ifSF@frame\SF@frametrue @@ -19,27 +19,29 @@ \newcommand\ShowFramePicture{% \begingroup - \normalcolor\thicklines% + \normalcolor\thicklines + \AtPageLowerLeft{% + \framebox(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){}}% \AtTextLowerLeft{% - \framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}}% + \framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}}% \AtTextUpperLeft{% \put(0,\LenToUnit{\headsep}){% - \framebox(\LenToUnit{\textwidth},\LenToUnit{\headheight}){}}}% + \framebox(\LenToUnit{\textwidth},\LenToUnit{\headheight}){}}}% \AtTextLowerLeft{% \put(0,\LenToUnit{-\footskip}){% \line(1,0){\LenToUnit{\textwidth}}}}% \AtTextLowerLeft{% \@tempdima=\textwidth\advance\@tempdima\marginparsep% - \if@twoside% - \ifodd\c@page\else% + \if@twoside + \ifodd\c@page\else \if@mparswitch - \@tempdima=-\marginparsep\advance\@tempdima-\marginparwidth% + \@tempdima=-\marginparsep\advance\@tempdima-\marginparwidth \fi - \fi% - \fi% + \fi + \fi \put(\LenToUnit{\@tempdima},0)% {\framebox(\LenToUnit{\marginparwidth},\LenToUnit{\textheight}){}}% - }% + }% \endgroup } -- cgit v1.2.3