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

Morten Høgholm morten.hoegholm at gmail.com
Sat May 17 16:21:39 CEST 2008


On Sat, 17 May 2008 16:11:27 +0200, martin f krafft wrote:

> 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}

Did you also change the macros calling \rrefx as I showed you?
-- 
Morten


More information about the texhax mailing list