[NTG-context] Frontmatter setup

nico nicolas.marsgui at libertysurf.fr
Tue Mar 28 21:11:59 CEST 2006


On Mon, 27 Mar 2006 11:25:42 +0200, Taco Hoekwater <taco at elvenkind.com>  
wrote:

> nico wrote:
>> Hello,
>>
>> Is there a \setup... command to configure the frontmatter section  
>> block? I
>> haven't found a clear information about this.
>
> You can put your setup in the 'before', like so:
>
>    \setupsectionblock
>       [frontmatter]
>       [before={\setuppagenumbering[conversion=romannumerals]}]

It does nothing. In this example the TOC and Preamble section still have  
default numbering:

% to have page numbers in roman in frontmatter
\setupsectionblock
       [frontmatter]
       [before={\setuppagenumbering[conversion=romannumerals]}]

\starttext

\startfrontmatter
\completecontent

\chapter{Preamble}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\stopfrontmatter

\startbodymatter

\chapter{A body chapter}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah

\stopbodymatter

\stoptext

But, of course, doing this works:
...
\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent

\chapter{Preamble}
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
blah blah blah blah blah blah blah blah
\stopfrontmatter
...

Regards,
BG


More information about the ntg-context mailing list