summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eso-pic/showframe.sty
diff options
context:
space:
mode:
authorDr. Clea F. Rees <cfrees@imapmail.org>2008-12-09 23:19:21 +0000
committerDr. Clea F. Rees <cfrees@imapmail.org>2008-12-09 23:19:21 +0000
commitca1867b161ce8cc70c23d5b05ef8c3cc173f0f34 (patch)
tree148013b2685dc1675b5d0f6859ce9b7ea20ba087 /Master/texmf-dist/tex/latex/eso-pic/showframe.sty
parentf4433a09b9da3d27dbd7cd32717907614f5083d7 (diff)
eso-pic update 2008/12/09
git-svn-id: svn://tug.org/texlive/trunk@11572 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eso-pic/showframe.sty')
-rw-r--r--Master/texmf-dist/tex/latex/eso-pic/showframe.sty22
1 files changed, 12 insertions, 10 deletions
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
}