ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Wrong page break in sequence of headings
Date: Thu, 11 Sep 2014 21:51:11 +0200	[thread overview]
Message-ID: <5411FD2F.4090501@gmx.es> (raw)
In-Reply-To: <2E8274A0-395F-4DAE-95AB-959A36401928@ecp.fr>

On 09/11/2014 05:24 PM, Jean-Philippe Rey wrote:
> Le 11 sept. 2014 à 16:35, Pablo Rodriguez 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).

Hi Jean-Philippe,

the first time I experienced that the heading being left alone in the
bottom of a page, I thought it was a bug also.

Wolfgang kindly explained me that this was due to the default setups for
headings.

Page breaks after titles (not only between titles) seem also weird to
me. But once you know how it works, you only have to specify it in the
preamble of your documents.

>> 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.

I’m glad to read it worked.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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 19:51 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
2014-09-11 19:51     ` Pablo Rodriguez [this message]

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=5411FD2F.4090501@gmx.es \
    --to=oinos@gmx.es \
    --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).