X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw-ref.tex;h=86d41a19c3dc67d14a68ef7dc9c231ec1012e952;hb=c7310a545ce08560c0c2cd314603e4d695c2b10c;hp=37f3721eb286062d4feaab92da60069862c982de;hpb=b98fb837ec8d9fe44f2c8f9329ca56a7a3fe6213;p=ucwmac.git diff --git a/ucw-ref.tex b/ucw-ref.tex index 37f3721..86d41a1 100644 --- a/ucw-ref.tex +++ b/ucw-ref.tex @@ -44,7 +44,7 @@ \ifx\optarg\relax \let\currentid\relax \else - \edef\currentid{#1\optarg}% + \edef\currentid{#1:\optarg}% \writeid{\currentid}{#2}% \destpos{\currentid}% \fi @@ -53,11 +53,11 @@ % A low-level interface for typesetting references: produces a clickable link % to the identifier #2 of type #1 with a label translated by macro #3 (use \relax % for no translation). -\def\reflink#1#2#3{\expandafter\ifx\csname id:#1#2\endcsname\relax +\def\reflink#1#2#3{\expandafter\ifx\csname id:#1:#2\endcsname\relax {\ifx\bo\undefined\bf\else\bo\fi ??}% - \immediate\write16{*** Warning: Reference #1 undefined ***}% + \immediate\write16{*** Warning: Reference #1:#2 undefined ***}% \else - \link{#1#2}{#3{\csname id:#1#2\endcsname}}% + \link{#1:#2}{#3{\csname id:#1:#2\endcsname}}% \fi }