summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/tex/latex/eso-pic/showframe.sty12
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