From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59918 Path: news.gmane.org!not-for-mail From: Jason Earl Newsgroups: gmane.comp.tex.context Subject: Re: Problem with large space after section header Date: Mon, 28 Jun 2010 20:04:54 -0600 Message-ID: <87wrtioapl.fsf@notengoamigos.org> 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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277777119 29542 80.91.229.12 (29 Jun 2010 02:05:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 02:05:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 29 04:05:16 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 1OTQCK-0004u8-LV for gctc-ntg-context-518@m.gmane.org; Tue, 29 Jun 2010 04:05:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 34983C9B8C; Tue, 29 Jun 2010 04:05:16 +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 DyE33Hv2Yl+F; Tue, 29 Jun 2010 04:05:04 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 77BC1C9B49; Tue, 29 Jun 2010 04:05:04 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B4E2C9B49 for ; Tue, 29 Jun 2010 04:05:02 +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 o54631nNjirg for ; Tue, 29 Jun 2010 04:04:59 +0200 (CEST) Original-Received: from mailout04.yourhostingaccount.com (mailout04.yourhostingaccount.com [65.254.253.34]) by balder.ntg.nl (Postfix) with ESMTP id A76F3C9B21 for ; Tue, 29 Jun 2010 04:04:59 +0200 (CEST) Original-Received: from mailscan13.yourhostingaccount.com ([10.1.15.13] helo=mailscan13.yourhostingaccount.com) by mailout04.yourhostingaccount.com with esmtp (Exim) id 1OTQC2-0008RC-GX for ntg-context@ntg.nl; Mon, 28 Jun 2010 22:04:58 -0400 Original-Received: from impout03.yourhostingaccount.com ([10.1.55.3] helo=impout03.yourhostingaccount.com) by mailscan13.yourhostingaccount.com with esmtp (Exim) id 1OTQC2-00016m-5n for ntg-context@ntg.nl; Mon, 28 Jun 2010 22:04:58 -0400 Original-Received: from authsmtp11.yourhostingaccount.com ([10.1.18.11]) by impout03.yourhostingaccount.com with NO UCE id be4y1e0010EKrUA0000000; Mon, 28 Jun 2010 22:04:58 -0400 X-EN-OrigOutIP: 10.1.18.11 X-EN-IMPSID: be4y1e0010EKrUA0000000 Original-Received: from jearl.fttp.xmission.com ([166.70.233.10] helo=jearl-netbook) by authsmtp11.yourhostingaccount.com with esmtpa (Exim) id 1OTQC1-0007UR-RE for ntg-context@ntg.nl; Mon, 28 Jun 2010 22:04:58 -0400 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAABGdBTUEAALGPC/xhBQAAAAFz UkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlw SFlzAAASmwAAEpsB4JJZDAAAAAl2cEFnAAAAMAAAADAAzu6MVwAAAaFJREFUSMe1VtuxxSAIzIz9 2Iyl2Aj1bBX0k5+LrwjGjJyPy2ROwtGNBJbVCwwwy1UNoOL3f+SBxkj15Lr4NsboN24DWMZxYQNA TjGmjC1gswJiqBbpDeANYMwXBFyAFB5L7ADMBcoSDgAFBSDHR2tA8ABMSB4AawB76pAnILsKx2lm 1VfpgUi3kxrySylRHdmQj40Jva2/jl8EY3Twv/phhsC9nIQR0hnAOUptYsL3RxvAk+YIH2AWsvTH GYBgKn8GaPYm5jNANaCQ8WfAzyH9x0crFfGl9X4QVdg8gEqN2KjBHi6V/iBq6iyAxTqd+Yvupwai VwM9LZkxQ6otihmS6H+mHlK5URwi0UQgWxHoxS5JagBSed7IzJRCallS2pg2QsamcGUFNSHgLZUv augJIUualv1Bv6+yVat1oeMq92s/mBBWQJH7dQX7CnpvWWs/4CazpHlB2RR1BFSzNGdIaTbbLil8 U76BKKU0GztapXP3C78bNYQ6MTQybY8OkIaITf9HPzyHkXE4YXs4mf5VDz+jAepj3RTQ3Ubv0SPy 9AcCrfKh0TBgvgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxMC0wNC0zMFQyMzo1NDo0My0wNjowMKID BVQAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTAtMDQtMzBUMjM6NTQ6NDItMDY6MDB1KbZcAAAAAElF TkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-EN-UserInfo: f8a5a3c49e1c4664ba81facb1022c4a9:67ddfe7aeaee6d1ea5b788d961d42633 X-EN-AuthUser: jearl@notengoamigos.org X-EN-OrigIP: 166.70.233.10 X-EN-OrigHost: jearl.fttp.xmission.com 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:59918 Archived-At: On Mon, Jun 28 2010, Aditya Mahajan wrote: > 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. Thank you so much. That looks like it is going to solve the most problematic spaces without having to manually insert page breaks. In fact, to my untutored eye even without playing with the numbers it looks perfect. That was precisely the magic I needed, and it even came with an explanation that should help me solve similar problems myself in the future. Thanks to Wolfgang for responding as well. I am sorry I was not more clear with my original report. Thanks again, Jason ___________________________________________________________________________________ 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 ___________________________________________________________________________________