Re: [NTG-context] Space before chapters
On 11/19/2013 9:24 PM, Jan Tosovsky wrote:
Dear All,
after two hours of investigating wiki and various commands I am giving up...
Is there any way to set a bit of white space before my chapter title?
(1) I've thought that before={\blank[20mm]} should do the job. It works for sections, but here I suspect it is ignored as my chapter start on a new page.
(2) numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]} - this works as expected, but only for numbered titles - I need it also for TOC and Preface.
(3) commandbefore={\blank[20mm]} - it inserts the space between the number and title
I have no idea what else to try...
\setuphead[chapter][ alternative=middle, %before={\blank[20mm]}, %commandbefore={\blank[20mm]}, numbercommand=\groupedcommand{\blank[20mm]}{\blank[4mm]}, %numbercommand=\groupedcommand{}{\blank[4mm]}, ]
\starttext \startfrontmatter \chapter{Intro}text \startfrontmatter \startbodymatter \chapter{Chapter}text \stopbodymatter \stoptext
Any help is highly appreciated.
before={\blank[force,20mm]}, whitespace at the top of a page is discarded otherwise ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2013-11-19 Hans Hagen wrote:
On 11/19/2013 9:24 PM, Jan Tosovsky wrote:
Is there any way to set a bit of white space before my chapter title?
(1) I've thought that before={\blank[20mm]} should do the job. It works for sections, but here I suspect it is ignored as my chapter start on a new page.
before={\blank[force,20mm]},
whitespace at the top of a page is discarded otherwise
I was hoping there is a simple option for this (any counterpart to XSL-FO space-before.conditionality="retain" property)... And it is :-) Thanks for a quick response. I'll keep this in mind. Jan
participants (2)
-
Hans Hagen
-
Jan Tosovsky