summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-26 23:30:06 +0000
committerKarl Berry <karl@freefriends.org>2010-03-26 23:30:06 +0000
commit9a032296aec6ef5b4ac4bb94209873531040284f (patch)
tree185ff5001a4624653e7264244b52edfe78bd705e /Master/texmf-dist/doc/latex/oberdiek/zref-example-lastpage.tex
parenta0ee1be019cc1fb6421bf81cc552cfb85ac9fa13 (diff)
oberdiek update (26mar10)
git-svn-id: svn://tug.org/texlive/trunk@17570 c570f23f-e606-0410-a88d-b1316a301751
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.tex37
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