Hi, how can I combine \ref and \goto? \setupinteraction[state=start] \starttext \chapter[sec:one]{One} \chapter[sec:two]{Two} see also \goto{One}[sec:one] % hyperlink see also \ref[s][sec:one] % no hyperlink see also \goto{\ref[s][sec:one]}[sec:one] % fails \stoptext Wolfgang
On Sun, Nov 02 2008, Wolfgang Schuster wrote:
how can I combine \ref and \goto?
\setupinteraction[state=start]
[...]
see also \goto{\ref[s][sec:one]}[sec:one] % fails
Here a workaround: see also \goto{\expanded{\ref[s][sec:one]}}[sec:one] % does not fail This works also: \def\myGoto#1{\goto{\expanded{\ref[s][#1]}}[#1]} see also \myGoto{sec:one} Cheers, Peter -- http://pmrb.free.fr/contact/
Am 02.11.2008 um 18:21 schrieb Peter Münster:
On Sun, Nov 02 2008, Wolfgang Schuster wrote:
how can I combine \ref and \goto?
\setupinteraction[state=start]
[...]
see also \goto{\ref[s][sec:one]}[sec:one] % fails
Here a workaround:
see also \goto{\expanded{\ref[s][sec:one]}}[sec:one] % does not fail
This works also:
\def\myGoto#1{\goto{\expanded{\ref[s][#1]}}[#1]}
see also \myGoto{sec:one}
Hi Peter, thank you for the solution, I use now this: \def\gotoref[#1][#2]% {\goto{\expanded{\ref[#1][#2]}}[#2]} see also \gotoref[s][sec:one] Regards Wolfgang
participants (2)
-
Peter Münster
-
Wolfgang Schuster