From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19442 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: widow and orphan control Date: Wed, 30 Mar 2005 11:35:12 +0200 Message-ID: <424A72D0.7060005@seznam.cz> References: <20050329030458.GA4547@localhost.localdomain> <20050329232437.GA30038@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112175256 24979 80.91.229.2 (30 Mar 2005 09:34:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 09:34:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 30 11:34:11 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 1DGZZy-0001Jp-Aa for gctc-ntg-context-518@m.gmane.org; Wed, 30 Mar 2005 11:33:38 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C032912864; Wed, 30 Mar 2005 11:34:38 +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 15441-05-3; Wed, 30 Mar 2005 11:34:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BBFEB1280A; Wed, 30 Mar 2005 11:34:32 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7530F1280A for ; Wed, 30 Mar 2005 11:34: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 15441-05-2 for ; Wed, 30 Mar 2005 11:34:30 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id A2D35127A9 for ; Wed, 30 Mar 2005 11:34:30 +0200 (CEST) Original-Received: (qmail 1114 invoked from network); 30 Mar 2005 09:34:15 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (vit.zyka@62.240.166.134) by smtp.seznam.cz with SMTP; 30 Mar 2005 09:34:15 -0000 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050329232437.GA30038@localhost.localdomain> X-Antivirus: avast! (VPS 0512-2, 26.03.2005), Outbound message X-Antivirus-Status: Clean 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:19442 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19442 Paul Tremblay 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] You can use the trick (untested): \penalty50 \vskip3\baselineskip plus1fil \nobreak \vskip-3\baselineskip plus-1fil It is useful before section title etc. I believe it is implemented to ConTeXt, but I do not know the interface. vit