[NTG-context] Nailed references with our strategy

David Arnold dwarnold45 at cox.net
Mon Jul 10 02:20:02 CEST 2006


All, thought we had a good strategy for defining our own counter, but  
we don't have references now. Any ideas?

\newcounter\NonFigCounter
\define\UpdateNonFigCtr{\doglobal\increment\NonFigCounter}

\setuplabeltext[example=Example \NonFigCounter.]

\defineenumeration
	[example]
	[location=serried,
		width=broad,
		distance=1em,
		headcolor=green,
		headstyle=bold,
		text=\labeltext{example},
		stopper=.,
		style=slanted,
		inbetween=\blank,
		after=\blank\UpdateNonFigCtr,
		way=bysection,
		number=no]

\starttext

\startexample[exmpl:one]
blah, blah, blah
\stopexample

In \in{Example}[exmpl:one], we see that, ...

\stoptext


More information about the ntg-context mailing list