From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25488 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: placefloat Date: Sat, 21 Jan 2006 20:10:02 +0100 Message-ID: <9A938CF9-38DA-4C11-BF32-F6E640A0F91B@science.uva.nl> References: <6D7F0999-7E76-4137-9495-1489C70F9BDA@science.uva.nl> <43CFC5B4.8080404@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137930653 11377 80.91.229.2 (22 Jan 2006 11:50:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 11:50:53 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 22 12:50:50 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1F0dk5-0004UJ-EK for gctc-ntg-context-518@m.gmane.org; Sun, 22 Jan 2006 12:50:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18708127A6; Sun, 22 Jan 2006 12:50:44 +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 29133-06; Sun, 22 Jan 2006 12:50:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C369112795; Sun, 22 Jan 2006 12:50:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2B3C412795 for ; Sun, 22 Jan 2006 12:50:40 +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 29088-06 for ; Sun, 22 Jan 2006 12:50:39 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 82DAF12772 for ; Sun, 22 Jan 2006 12:50:39 +0100 (CET) Original-Received: from 118-23.uva.surfnetthuis.nl [145.98.118.23] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0MBoa911727; Sun, 22 Jan 2006 12:50:36 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ In-Reply-To: <43CFC5B4.8080404@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new 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:25488 Archived-At: On Jan 19, 2006, at 18:00, Taco Hoekwater wrote: > >> (2) Second question. Is there a mechanism whereby one can force >> the float to at least the next page when there is no room for it >> below the current point on the page? > > There is: > > \startpostponing > > \stoppostponing > > I believe it is mentioned in a manual somewhere, but don't recall > off-hand which one. However, I'm not confident that that mechanism > does precisey what you want, and it is definately not automatic. It seems to do what I wanted. Putting small figures in the margin on the next page from where the call is made. I seem to remember some mentioning of remaining space on the page in "ConTeXt-fashion" but cannot find it again. Or can I just rely on TeX's \pagetotal? I tried something as: \scratchdimen=\textheight \advance\scratchdimen by -\pagetotal \ifdim\scratchdimen<#1\relax ....... Is it an option to enrich \startpostponing to \startpostponing [need=distance]? ( reprogramming \setvalue{\e!start\v!postponing} is it? asks a bit too much of my inner-ConTeXt skills) I tried something on the following lines, but got stuck with a remaining \stoppostponing when there appears to enough space. Defining \stoppostponing to \empty seems not to work. \def\startpostponingwhen[#1]{% \scratchdimen=\textheight \advance\scratchdimen by -\pagetotal \ifdim\scratchdimen<#1\relax \let\dostoppostponingwhen=\stoppostponing \expandafter\startpostponing \fi} yours sincerely, dr. H. van der Meer