[NTG-context] \reference[mark]{(\the\equationnumber)}

Hans Hagen ntg-context@ntg.nl
Tue, 13 Jan 2004 17:56:53 +0100


At 13:56 13/01/2004, you wrote:
>Hi all,
>
>in a former paper I used
>
>\newcount\equationnumber
>\equationnumber=3D0
>\def\eq{\advance\equationnumber by 1}%Formelz=E4hler erh=F6hen
>\starttext
>\eq\reference[a]{(\the\equationnumber)}
>$$a\eqno(\the\equationnumber)$$%an equation

\expanded{\reference[a]{(\the\equationnumber)}}

or

\setupreferencing[expansion=3Dcommand]

test file:

\starttext

\setupreferencing[expansion=3Dcommand]

\typefile{\jobname.tuo}

\textreference[x]{\the\pageno}

\stoptext=20