diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-08 23:08:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-08 23:08:23 +0000 |
commit | ee2de76f7db0b19a657a7f3b9ba8768bc8e69e37 (patch) | |
tree | cb89ecf46c7a4843251d70c2aa0341a945c81353 /Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex | |
parent | d9c6145293d327c544fc033d3e9956fc1afc5b25 (diff) |
lastpage 1.2d (28aug10)
git-svn-id: svn://tug.org/texlive/trunk@19615 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex new file mode 100644 index 00000000000..ca05690ffc3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lastpage/lastpage-example.tex @@ -0,0 +1,146 @@ +%% +%% This is file `lastpage-example.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lastpage.dtx (with options: `example') +%% +%% This is a generated file. +%% +%% IMPORTANT NOTICE: +%% The usual disclaimers apply: +%% 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.) +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% 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). +%% +%% This package was invented by Jeffrey P. Goldberg +%% (jeffrey+news at goldmark dot org). +%% 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 +%% or +%% 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. +%% Thanks go to Jeffrey P. Goldberg for allowing me to do this. +%% +%% 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. +%% +\documentclass[british]{article} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[draft]{showkeys}[2007/08/07]% v3.15 +%% Use final instead of draft to hide the keys. %% +\usepackage{hyperref}[2010/06/18]% v6.81g +\hypersetup{% + extension=pdf,% + plainpages=false,% + pdfpagelabels=true,% + hyperindex=false,% + pdflang={en},% + pdftitle={lastpage package example},% + pdfauthor={Hans-Martin Muench},% + pdfsubject={Example for the lastpage package},% + pdfkeywords={LaTeX, lastpage, Hans-Martin Muench},% + pdfview=Fit,% + pdfstartview=Fit,% + pdfpagelayout=SinglePage% +} +%% If you disable hyperref, you must also remove the one \href in this example. +\usepackage{lastpage}[2010/08/25]% v1.2d +\makeatletter +\renewcommand{\@evenfoot}% + {\normalsize\slshape \today\hfil \upshape page {\thepage} of \pageref{LastPage}} +\renewcommand{\@oddfoot}{\@evenfoot} +\gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% +\makeatother +\listfiles +\begin{document} +\pagenumbering{Roman} + +\section*{Example for lastpage} +\markboth{Example for lastpage}{Example for lastpage} + +This example demonstrates the use of package\newline +\textsf{lastpage}, v1.2d as of 2010/08/25 (HMM; JPG).\newline +The package takes no options.\newline +For more details please see the documentation!\newline + +\noindent \label{keys} To hide the \pageref{keys}{\qquad } use option +\texttt{final} instead of \texttt{draft} with the \textsf{showkeys} +package (or remove the package call from the preamble of +this document).\newline + +\textbf{Trademarks} appear throughout this example without any +trademark symbol; they are the property of their respective +trademark owner. There is no intention of infringement; the +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 9.3.3: \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/}). + +\bigskip + +Save per page about $200\unit{ml}$~water, $2\unit{g}$~CO$_{2}$ +and $2\unit{g}$~wood:\newline +Therefore please print only if this is really necessary.\newline +I do NOT think, that it is necessary to print THIS file, really\newline +(at least not after this page)! + +\bigskip + +\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline + +\noindent Last page's name (LastPage): \pageref{LastPage} + +\newpage + +\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline + +\noindent Last page's name (LastPage): \pageref{LastPage} + +\newpage + +\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline + +\noindent Last page's name (LastPage): \pageref{LastPage} + +\newpage + +\section*{The End} + +\noindent The page (\texttt{\textbackslash thepage}): \thepage \newline + +\noindent Last page's name (LastPage): \pageref{LastPage} +\end{document} +\endinput +%% +%% End of file `lastpage-example.tex'. |