[NTG-context] How to achieve: (a) sectiontitle

Aditya Mahajan adityam at umich.edu
Sun Jul 30 19:55:08 CEST 2006


On Sun, 30 Jul 2006, Steffen Wolfrum wrote:

> Hi,
>
> I am confused about the ")" and setupsection or setuphead:
>
> What I need is a section that looks like this
> a) text
> b) text
>
> and a section like this
> (aa) text
> (bb) text
>
> The conversion is clear but what about ")", resp. "(" before and ")"
> after the sectionnumber.

> How and where is this called?

You can use numbercommand to format the number. For example

\setupsection[section-3][conversion=character]
\setuphead[section][numbercommand=\MyCommand]
\def\MyCommand#1{#1)}

gives you

a) text
b) text

and

\setupsection[section-3][conversion=character]
\setuphead[section][numbercommand=\MyCommand]
\def\MyCommand#1{(#1#1)}

gives you

(aa) text
(bb) text


Aditya


More information about the ntg-context mailing list