]> mj.ucw.cz Git - ucwmac.git/blobdiff - test-ref.tex
ucw-ref: Fixed bug in \pageid
[ucwmac.git] / test-ref.tex
index 6dd327a4c8c749a98a3ba1e25e65326c75ff3c68..f1c70415e83b88e076db8f49eb95a24b641c411d 100644 (file)
@@ -1,15 +1,20 @@
-\input ucwmac.tex
-\input ucw-ref.tex
-\input ucw-ofs.tex
+\input ucwmac2.tex
+\ucwmodule{ofs}
+\ucwmodule{ref}
+\ucwmodule{pdfmeta}
 
 % \clickablefalse
 
+\pdfmetainfo{Author}{A. U. Thor}
+\pdfmetainfo{Title}{TeX Caput Regni}
+
 \newcount\chapcount
 \chapcount=0
 \optdef\chapter#1{
        \vfill\eject
        \advance\chapcount by 1
        \addid{chap}{\the\chapcount}
+       \pdfmetaoutline{\the\chapcount}{\currentid}{#1}
        \leftline{\the\chapcount. #1}
        \medskip
 }
 
 \chapter[sec]{Caput secunda}
 
-\url{http://pruvodce.ucw.cz/errata.html}
+\url{http://pruvodce.ucw.cz/err_ata\\%21.html?a=b&c=d#x}
+
+\linkurl{http://pruvodce.ucw.cz/}{See the web page \displayurl.}
 
 \chapter[ter]{Caput tertia}
 
 See also chapter~\chapref{pri} at page \ref{page}{pri}.
 
-Hard link to page~\pagelink{1}.
+Hard link to \linkpage{1}{page~1}.
 
 \bye