From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23432 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: The whole (sub)section on a single page Date: Sun, 13 Nov 2005 14:58:38 +0100 Message-ID: <4377468E.4010802@elvenkind.com> References: <6faad9f00511121555x5ff6084dn26e714128030392e@mail.gmail.com> 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 1131890528 29796 80.91.229.2 (13 Nov 2005 14:02:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Nov 2005 14:02:08 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 13 15:02:07 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 1EbIPb-0005Ge-HW for gctc-ntg-context-518@m.gmane.org; Sun, 13 Nov 2005 15:00:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25A07127B4; Sun, 13 Nov 2005 15:00:47 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05960-01; Sun, 13 Nov 2005 15:00:46 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 783C1127A5; Sun, 13 Nov 2005 14:59:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B1AB127A5 for ; Sun, 13 Nov 2005 14:59:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05675-05-2 for ; Sun, 13 Nov 2005 14:59:00 +0100 (CET) Original-Received: from post-25.mail.nl.demon.net (post-25.mail.nl.demon.net [194.159.73.195]) by ronja.ntg.nl (Postfix) with ESMTP id 5DFCD127A1 for ; Sun, 13 Nov 2005 14:59:00 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:45749 helo=[192.168.1.3]) by post-25.mail.nl.demon.net with esmtp (Exim 4.51) id 1EbINn-0009cL-T7 for ntg-context@ntg.nl; Sun, 13 Nov 2005 13:59:00 +0000 User-Agent: Mozilla Thunderbird 1.0 (X11/20050215) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00511121555x5ff6084dn26e714128030392e@mail.gmail.com> X-Virus-Scanned: 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:23432 Archived-At: Mojca Miklavec wrote: > It doesn't need to automatically determine the subsection boundaries > automatically (although this would be great), so I can write something > like this: > > \startmaterialforonepage > \subsection{split only if too long for one page} > \dorecurse{10}{whatever comes here \dots } > \stopmaterialforonepage Do you want something like this? \long\def\startmaterialforonepage#1\stopmaterialforonepage% {\setbox0\vbox{#1}\ifdim\ht0<\textheight \page\fi #1} Taco