From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23463 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: The whole (sub)section on a single page Date: Mon, 14 Nov 2005 19:11:09 +0100 Message-ID: <6faad9f00511141011g40a31af8nac87df252a3d6f5e@mail.gmail.com> References: <6faad9f00511121555x5ff6084dn26e714128030392e@mail.gmail.com> <4377468E.4010802@elvenkind.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 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1131991935 17228 80.91.229.2 (14 Nov 2005 18:12:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2005 18:12:15 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 14 19:12:13 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 1Ebind-0006mt-Kr for gctc-ntg-context-518@m.gmane.org; Mon, 14 Nov 2005 19:11:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 825F01277E; Mon, 14 Nov 2005 19:11:19 +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 24847-01; Mon, 14 Nov 2005 19:11:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FA6D1278E; Mon, 14 Nov 2005 19:11:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 113771278E for ; Mon, 14 Nov 2005 19:11:13 +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 24846-01 for ; Mon, 14 Nov 2005 19:11:12 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by ronja.ntg.nl (Postfix) with ESMTP id 2D0361277E for ; Mon, 14 Nov 2005 19:11:09 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id l37so262380nfc for ; Mon, 14 Nov 2005 10:11:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fl1ukwQaM1rykLAUCKrdxCT4mNl5z5Ah+gMAsVtmlg3P2ZE3Ymwz8ceXbfoYr2m/l9Ba402DvxQlwvSgLcDyQvewqSdyywejzjER8enAOokJQ8topwLnxA1QYenkYWLbLobnI47i90MZL6sBQeWTkkNoBmjkdZcOoq9rMcIFikU= Original-Received: by 10.48.239.2 with SMTP id m2mr226185nfh; Mon, 14 Nov 2005 10:11:09 -0800 (PST) Original-Received: by 10.48.3.15 with HTTP; Mon, 14 Nov 2005 10:11:09 -0800 (PST) Original-To: mailing list for ConTeXt users In-Reply-To: <4377468E.4010802@elvenkind.com> Content-Disposition: inline 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:23463 Archived-At: Taco Hoekwater wrote: > 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} Thak you, Taco. Yes, this is almost exactly what I wanted to do, except that I would substitute \ifdim\ht0<\textheight with \ifdim\ht0<\theremainingpageheight How/where can I get \theremainingpageheight? I saw some strange "keywords" like \pagegoal, \pagetotal spread through the source, ... but I have no clue what they are for and if they have anyting to do with what I'm looking for. Thans a lot, Mojca