Title: Expansion or Referencing problem
Hello,

I'm probably just stuck with another misunderstanding of TeX's expansion, but I can't figure out how to fix it.

The attached example doesn't work as intended. My defined command produces the correct reference name (as can be seen in the resulting .tuc file) but still \about (and the other referencing commands) won't show/find it.

What am I missing here?

--
Best Regards,
Andreas
\mainlanguage[en]

\def\moduleid{TEST}

\def\transaction{\dodoubleempty\dotransaction}
\def\dotransaction[#1][#2]{%
    \getparameters[tr][module=\moduleid,#2]%
    \global\def\refname{tr:\trmodule:#1}%
    \doifreferencefoundelse{\refname}{}{\global\def\refname{tr::#1}}%
    \about[\refname] (I want to go to: \refname)%
}

\starttext

\section[tr::Name]{Testsection}

Test.

\section{Reference}

\transaction[Name]

\stoptext
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to