Re: [NTG-context] Centered title with numeration on the same line
On Mon, Jun 3, 2013 at 7:08 PM, honyk
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) -- luigi
Dear Luigi,
On Mon, Jun 3, 2013 at 7:08 PM, honyk
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
participants (2)
-
honyk
-
luigi scarso