* Re: Space before chapters
[not found] <011d01cee565$4fdc0540$ef940fc0$@tosovsky@email.cz>
@ 2013-11-19 20:34 ` Hans Hagen
2013-11-19 22:48 ` Jan Tosovsky
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2013-11-19 20:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Space before chapters
2013-11-19 20:34 ` Space before chapters Hans Hagen
@ 2013-11-19 22:48 ` Jan Tosovsky
0 siblings, 0 replies; 3+ messages in thread
From: Jan Tosovsky @ 2013-11-19 22:48 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Space before chapters
@ 2013-11-19 20:24 Jan Tosovsky
0 siblings, 0 replies; 3+ messages in thread
From: Jan Tosovsky @ 2013-11-19 20:24 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
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.
Thanks, Jan
ConTeXt 2013.11.14 & Win 7
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-19 22:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <011d01cee565$4fdc0540$ef940fc0$@tosovsky@email.cz>
2013-11-19 20:34 ` Space before chapters Hans Hagen
2013-11-19 22:48 ` Jan Tosovsky
2013-11-19 20:24 Jan Tosovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).