diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/turnthepage')
-rw-r--r-- | Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty | 14 |
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 |