diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex | 65 |
1 files changed, 38 insertions, 27 deletions
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex index 4208f7177b0..2f964251824 100644 --- a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex +++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex @@ -8,8 +8,14 @@ %% %% This is a generated file. %% -%% IMPORTANT NOTICE: -%% The usual disclaimers apply: +%% Project: lastpage +%% Version: 2011/08/08 v1.2i +%% +%% Copyright (C) 2010, 2011 by +%% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> +%% Portions of code copyrighted by other people as marked. +%% +%% The usual disclaimer applys: %% If it doesn't work right that's your problem. %% (Nevertheless, send an e-mail to the maintainer %% when you find an error in this package.) @@ -26,16 +32,14 @@ %% %% This work has the LPPL maintenance status "maintained". %% -%% The Current Maintainer of this work is H.-Martin Muench -%% (Martin dot Muench at Uni-Bonn dot de). +%% The Current Maintainer of this work is H.-Martin Muench. %% -%% This package was invented by Jeffrey P. Goldberg -%% (jeffrey+news at goldmark dot org). +%% This package was invented by Jeffrey P. Goldberg. %% I thought that a replacement was needed and therefore created the -%% pagesLTS package, -%% http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/pagesLTS.dtx +%% pageslts package, +%% http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/pageslts.dtx %% or -%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pagesLTS.tds.zip +%% http://www.ctan.org/tex-archive/install/macros/latex/contrib/pageslts.tds.zip %% . Nevertheless, for compatibility with existing documents/packages as well as %% for the low amount of resources needed by the lastpage package (no new counter!), %% I updated this package. @@ -43,14 +47,15 @@ %% %% This work consists of the main source file lastpage.dtx %% and the derived files -%% lastpage.sty, lastpage.ins, lastpage.drv, -%% lastpage-example.tex, lastpage.pdf. +%% lastpage.sty, lastpage.pdf, lastpage.ins, lastpage.drv, +%% lastpage-example.tex. %% \documentclass[british]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\AtEndDocument{\message{^^JLaTeX Info: Executing hook `AtEndDocument'.}} \usepackage[draft]{showkeys}[2007/08/07]% v3.15 %% Use final instead of draft to hide the keys. %% -\usepackage{hyperref}[2010/12/16]% v6.81z +\usepackage{hyperref}[2011/04/17]% v6.82g \hypersetup{% extension=pdf,% plainpages=false,% @@ -65,14 +70,14 @@ pdfstartview=Fit,% pdfpagelayout=SinglePage% } -%% If you disable hyperref, you must also remove the one \href in this example. -\usepackage{lastpage}[2011/02/01]% v1.2g +\usepackage{lastpage}[2011/08/08]% v1.2i \makeatletter -\renewcommand{\@evenfoot}% - {\normalsize\slshape \today\hfil \upshape page {\thepage} of \pageref{LastPage}} +\renewcommand{\@evenfoot}{% + \normalsize\slshape \today\hfil \upshape page \thepage% + \ of \pageref{LastPage}} \renewcommand{\@oddfoot}{\@evenfoot} -\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \makeatother +\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} \pagenumbering{Roman} @@ -81,7 +86,7 @@ \markboth{Example for lastpage}{Example for lastpage} This example demonstrates the use of package\newline -\textsf{lastpage}, v1.2g as of 2011/02/01 (HMM; JPG).\newline +\textsf{lastpage}, v1.2i as of 2011/08/08 (HMM; JPG).\newline The package takes no options.\newline For more details please see the documentation!\newline @@ -95,7 +100,7 @@ the references are also hyperlinked:\newline \smallskip Last page's name (LastPage): \pageref{LastPage}\newline \noindent If the \textsf{hyperref} package is loaded, but the hyperlinks -of the references shall be suppressed, \texttt{\textbackslash pageref*\{...\}} +of the references shall be suppressed, \verb|\pageref*{...}| can be used:\newline \smallskip Last page's name (LastPage): \pageref*{LastPage}\newline @@ -107,15 +112,21 @@ usage is to the benefit of the trademark owner.\newline \textbf{Tip}: Use \textit{logical page numbers} for the display of the pdf!\newline -(In Adobe Reader X (10.0.0): \underline{E}dit $>$ +(In Adobe Reader X (10.1.0): \underline{E}dit $>$ Prefere\underline{n}ces (Ctrl+k) $>$ Page Display $>$ Page Content and Information $>$ Use logical page \nolinebreak{\underline{n}umbers.)}\newline If you are more ambitiouse in respect to your aims with this package, -you might want to have a look at the \textsf{pagesLTS} package\newline -(\href{http://www.ctan.org/tex-archive/macros/latex/contrib/pagesLTS/}{% -CTAN:/macros/latex/contrib/pagesLTS/}). +you might want to have a look at the \textsf{pageslts} package\newline +\makeatletter + \@ifundefined{Hy@Warning}{% hyperref not loaded + \verb|http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/|). + }{% hyperref loaded + \href{http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts/}{% + CTAN:/macros/latex/contrib/pageslts/}). + }% +\makeatother \bigskip @@ -127,19 +138,19 @@ I do NOT think, that it is necessary to print THIS file, really\newline \bigskip -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \newpage -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \newpage -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} @@ -147,7 +158,7 @@ I do NOT think, that it is necessary to print THIS file, really\newline \section*{The End} -\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline +\noindent The page (\verb|\thepage|): \thepage \newline \noindent Last page's name (LastPage): \pageref{LastPage} \end{document} |