From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \ref and \goto
Date: Sun, 2 Nov 2008 22:01:06 +0100 [thread overview]
Message-ID: <6668367B-4407-48E8-8A51-287885E43BFA@gmail.com> (raw)
In-Reply-To: <20081102172131.GA18831@gaston.couberia.bzh>
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
___________________________________________________________________________________
prev parent reply other threads:[~2008-11-02 21:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-02 11:48 Wolfgang Schuster
2008-11-02 17:21 ` Peter Münster
2008-11-02 21:01 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6668367B-4407-48E8-8A51-287885E43BFA@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).