ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Section alone on the page
Date: Wed, 21 Nov 2012 23:23:46 +0100	[thread overview]
Message-ID: <C816CAB7-392E-4E9A-A18C-FEA377E7AF2E@gmail.com> (raw)
In-Reply-To: <50ACC2A6.3090902@wxs.nl>


Am 21.11.2012 um 13:01 schrieb Hans Hagen <pragma@wxs.nl>:

> On 11/20/2012 3:22 PM, "H. Özoguz" wrote:
>> Am 20.11.2012 12:00, schrieb ntg-context-request@ntg.nl:
>>> It?s a problem with \blank which ignore the ?samepage? keyword in grid
>>> mode.
>>> 
>>> When you process this example in normal mode ?line 40? is moved to the
>>> second page but in grid mode it stays on the first page.
>> Is theat easy to fix or a long-term-todo? (Layouting books, I need
>> gridding, indeed, at first that was my reason to start with context)
> 
> it will probably be improved over time, but interplay between skips an penalties and such is always tricky; we have a weighted system in place but even then …


I would have expected to get the same results from \blank[samepage,…] and \nobreak\blank[…] as you can see in the example “samepage” doesn’t work.

\setuplayout[grid=yes]

\starttext

\dostepwiserecurse{1}{40}{1}{Line \recurselevel\par}
\blank[samepage,line]
\dostepwiserecurse{41}{50}{1}{Line \recurselevel\par}

\page

\dostepwiserecurse{1}{40}{1}{Line \recurselevel\par}
\nobreak\blank[line]
\dostepwiserecurse{41}{50}{1}{Line \recurselevel\par}

\stoptext

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
___________________________________________________________________________________


  parent reply	other threads:[~2012-11-21 22:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1353409201.28148.ntg-context@ntg.nl>
2012-11-20 14:22 ` "H. Özoguz"
2012-11-21 12:01   ` Hans Hagen
2012-11-21 12:09     ` "H. Özoguz"
2012-11-21 13:40       ` Hans Hagen
2012-11-21 13:45         ` luigi scarso
2012-11-21 14:08         ` "H. Özoguz"
2012-11-21 22:23     ` Wolfgang Schuster [this message]
     [not found] <mailman.298.1353499840.2161.ntg-context@ntg.nl>
2012-11-21 12:20 ` "H. Özoguz"
     [not found] <456E86A0-2530-4158-B53D-837190B9A711@gmail.com>
2012-11-20  7:56 ` "H. Özoguz"
2012-11-20  8:50   ` Wolfgang Schuster
     [not found] <mailman.238.1353272332.2161.ntg-context@ntg.nl>
2012-11-18 22:12 ` "H. Özoguz"
2012-11-18 20:07 "H. Özoguz"
2012-11-18 20:20 ` Aditya Mahajan
2012-11-18 20:21 ` Wolfgang Schuster

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=C816CAB7-392E-4E9A-A18C-FEA377E7AF2E@gmail.com \
    --to=wolfgang.schuster@gmail.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).