Dear Luigi,

> > On Mon, Jun 3, 2013 at 7:08 PM, honyk <j.tosov...@email.cz> wrote:
> > Dear All,
> > 
> > in MkIV when any title is centered, its numeration is placed on a separate
> > line above the title itself.
> > 
> > I'd expect inline formatting which could be overridden as described here
> > http://wiki.contextgarden.net/Titles
> > 
> > My code:
> > 
> > \setuplabeltext[en][chapter=Chapter~]
> > 
> > % while for chapter title this line break is handy (in my use case)
> > \setuphead[chapter][
> >         alternative=middle,
> >         style=\bfc,
> >         conversion=Romannumerals,
> >         numbercommand=\groupedcommand{\cap}{\blank[0.5cm]},
> >         after={\blank[1cm]},
> >         ]
> > 
> > % for section it is inappropriate
> > \setuphead[section][
> >         alternative=middle,
> >         style=\bfa,
> >         sectionsegments=section, % ignore component label
> >         ]
> > 
> > \starttext
> > \chapter{Foo}
> > \section{The First Section}
> > Text.
> > \stoptext
> > 
> > How can I keep numeration and title together?
> > 
> > Thanks,
> > Jan
>
> \setuplabeltext[en][chapter=Chapter~]
> 
> % while for chapter title this line break is handy (in my use case)
> \setuphead[chapter][
>         align=middle,
>         style=\bfc,
>         conversion=Romannumerals,
>         deepnumbercommand=\cap,% \groupedcommand{\cap}{\blank[0.5cm]},
>         after={\blank[1cm]},
>         ]
> 
> % for section it is inappropriate
> \setuphead[section][
>         alternative=middle,
>         style=\bfa,
>         sectionsegments=section, % ignore component label
>         ]
> 
> \starttext
> \chapter{Foo}
> \section{The First Section}
> Text.
> \stoptext
> 
> Maybe do you want deepnumbercommand ?
> (see the links for the difference numbercommand vs deepnumbercommand)

The problematic part is that section title. The chapter title formatting is Ok 
(but thanks for showing the way how to deal with these cases for future uses). 
Applying deepnumbercommand to section didn't help to me...

Regards, Jan

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to