summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/turnthepage
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-01-23 01:10:08 +0000
committerKarl Berry <karl@freefriends.org>2011-01-23 01:10:08 +0000
commitd94228e0c36ef801bcb76e0fe9f04ba8f49aac93 (patch)
treea7272d1cff243cd363f9ae7bb8d85c74ad3e658e /Master/texmf-dist/doc/latex/turnthepage
parent5e945c5a13bec1ceced8d5eda19d8e0807a969cd (diff)
turnthepage (22jan11)
git-svn-id: svn://tug.org/texlive/trunk@21150 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/turnthepage')
-rw-r--r--Master/texmf-dist/doc/latex/turnthepage/Makefile5
-rwxr-xr-xMaster/texmf-dist/doc/latex/turnthepage/README2
-rwxr-xr-xMaster/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting88
-rw-r--r--Master/texmf-dist/doc/latex/turnthepage/turnthepage.pdfbin62547 -> 67191 bytes
-rwxr-xr-xMaster/texmf-dist/doc/latex/turnthepage/turnthepage.tex14
5 files changed, 64 insertions, 45 deletions
diff --git a/Master/texmf-dist/doc/latex/turnthepage/Makefile b/Master/texmf-dist/doc/latex/turnthepage/Makefile
index 11e2e979d1c..598251f4366 100644
--- a/Master/texmf-dist/doc/latex/turnthepage/Makefile
+++ b/Master/texmf-dist/doc/latex/turnthepage/Makefile
@@ -569,7 +569,10 @@ GRAY ?= $(call get-default,$(GREY),)
# register (starting at '0') and run the macro once for each line of the
# original script:
#
-# 0i -e :s/\$/$$/eg :s/'/'"'"'/eg ^Ela'A' \:noh j
+# 0i -e :s/\$/$$/eg
+:s/'/'"'"'/eg
+^Ela'A' \:noh
+j
# don't call this directly - it is here to avoid calling wildcard more than
# once in remove-files.
diff --git a/Master/texmf-dist/doc/latex/turnthepage/README b/Master/texmf-dist/doc/latex/turnthepage/README
index 6765a10eed9..8e869892138 100755
--- a/Master/texmf-dist/doc/latex/turnthepage/README
+++ b/Master/texmf-dist/doc/latex/turnthepage/README
@@ -1,4 +1,4 @@
-This is the README file of the turnthepage package v1.0 by Merciadri Luca
+This is the README file of the turnthepage package v1.1 by Merciadri Luca
and Marc van Dongen.
To use the turnthepage package correctly, please install the .sty
diff --git a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
index 244828145a5..52157d3af97 100755
--- a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
+++ b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.forlisting
@@ -1,38 +1,50 @@
-%% This is file `turnthepage.sty' v1.0 by Merciadri Luca.
-% Thanks to Marc van Dongen for his help.
-
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{turnthepage}[2011/01/01 Indicating to turn the page]
-\PackageInfo{turnthepage}{This is turnthepage.}
-\RequirePackage{atbegshi}
-\RequirePackage{refcount}
-\RequirePackage{picture}
-\RequirePackage{lastpage}
-
-\DeclareOption{short}{%
-\providecommand{\turnthepage}{/\ldots}
-}
-
-\DeclareOption{long}{%
-\providecommand{\turnthepage}{\textit{Turn the page.}}
-}
-
-\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 \ No newline at end of file
+%% 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
diff --git a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.pdf b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.pdf
index d671b23e7b7..b5c1ad52cfc 100644
--- a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.pdf
+++ b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.tex b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.tex
index 8a57f4c8fe2..99b773f6750 100755
--- a/Master/texmf-dist/doc/latex/turnthepage/turnthepage.tex
+++ b/Master/texmf-dist/doc/latex/turnthepage/turnthepage.tex
@@ -60,9 +60,9 @@
\newpage
\section{Introduction}
-On some exams' sheets, some professors or lecturers like to indicate to the reader that the `page' can be turned. That avoids oversights to the student, thereby avoiding them cold sweat at the end of the exam, realizing that there were other questions they needed to answer. One might implement a \LaTeX{} mechanism so that each odd page (except the last one, if any) displays a message to turn the page. This mechanism can also be useful for different kinds of documents.
+On some exams' sheets, some professors or lecturers like to indicate to the reader that the `page' can be turned. That avoids oversights to the student, thereby avoiding them cold sweat at the end of the exam, realizing that there were other questions they needed to answer. One might implement a \LaTeX{} mechanism so that each odd page (except the last one, if the last page is odd) displays a message to turn the page. This mechanism can also be useful for different kinds of documents.
-This package should thus be used for exams, or special documents printed `twoside.'
+This package can thus be used for exams, or special documents printed `twoside.'
\section{Use}
\subsection{Loading the Package}
@@ -73,10 +73,13 @@ To \textit{load the package}, please use
\end{verbatim}
\end{center}
\subsection{Available Options}
-Without any option, the package will not be really useful, as it will not perform anything that will be nice for you. Consequently, the \textit{following options are available}:
+The \textit{following options are available}:
\begin{itemize}
\item \verb|short|: will display `/\ldots' at the bottom of each odd page, in its right corner, \index{\texttt{short}}
-\item \verb|long|: will display `\textit{Turn the page.}' at the bottom of each odd page, in its right corner. \index{\texttt{long}}
+\item \verb|english|: will display `\textit{Turn the page.}' at the bottom of each odd page, in its right corner, \index{\texttt{english}}
+\item \verb|francais|: will display `\textit{Tournez la page.}' at the bottom of each odd page, in its right corner, \index{\texttt{francais}}
+\item \verb|nederlands|: will display `\textit{Sla de pagina om.}' at the bottom of each odd page, in its right corner, \index{\texttt{nederlands}}
+\item \verb|deutsch|: will display `\textit{Eine Seite drehen.}' at the bottom of each odd page, in its right corner, \index{\texttt{deutsch}}
\end{itemize}
As the package calls \verb|\turnthepage| where it needs to be placed, you can define \verb|\turnthepage| as you want. For example, if you want a more polite way to say it, you can use
\begin{verbatim}
@@ -101,7 +104,8 @@ There is currently only one `bug:'
\section{Version History}
\begin{enumerate}
- \item \verb v1.0 : package is introduced to the \LaTeX{} world (happy new 2011 year!),
+ \item \verb|v1.0|: package is introduced to the \LaTeX{} world (happy new 2011 year!),
+ \item \verb|v1.1|: new options are added thanks to Mr. van Dongen's suggestions: \verb|english| now replaces \verb|long|, and \verb|francais|, \verb|nederlands|, \verb|deutsch| are implemented as translations of `Turn the page.' in French, Dutch, and German.
\end{enumerate}
\section{Thanks}