[texhax] How to dereference a \ref in a command definition?

martin f krafft madduck at madduck.net
Sat May 17 16:11:27 CEST 2008

also sprach Morten Høgholm <morten.hoegholm at gmail.com> [2008.05.17.1504 +0100]:
> I did the following alterations:
> \newcommand{\rrefx}[3]{%
>   [...]
>   \protected at edef\curref{#2}% here: never raw \edef in LaTeX!

But now \meaning\curref says:

  macro:\getrefnumber ->\protect \ref{mysection}

and obviously there is no match with the output of e.g.

Gosh, this is rocket science to me...

martin | http://madduck.net/ | http://two.sentenc.es/
"i never go without my dinner. no one ever does, except vegetarians
 and people like that."
                                                        -- oscar wilde
spamtraps: madduck.bogus at madduck.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://tug.org/pipermail/texhax/attachments/20080517/187d4bf5/attachment.bin 

More information about the texhax mailing list