[NTG-context] Nailed references with our strategy

Taco Hoekwater taco at elvenkind.com
Tue Jul 11 15:23:17 CEST 2006



David Arnold wrote:
> 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.]

I must have missed something. Why are you switching to a totally
manual numbering system here?

Taco


> \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
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context


More information about the ntg-context mailing list