From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75515 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: [***NOSPAM***] placefigure adds break Date: Thu, 5 Apr 2012 15:38:05 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <20120405153805.46011a87@sole.extra.cea.fr> References: <16D5B6D1-8422-474C-BF61-D6981DB0593C@st.estfiles.de> <85E4DD78-4AFC-44FB-835F-BA5415B34C5A@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1333632841 7814 80.91.229.3 (5 Apr 2012 13:34:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Apr 2012 13:34:01 +0000 (UTC) Cc: context@st.estfiles.de To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 05 15:34:00 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SFmp4-0000Ba-4G for gctc-ntg-context-518@m.gmane.org; Thu, 05 Apr 2012 15:33:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 39D21101E4; Thu, 5 Apr 2012 15:33:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sX2uw6UmcLOE; Thu, 5 Apr 2012 15:33:53 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5733101DF; Thu, 5 Apr 2012 15:33:53 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5EE8101DF for ; Thu, 5 Apr 2012 15:33:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7-OOMUlVYYbQ for ; Thu, 5 Apr 2012 15:33:49 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 17A0C10194 for ; Thu, 5 Apr 2012 15:33:49 +0200 (CEST) Original-Received: from sainfoin-out.extra.cea.fr (sainfoin-out.extra.cea.fr [132.167.192.144]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q35DXlwK012387 for ; Thu, 5 Apr 2012 15:33:48 +0200 Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by sainfoin.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id q35DXlcf025771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 5 Apr 2012 15:33:47 +0200 Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire2.extra.cea.fr (8.14.4/8.14.4) with ESMTP id q35DXlP4008917; Thu, 5 Apr 2012 15:33:47 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from sole.extra.cea.fr (iram-ha-003840.extra.cea.fr [132.166.25.152]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.2) with ESMTP id q35DXlDP017507; Thu, 5 Apr 2012 15:33:47 +0200 In-Reply-To: <85E4DD78-4AFC-44FB-835F-BA5415B34C5A@st.estfiles.de> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=132.167.192.144; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TGSdxM2m - 8a1e8ff7b2e6 - 20120405 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75515 Archived-At: On Thu, 5 Apr 2012 13:39:42 +0200 Steffen Wolfrum wrote: > > Am 05.04.2012 um 13:25 schrieb luigi scarso: > > > On Thu, Apr 5, 2012 at 1:10 PM, Aditya Mahajan > > wrote: > >> (Untested) > >> > >> \startpostponing[+1] > >> \placefigure[top]{}{...} > >> \stoppostponing > >> > >> Rest of the text > >> > >> > >> Aditya > > \starttext > > > > \switchtobodyfont[rm,10pt] > > > > \input tufte \input ward \input zapf \input tufte \input ward \input > > zapf \input tufte \input ward % > > \input zapf \input tufte \input ward % > > \input zapf HERE% > > \startpostponing[+1] > > \placefigure[top]{}{\vskip3pt\externalfigure[foo][frame=off,width=\dimexpr(\textwidth-10mm)]} > > \stoppostponing% > > AND HERE \input tufte \input ward % > > \input zapf \input tufte \input ward \input zapf \input tufte \input > > ward \input zapf \input tufte % > > \input ward \input zapf \input tufte \input ward \input zapf > > > > \stoptext > > > > seems ok > > > > indeed, a great result. > (searching for this command now, I saw that it's a quite old > command ... only I never knew it) > > thanks a lot Aditya and Luigi! I have been looking for a trick to place figures near their reference in the text, without imposing a paragraph break. This trick works (so thanks again to Aditya and Luigi): \starttext Some text is described \in{figure}[fig:reference]. \startpostponing[+0] \startplacefigure[location=here,reference=fig:reference, title={This figure gets placed somewhere near its reference.}] \externalfigure[cow][width=\textwidth] \stopplacefigure \stoppostponing The text continues here without a paragraph break. \stoptext A few comments: 1. The \startpostponing...\stoppostponing is necessary, although some other wrapper around the placefigure might also work. 2. The % at the end of the lines in the above examples is not necessary unless one seeks to kill the spacing between {HERE}{AND HERE}. 3. One should preferably be using \startplacefigure\stopplacefigure (rather than \placefigure). Besides being cleaner, as a bonus one gets to use title={},list={} for the figure caption and list of figure entry. Should placefigure be "fixed" somehow so as to hide its paragraph break itself? Alan ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________