* \ref and \goto @ 2008-11-02 11:48 Wolfgang Schuster 2008-11-02 17:21 ` Peter Münster 0 siblings, 1 reply; 3+ messages in thread From: Wolfgang Schuster @ 2008-11-02 11:48 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \ref and \goto 2008-11-02 11:48 \ref and \goto Wolfgang Schuster @ 2008-11-02 17:21 ` Peter Münster 2008-11-02 21:01 ` Wolfgang Schuster 0 siblings, 1 reply; 3+ messages in thread From: Peter Münster @ 2008-11-02 17:21 UTC (permalink / raw) To: mailing list for ConTeXt users 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/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: \ref and \goto 2008-11-02 17:21 ` Peter Münster @ 2008-11-02 21:01 ` Wolfgang Schuster 0 siblings, 0 replies; 3+ messages in thread From: Wolfgang Schuster @ 2008-11-02 21:01 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-02 21:01 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-11-02 11:48 \ref and \goto Wolfgang Schuster 2008-11-02 17:21 ` Peter Münster 2008-11-02 21:01 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).