From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59915 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with large space after section header Date: Mon, 28 Jun 2010 20:09:13 -0400 (EDT) Message-ID: References: <87aaqeby4y.fsf@notengoamigos.org> <4C2923DB.6020002@googlemail.com> <871vbqbu51.fsf@notengoamigos.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277770162 14546 80.91.229.12 (29 Jun 2010 00:09:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 00:09:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 29 02:09:21 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OTOO6-0004Au-OC for gctc-ntg-context-518@m.gmane.org; Tue, 29 Jun 2010 02:09:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 130B6C9B35; Tue, 29 Jun 2010 02:09:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Wp62f8Z6r3x9; Tue, 29 Jun 2010 02:09:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F3F0C9B16; Tue, 29 Jun 2010 02:09:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D685DC9B16 for ; Tue, 29 Jun 2010 02:09:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OeWe7aTEksWy for ; Tue, 29 Jun 2010 02:09:01 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id F0383C9AE3 for ; Tue, 29 Jun 2010 02:09:00 +0200 (CEST) Original-Received: FROM dhcp128036155029.central.yale.edu (dhcp128036155029.central.yale.edu [128.36.155.29]) By hellskitchen.mr.itd.umich.edu ID 4C29399B.3C247.22940 ; Authuser adityam; 28 Jun 2010 20:08:59 EDT In-Reply-To: <871vbqbu51.fsf@notengoamigos.org> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:59915 Archived-At: On Mon, 28 Jun 2010, Jason Earl wrote: > In my defense, part of the reason that I did not think of putting in a > manual page break before the section is that my real context documents > are generated from a script, and I did not want to have to process the > output by hand to solve these sorts of problems. I was hoping for some > sort of magic that I could put after every section heading that would > make Context try harder to keep the content close to the header. > > However, while I don't pretend to be an expert at typesetting I do > understand that automating this stuff is hard, and sometimes there is no > real way to fix issues like this. If I have to do a little hand > massaging of the output that's acceptable. In an automated setup, you can try \setuphead[section][before={\blank\testpage[4]}] \testpage[n] tests if there is enough space to put n lines in the current page. If not, it insearts a pagebreak. Play around with n to see what gives best result. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________