]> mj.ucw.cz Git - ucwmac.git/blob - test-ref.tex
Separate modules for links and references
[ucwmac.git] / test-ref.tex
1 \input ucwmac.tex
2 \input ucw-ofs.tex
3 \input ucw-ref.tex
4 \input ucw-pdfmeta.tex
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/errata.html}
31
32 \chapter[ter]{Caput tertia}
33
34 See also chapter~\chapref{pri} at page \ref{page}{pri}.
35
36 Hard link to \linkpage{1}{page~1}.
37
38 \bye