[NTG-context] Need help with \setuphead and spacing

Marco netuse at lavabit.com
Sat Apr 2 13:59:50 CEST 2011


On 2011-04-02 Nicola <nvitacolonna at gmail.com> wrote:

> 1) I need to shift the title 12pt below the top margin.
> This is my command now:
> 
> \definefont[TitleStyle][SerifBold at 14pt]
> \setuphead[title][
>    style=TitleStyle,
>    align=middle,
>    textstyle=WORD,

     before={\blank[12pt,force]},

>    after={\blank[3pt]}
> ]
> 
> But 'before' does not seem to have any effect. My document starts with 
> \starttext\title{...}.
> 
> 2) I need (sub)section titles indented by .75cm, regardless of the section 
> number, so that in:
> 
> 1      First Section
> 1.1    First Subsection
> 100    Another Section Title
> 100.1  Another subsection
> 

\setuphead [chapter,section] [command=\myseccmd]
\def\myseccmd#1#2{\hbox to .75cm{#1}#2}


Marco




More information about the ntg-context mailing list