summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting')
-rwxr-xr-xMaster/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting100
1 files changed, 50 insertions, 50 deletions
diff --git a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
index 52157d3af97..a2069690978 100755
--- a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
+++ b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
@@ -1,50 +1,50 @@
-%% This is file `turnthepage.sty' v1.1 by Merciadri Luca.
-% Thanks to Marc van Dongen for his help.
-
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{turnthepage}[2011/01/21 Indicating to turn the page]
-\PackageInfo{turnthepage}{This is turnthepage.}
-\RequirePackage{atbegshi}
-\RequirePackage{refcount}
-\RequirePackage{picture}
-\RequirePackage{lastpage}
-
-\DeclareOption{short}{%
-\providecommand{\turnthepage}{/\ldots}
-}
-
-\DeclareOption{english}{%
-\providecommand{\turnthepage}{\textit{Turn the page.}}
-}
-
-\DeclareOption{francais}{%
-\providecommand{\turnthepage}{\textit{Tournez la page.}}
-}
-
-\DeclareOption{nederlands}{%
-\providecommand{\turnthepage}{\textit{Sla de pagina om.}}
-}
-
-\DeclareOption{deutsch}{%
-\providecommand{\turnthepage}{\textit{Eine Seite drehen.}}
-}
-
-\AtBeginShipout{%
-\AtBeginShipoutUpperLeft{%
- \ifodd\thepage%
- \ifnum\getpagerefnumber{LastPage}>\thepage%
- \dimen1=1in
- \advance\dimen1 by \textwidth
- \advance\dimen1 by \oddsidemargin
- \dimen3=1in
- \advance\dimen3 by \topmargin
- \advance\dimen3 by \headheight
- \advance\dimen3 by \headsep
- \advance\dimen3 by \textheight
- \advance\dimen3 by \footskip
- \put(\dimen1,-\dimen3){\llap{\turnthepage}}%
- \fi\fi%
-}}
-
-\ProcessOptions
-\relax
+%% This is file `turnthepage.sty' v1.2 by Merciadri Luca.
+% Thanks to Marc van Dongen for his help.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{turnthepage}[2011/01/31 Indicating to turn the page]
+\PackageInfo{turnthepage}{This is turnthepage.}
+\RequirePackage{atbegshi}
+\RequirePackage{picture}
+\RequirePackage{zref-abspage}
+\RequirePackage{zref-lastpage}
+
+\DeclareOption{short}{%
+\providecommand{\turnthepage}{/\ldots}
+}
+
+\DeclareOption{english}{%
+\providecommand{\turnthepage}{\textit{Turn the page.}}
+}
+
+\DeclareOption{francais}{%
+\providecommand{\turnthepage}{\textit{Tournez la page.}}
+}
+
+\DeclareOption{nederlands}{%
+\providecommand{\turnthepage}{\textit{Sla de pagina om.}}
+}
+
+\DeclareOption{deutsch}{%
+\providecommand{\turnthepage}{\textit{Bitte wenden.}}
+}
+
+\AtBeginShipout{%
+\AtBeginShipoutUpperLeft{%
+ \ifodd\c@page
+ \ifnum\zref@extract{LastPage}{abspage}>\c@abspage
+ \dimen1=1in
+ \advance\dimen1 by \textwidth
+ \advance\dimen1 by \oddsidemargin
+ \dimen3=1in
+ \advance\dimen3 by \topmargin
+ \advance\dimen3 by \headheight
+ \advance\dimen3 by \headsep
+ \advance\dimen3 by \textheight
+ \advance\dimen3 by \footskip
+ \put(\dimen1,-\dimen3){\llap{\turnthepage}}%
+ \fi\fi%
+}}
+
+\ProcessOptions
+\relax