ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Strange page breaks
Date: Mon, 18 Jun 2012 12:48:11 +0200	[thread overview]
Message-ID: <5043F959-A8F6-4EDC-B727-A1C9A9A2D5BC@googlemail.com> (raw)
In-Reply-To: <17801431.20120618124103@gmx.de>


Am 18.06.2012 um 12:41 schrieb Andreas Schneider:

> On Monday, June 18, 2012, at 11:54 Hans Hagen wrote:
>> On 18-6-2012 09:43, Andreas Schneider wrote:
>>> Hello,
>>> 
>>> the attached example causes very strange page breaks.
>>> 
>>> 1.  The subsubsubject is the last line on the first page. That doesn't
>>> look very nice.
>>> 
>>> 2. The xtable is broken although the whole table fits on that page.
>>> 
>>> Is there anything I (or you? :-)) can do about these two problems?
>>> 
>>> #This is LuaTeX, Version beta-0.70.2-2012052100 (TeX Live 2012/W32TeX)
>>> #ConTeXt  ver: 2012.05.24 19:36 MKIV  fmt: 2012.6.18  int: english/english
> 
>> not that strange but it's obscured by the fact that you use a float 
>> (which has different spacing and room-for rules) without caption
> 
>> in this case you can omit the placefloat and do
> 
>> \startxtable[header=repeat,split=yes]
> 
>> Hans
> 
> Doesn't  quite  work,  since  then  the header isn't repeated when the
> table is actually split.
> 
> With  natural  tables there seems to be a similar problem. But I guess
> that  enabling  split=yes  will  actually  place  it  inside  a  float
> automatically which leads back to the initial problem.

You can tell context to force a page break when there isn’t enough space for the heading.

\setuphead[subsubsubject][before={\testpage[6]\blank[big]}]

Wolfgang
___________________________________________________________________________________
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:[~2012-06-18 10:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  7:43 Andreas Schneider
2012-06-18  9:54 ` Hans Hagen
2012-06-18 10:41   ` Andreas Schneider
2012-06-18 10:48     ` Wolfgang Schuster [this message]
2012-06-19  8:31       ` Andreas Schneider

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=5043F959-A8F6-4EDC-B727-A1C9A9A2D5BC@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).