ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Philippe Rey <jean-philippe.rey@ecp.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Wrong page break in sequence of headings
Date: Thu, 11 Sep 2014 17:24:52 +0200	[thread overview]
Message-ID: <2E8274A0-395F-4DAE-95AB-959A36401928@ecp.fr> (raw)
In-Reply-To: <5411B31D.8010407@gmx.es>

Hi Pablo,

Le 11 sept. 2014 à 16:35, Pablo Rodriguez <oinos@gmx.es> a écrit :

> page breaks can occur after a heading command.
> 
>> Is there a setup to get the page breaks right ? Or is this a bug ?
> 
> It isn’t a bug, it‘s just the way heads are defined in ConTeXt.

I thought it could have been a bug because I have never seen ConTeXt put a page break between a head and the following text when it is a standard paragraph (which is a sensible behavior). It seems odd to allow a page break between two heads, except in very exceptional situations (e.g. a very long list of heads).


> For chapters and sections, use:
> 
> \setuphead[chapter][after={\blank[samepage, 2*big]}]
> \setuphead[section][after={\blank[samepage]}]
> 
> I hope it helps,

It works perfectly well, thank you very much Pablo.

-- 
Jean-Philippe Rey                 Professeur - École Centrale Paris
jean-philippe.rey@ecp.fr          92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___________________________________________________________________________________
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:[~2014-09-11 15:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-11 11:50 Jean-Philippe Rey
2014-09-11 14:35 ` Pablo Rodriguez
2014-09-11 15:24   ` Jean-Philippe Rey [this message]
2014-09-11 19:51     ` Pablo Rodriguez

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=2E8274A0-395F-4DAE-95AB-959A36401928@ecp.fr \
    --to=jean-philippe.rey@ecp.fr \
    --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).