From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19432 Path: news.gmane.org!not-for-mail From: Paul Tremblay Newsgroups: gmane.comp.tex.context Subject: Re: widow and orphan control Date: Tue, 29 Mar 2005 18:24:37 -0500 Message-ID: <20050329232437.GA30038@localhost.localdomain> References: <20050329030458.GA4547@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112138651 4644 80.91.229.2 (29 Mar 2005 23:24:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 23:24:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 01:24:03 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGQ3m-0005Fv-Kq for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2005 01:23:46 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D2581127D8; Wed, 30 Mar 2005 01:24:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09386-04; Wed, 30 Mar 2005 01:24:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25194127F6; Wed, 30 Mar 2005 01:24:39 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0187127F6 for ; Wed, 30 Mar 2005 01:24:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09383-05 for ; Wed, 30 Mar 2005 01:24:35 +0200 (CEST) Original-Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by ronja.ntg.nl (Postfix) with ESMTP id 23305127D8 for ; Wed, 30 Mar 2005 01:24:35 +0200 (CEST) Original-Received: from [192.107.41.8] (helo=iglou2.iglou.com) by rdsmtp.iglou.com with esmtp (8.12.5/8.12.5) id 1DGQ4Y-00037S-A0 for ntg-context@ntg.nl; Tue, 29 Mar 2005 18:24:34 -0500 Original-Received: from [64.253.97.143] (helo=localhost.localdomain) by iglou2.iglou.com with esmtp (8.12.5/8.12.5) id 1DGQ4Y-0006dY-5O for ntg-context@ntg.nl; Tue, 29 Mar 2005 18:24:34 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 501) id 33B7A1BB72; Tue, 29 Mar 2005 18:24:37 -0500 (EST) Original-To: context mailing list Mail-Followup-To: context mailing list Content-Disposition: inline In-Reply-To: <20050329030458.GA4547@localhost.localdomain> User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:19432 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19432 On Mon, Mar 28, 2005 at 10:04:58PM -0500, Paul Tremblay wrote: > > How does one prevent orphans (the first line nof a paragraph on the last > line of a page) and widows (the last line of a paragraph on a new page)? > > If I have the title of a new section that must not be the last line of a > page, how can I do this? > I've hunted around the web quite a bit, and there doesn't seem to be an easy way to do this. I tried: \clubpenalty=-600 \widowpenalty=-600 But this had no effect. What I would need is some type of macro that can determine how much space is left on the page. If the space is less than some small, pretermined amount (say, 24 points, for example), then put the title on the next page, or put in a \blank[24pt, flexible] I know nothing about writing macros, or if this is possible. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************