diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex b/Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex index dbae50c3f55..44b34765c16 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2009 by +%% Copyright (C) 2006-2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,20 +29,21 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-counter.sty, zref-dotfill.sty, -%% zref-hyperref.sty, zref-lastpage.sty, zref-perpage.sty, -%% zref-runs.sty, zref-savepos.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, zref-test1.tex, -%% zref-test-runs.tex. +%% zref-hyperref.sty, zref-lastpage.sty, zref-nextpage.sty, +%% zref-perpage.sty, zref-runs.sty, zref-savepos.sty, +%% zref-thepage.sty, zref-titleref.sty, zref-totpages.sty, +%% zref-user.sty, zref-xr.sty, zref-example.tex, +%% zref-example-lastpage.tex, zref-example-nextpage.tex, +%% zref-test1.tex, zref-test-runs.tex. %% \NeedsTeXFormat{LaTeX2e} \documentclass{report} - % + \newcounter{foo} \renewcommand*{\thefoo}{\Alph{foo}} - % + \usepackage{zref-lastpage,zref-user}[2008/10/01] - % + \makeatletter \zref@newprop{thefoo}{\thefoo} \zref@newprop{valuefoo}{\the\value{foo}} @@ -51,22 +52,22 @@ \zref@addprop{LastPage}{valuefoo} \zref@addprop{LastPage}{chapter} \makeatother - % + \newcommand*{\foo}{% \stepcounter{foo}% [Current foo: \thefoo]% } - % + \begin{document} - \chapter{First chapter}% - Last page is \zref{LastPage}.\\% - Last chapter is \zref[chapter]{LastPage}.\\% - Last foo is \zref[thefoo]{LastPage}.\\% - Last value of foo is \zref[valuefoo]{LastPage}.\\% + \chapter{First chapter} + Last page is \zref{LastPage}.\\ + Last chapter is \zref[chapter]{LastPage}.\\ + Last foo is \zref[thefoo]{LastPage}.\\ + Last value of foo is \zref[valuefoo]{LastPage}.\\ \foo - \chapter{Second chapter}% + \chapter{Second chapter} \foo\foo\foo - \chapter{Last chapter}% + \chapter{Last chapter} \foo \end{document} \endinput |