From: Martin Mares Date: Sat, 17 Aug 2019 22:08:35 +0000 (+0200) Subject: ucw-ref: Link type and ID are separated by a colon X-Git-Tag: v2.0~5 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=cd7e5135b10955e836e95855ad2ef585c6522291;p=ucwmac.git ucw-ref: Link type and ID are separated by a colon --- 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 }