From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38689 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: place figures at the end of document Date: Fri, 18 Jan 2008 20:56:32 +0100 Message-ID: <20080118205632.ffafbb16.schuster.wolfgang@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200688291 15418 80.91.229.12 (18 Jan 2008 20:31:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2008 20:31:31 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 18 21:31:48 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1JFxsS-0000k9-AF for gctc-ntg-context-518@m.gmane.org; Fri, 18 Jan 2008 21:31:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D47D31FC24; Fri, 18 Jan 2008 21:31:18 +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 24170-02-2; Fri, 18 Jan 2008 21:30:40 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3261C1FB3C; Fri, 18 Jan 2008 20:57:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D89381FB30 for ; Fri, 18 Jan 2008 20:57:16 +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 17157-03 for ; Fri, 18 Jan 2008 20:56:38 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by ronja.ntg.nl (Postfix) with ESMTP id EDF441FC00 for ; Fri, 18 Jan 2008 20:56:36 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so1210991fga.8 for ; Fri, 18 Jan 2008 11:56:36 -0800 (PST) Original-Received: by 10.86.72.15 with SMTP id u15mr3439463fga.11.1200686196570; Fri, 18 Jan 2008 11:56:36 -0800 (PST) Original-Received: from rover ( [84.149.103.24]) by mx.google.com with ESMTPS id 12sm6331266fgg.6.2008.01.18.11.56.35 (version=SSLv3 cipher=OTHER); Fri, 18 Jan 2008 11:56:35 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 2.4.8 (GTK+ 2.10.14; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:38689 Archived-At: On Fri, 18 Jan 2008 17:36:26 +0100 "Peter I. Hansen" wrote: > Hi, > > Is there a way in ConTeXt to place figures (and other floats) at the > very end of the document? > > More specifically I would like to keep on having to placefigure code > at the relevant place in the text where I would normally typeset with > the option [here], but sometimes readers want all figures moved to the > end of the document and it would be handy if this could be done by > changing a keyword. > > thanks, Peter Interesting but very hard topic, I found a solution but it did only work for a few pictures. \unprotect \installfloathandler {save} \somesavefloat \def\placesomesavefloat{\OTRcommand\somesavefloat} %\def\somesavefloat[#1]{\dosavefloat} \def\somesavefloat{\placesomesavefloat} \def\somesavefloat[#1]% {\global\setbox\floatlist\vbox {\nointerlineskip \unvbox\floatlist \uncenteredfloatbox}} %\def\OTRONEsomesavefloat[#1]{\savefloat} \def\OTRONEsomesavefloat[#1]{\setbox\floatbox\vbox{\box\floatbox}} \def\placesavedfloats{\box\floatlist} %\def\placesavedfloats % {\loop\ifdim\ht\floatlist>0pt % \vsplit\floatlist to\lineheight % \repeat} \protect \starttext \dorecurse{4} % 5 and more did fail {\input knuth\par \expanded{\placefigure[save]{Figure \recurselevel}{\blackrule[width=6cm,height=4cm]}}} \page \placesavedfloats \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________