]> mj.ucw.cz Git - ucwmac.git/blob - test-ref.tex
ucw-ref: Fixed bug in \pageid
[ucwmac.git] / test-ref.tex
1 \input ucwmac2.tex
2 \ucwmodule{ofs}
3 \ucwmodule{ref}
4 \ucwmodule{pdfmeta}
5
6 % \clickablefalse
7
8 \pdfmetainfo{Author}{A. U. Thor}
9 \pdfmetainfo{Title}{TeX Caput Regni}
10
11 \newcount\chapcount
12 \chapcount=0
13 \optdef\chapter#1{
14         \vfill\eject
15         \advance\chapcount by 1
16         \addid{chap}{\the\chapcount}
17         \pdfmetaoutline{\the\chapcount}{\currentid}{#1}
18         \leftline{\the\chapcount. #1}
19         \medskip
20 }
21
22 \def\chapref{\ref{chap}}
23
24 \pageid{pri}
25
26 \chapter[pri]{Caput prima}
27
28 \chapter[sec]{Caput secunda}
29
30 \url{http://pruvodce.ucw.cz/err_ata\\%21.html?a=b&c=d#x}
31
32 \linkurl{http://pruvodce.ucw.cz/}{See the web page \displayurl.}
33
34 \chapter[ter]{Caput tertia}
35
36 See also chapter~\chapref{pri} at page \ref{page}{pri}.
37
38 Hard link to \linkpage{1}{page~1}.
39
40 \bye