From a290b093a3494711bf488174ea288037accc4e65 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 31 Jan 2011 23:44:11 +0000 Subject: turnthepage 1.2 (31jan11) git-svn-id: svn://tug.org/texlive/trunk@21243 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/turnthepage/turnthepage.sty | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/latex/turnthepage') 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 -- cgit v1.2.3