From cc2a4a006a1634dffeabe8d8a10c97e7c01e849f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 24 Feb 2011 23:38:45 +0000 Subject: eso-pic (24feb11) git-svn-id: svn://tug.org/texlive/trunk@21515 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/eso-pic/showframe.sty | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/eso-pic') diff --git a/Master/texmf-dist/tex/latex/eso-pic/showframe.sty b/Master/texmf-dist/tex/latex/eso-pic/showframe.sty index 093a0c5f943..5bc0366f104 100644 --- a/Master/texmf-dist/tex/latex/eso-pic/showframe.sty +++ b/Master/texmf-dist/tex/latex/eso-pic/showframe.sty @@ -18,8 +18,11 @@ % option "noframe" you can draw the frames later only for a single % page with \AddToShipoutPicture*{\ShowFramePicture}. Another useful % options maybe eso-pic's "colorgrid", "grid" and "texcoord". +% +% \ShowFrameColor and \ShowFrameLinethickness can be used to change +% the frames. -\ProvidesPackage{showframe}[2008/12/09 v0.1h showframe (new impl., RN)] +\ProvidesPackage{showframe}[2011/02/24 v0.1i showframe (new impl., RN)] \newif\ifSF@frame\SF@frametrue @@ -29,9 +32,12 @@ \RequirePackage{eso-pic}[2002/10/30] +\newcommand*\ShowFrameColor{\normalcolor} +\newcommand*\ShowFrameLinethickness{.8pt} + \newcommand\ShowFramePicture{% \begingroup - \normalcolor\thicklines + \ShowFrameColor\linethickness{\ShowFrameLinethickness}% \AtPageLowerLeft{% \framebox(\LenToUnit{\paperwidth},\LenToUnit{\paperheight}){}}% \AtTextLowerLeft{% @@ -57,6 +63,6 @@ \endgroup } -\ifSF@frame\AddToShipoutPicture{\ShowFramePicture}\fi +\ifSF@frame\AddToShipoutPictureFG{\ShowFramePicture}\fi \endinput -- cgit v1.2.3