ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: page-break after \section
Date: Thu, 22 Mar 2007 21:23:36 +0100	[thread overview]
Message-ID: <4602E5C8.80002@wxs.nl> (raw)
In-Reply-To: <Pine.LNX.4.58.0703222003150.7982@gaston.pm>

� wrote:
> On Thu, 22 Mar 2007, Hans Hagen wrote:
>
>   
>> well, it depends, if the next structure does a vskip of some testing 
>> then there can be a page break
>>
>> there is no robust way to prevent this in current tex, at least nog when 
>> some spacing mechansism are used, ok, a penalty 10000 may sometimes 
>> help, but even then, successive skips and such may interfere
>>     
>
> Thanks for your explanation!
> Do you know, how the LaTeX people solved this problem? I've never had such
> surprises with LaTeX.
>   
i dunno, but i remember problems with splits between chapter, section and subsection heads and context prohibits that; *any* tex where some construct introduces whitespace has this problem but i can imagine some tricky stuff with the otr involved (and even then there may be interference with preceding material); i do (did) observe that latex has a different spacing model (and interfering penalties may be a reason why sometimes spacing gets messed up); 

i will implement a second spacing model once luatex is available 

in tex, when one has a controlled situation, solutions are possible but context is rather configurable

\setuphead[section][after=\blank\pelanty10000\relax] may help but also mess up spacing 

(esp floats are hard to interface with such things because they also look at the available space and currently don't look back; keep in mind that when looking back the content is already put in the mlv and ther ei sno knowledg ewhat is preceding the current structure 



Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2007-03-22 20:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-20 21:20 Peter Münster
2007-03-21  4:37 ` luigi scarso
2007-03-21 18:26   ` Peter Münster
2007-03-22 13:44     ` Hans Hagen
2007-03-22 19:06       ` Peter Münster
2007-03-22 20:23         ` Hans Hagen [this message]
2007-03-22 21:05           ` Taco Hoekwater
2007-04-10 13:05 ` Aditya Mahajan
2007-04-11 18:11   ` Peter Münster

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=4602E5C8.80002@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).