ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Space before chapters
Date: Tue, 19 Nov 2013 21:34:49 +0100	[thread overview]
Message-ID: <528BCB69.8080508@wxs.nl> (raw)
In-Reply-To: <011d01cee565$4fdc0540$ef940fc0$@tosovsky@email.cz>

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
___________________________________________________________________________________


       reply	other threads:[~2013-11-19 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <011d01cee565$4fdc0540$ef940fc0$@tosovsky@email.cz>
2013-11-19 20:34 ` Hans Hagen [this message]
2013-11-19 22:48   ` Jan Tosovsky
2013-11-19 20:24 Jan Tosovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528BCB69.8080508@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).