]> mj.ucw.cz Git - ucwmac.git/commitdiff
ucw-ref: Link type and ID are separated by a colon
authorMartin Mares <mj@ucw.cz>
Sat, 17 Aug 2019 22:08:35 +0000 (00:08 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Aug 2019 22:08:35 +0000 (00:08 +0200)
ucw-ref.tex

index 37f3721eb286062d4feaab92da60069862c982de..86d41a19c3dc67d14a68ef7dc9c231ec1012e952 100644 (file)
@@ -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
 % 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
 }