summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/turnthepage
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-31 23:44:11 +0000
committerKarl Berry <karl@freefriends.org>2011-01-31 23:44:11 +0000
commita290b093a3494711bf488174ea288037accc4e65 (patch)
treeeab942361073d768342a259ab0ebdd66441e9ff7 /Master/texmf-dist/tex/latex/turnthepage
parentd86b47d636e5e6dbd24303a9ec38e9d49bf4ef69 (diff)
turnthepage 1.2 (31jan11)
git-svn-id: svn://tug.org/texlive/trunk@21243 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/turnthepage')
-rw-r--r--Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty14
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty b/Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty
index 52157d3af97..d987e55f87b 100644
--- a/Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty
+++ b/Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty
@@ -1,13 +1,13 @@
-%% This is file `turnthepage.sty' v1.1 by Merciadri Luca.
+%% This is file `turnthepage.sty' v1.2 by Merciadri Luca.
% Thanks to Marc van Dongen for his help.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{turnthepage}[2011/01/21 Indicating to turn the page]
+\ProvidesPackage{turnthepage}[2011/01/31 Indicating to turn the page]
\PackageInfo{turnthepage}{This is turnthepage.}
\RequirePackage{atbegshi}
-\RequirePackage{refcount}
\RequirePackage{picture}
-\RequirePackage{lastpage}
+\RequirePackage{zref-abspage}
+\RequirePackage{zref-lastpage}
\DeclareOption{short}{%
\providecommand{\turnthepage}{/\ldots}
@@ -26,13 +26,13 @@
}
\DeclareOption{deutsch}{%
-\providecommand{\turnthepage}{\textit{Eine Seite drehen.}}
+\providecommand{\turnthepage}{\textit{Bitte wenden.}}
}
\AtBeginShipout{%
\AtBeginShipoutUpperLeft{%
- \ifodd\thepage%
- \ifnum\getpagerefnumber{LastPage}>\thepage%
+ \ifodd\c@page
+ \ifnum\zref@extract{LastPage}{abspage}>\c@abspage
\dimen1=1in
\advance\dimen1 by \textwidth
\advance\dimen1 by \oddsidemargin