[NTG-context] \ref and \goto

Peter Münster pmlists at free.fr
Sun Nov 2 18:21:31 CET 2008


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/



More information about the ntg-context mailing list