From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19472 Path: news.gmane.org!not-for-mail From: Paul Tremblay Newsgroups: gmane.comp.tex.context Subject: Re: widow and orphan control Date: Wed, 30 Mar 2005 18:02:22 -0500 Message-ID: <20050330230222.GE13966@localhost.localdomain> References: <20050329030458.GA4547@localhost.localdomain> <20050329232437.GA30038@localhost.localdomain> <424A4CEB.9030005@wxs.nl> 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 1112223730 20041 80.91.229.2 (30 Mar 2005 23:02:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 23:02:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 31 01:02:06 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 1DGmBi-000857-9v for gctc-ntg-context-518@m.gmane.org; Thu, 31 Mar 2005 01:01:26 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 28783128CA; Thu, 31 Mar 2005 01:02:31 +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 23444-03; Thu, 31 Mar 2005 01:02:25 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0BD81283E; Thu, 31 Mar 2005 01:02:25 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 412EE1283E for ; Thu, 31 Mar 2005 01:02:25 +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 23282-06 for ; Thu, 31 Mar 2005 01:02:24 +0200 (CEST) Original-Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by ronja.ntg.nl (Postfix) with ESMTP id 2D5DA12839 for ; Thu, 31 Mar 2005 01:02:24 +0200 (CEST) Original-Received: from [192.107.41.3] (helo=iglou1.iglou.com) by rdsmtp.iglou.com with esmtp (8.12.5/8.12.5) id 1DGmCc-00065M-Uk for ntg-context@ntg.nl; Wed, 30 Mar 2005 18:02:22 -0500 Original-Received: from [64.253.97.143] (helo=localhost.localdomain) by iglou1.iglou.com with esmtp (8.12.5/8.12.5) id 1DGmCc-0005sD-QK for ntg-context@ntg.nl; Wed, 30 Mar 2005 18:02:22 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 501) id 984A91BB72; Wed, 30 Mar 2005 18:02:22 -0500 (EST) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <424A4CEB.9030005@wxs.nl> 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:19472 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19472 On Wed, Mar 30, 2005 at 08:53:31AM +0200, Hans Hagen wrote: > >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. > > \testpage[24pt] > > This produces an unwanted "pt" in my text. But if I use: \testpage[3] I get some very interesting result. It almost seems from my tests that ConTeXt will break if it can't put 3 more "lines" on the page. Almost, anyway. If I have spaces as in: \testpage[3] Title\par \blank[24pt] The code doesn't quite work. It might even make an ugly orphan of poor title. In that case I have to increase the option in \testpage to 5 or 6 to work. So what exactly does the argument stand for? This command might be really useful. Thanks Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************