diff options
author | Karl Berry <karl@freefriends.org> | 2011-02-24 23:38:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-02-24 23:38:45 +0000 |
commit | cc2a4a006a1634dffeabe8d8a10c97e7c01e849f (patch) | |
tree | ebc8e70fd20add8d3673e7177c8d2ef96ad2a238 /Master | |
parent | afdae554d7d20ab50c7757d575769f9e24db2068 (diff) |
eso-pic (24feb11)
git-svn-id: svn://tug.org/texlive/trunk@21515 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/tex/latex/eso-pic/showframe.sty | 12 |
1 files changed, 9 insertions, 3 deletions
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 |