[NTG-context] \ref and \goto

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Nov 2 22:01:06 CET 2008


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



More information about the ntg-context mailing list