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

2006-07-30 Thread Aditya Mahajan
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2006-07-30 Thread Taco Hoekwater
Steffen Wolfrum wrote:
> The conversion is clear but what about ")", resp. "(" before and ")"  
> after the sectionnumber.

Easy solution: define your own conversion.

   \def\parenthisedchar#1{(\character{#1})}
   \defineconversion[parenthised][\parenthisedchar]

now you can use 'parenthised' everywhere context accepts a
"conversion" as an argument.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2006-07-30 Thread Steffen Wolfrum
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?

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context