[NTG-context] in text enumeration?

Michael wuolong at gmail.com
Thu May 10 21:12:07 CEST 2007


On 10 May 2007, Aditya Mahajan wrote:

> On Tue, 8 May 2007, Michael wrote:

> > \setupoutput[pdf]
> > \defineenumeration
> >  [demo]
> >  [text=Demo,location=serried,before=,width=fit,conversion=Character]
> > \starttext
> > Please see \demo\ first.
> >
> > Please see (\demo) afterward.
> > \stoptext
> >
> > The space between 'Demo' and 1 is still a bit larger than normal text.
> > How to fix that?

> This is not how enumerations are supposed to be used. 

> For your purpose, I will suggest something simpler:

> \definenumber[demo][conversion=Character]
> \setuplabeltext[demo=Demo]

> \def\demo%
>    {\incrementnumber[demo]%
>     \bold{\labeltext{demo}\space\getnumber[demo]}}

>   Please see \demo\ first.

>   Please see (\demo) afterward.

This works great.  Thanks.

Michael



More information about the ntg-context mailing list