From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48667 Path: news.gmane.org!not-for-mail From: Jelle Huisman Newsgroups: gmane.comp.tex.context Subject: hangaround in right side of column? Date: Mon, 23 Mar 2009 17:27:33 +0000 Message-ID: <49C7C685.5060906@jhnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237829348 630 80.91.229.12 (23 Mar 2009 17:29:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2009 17:29:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 23 18:30:24 2009 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 1LlnyI-0006gT-9Z for gctc-ntg-context-518@m.gmane.org; Mon, 23 Mar 2009 18:29:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB14D1FC98; Mon, 23 Mar 2009 18:28:31 +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 18079-04; Mon, 23 Mar 2009 18:27:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA8571FDF4; Mon, 23 Mar 2009 18:27:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 619F01FDF4 for ; Mon, 23 Mar 2009 18:27:50 +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 09190-08 for ; Mon, 23 Mar 2009 18:27:41 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 0BF1D1FC98 for ; Mon, 23 Mar 2009 18:27:41 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2NHRdYs027362 for ; Mon, 23 Mar 2009 18:27:40 +0100 Original-Received: from mail.link77.net (cgp1.mail.link77.net [172.22.65.13]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id n2NHRa5Q000327 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 23 Mar 2009 13:27:37 -0400 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.3 (ClamAV engine v0.94.2) X-ExternalMail: External Original-Received: from [172.17.1.91] (account jelle_huisman@sil.org HELO jelle-macbook.local) by cgp1.mail.link77.net (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 210854478 for ntg-context@ntg.nl; Mon, 23 Mar 2009 13:27:35 -0400 User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.145.81.51; country=US; region=NC; city=Waxhaw; postalcode=28173; latitude=34.9273; longitude=-80.7278; metrocode=517; areacode=704; http://maps.google.com/maps?q=34.9273,-80.7278&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 197771885 - 782ca3fd36e5 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48667 Archived-At: Hi all, I try to get text flowing nicely around a figure but since I'm working in a columns environment \placefloat related stuff doesn't work. Using \starthangaround I get precisely what I want but I need to place figures to the right instead of to the left. I modified the definition for \starthangaround (from cont-new.tex) but I'm afraid I don't understand enough of it to get it working, anyone who can help? \starttext \def\startmyhangaround {\noindent\bgroup \dowithnextbox {\ifdim\nextboxht>\strutht\setbox\nextbox\tbox{\flushnextbox}\fi \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}% \getboxheight\scratchdimen\of\box\nextbox \getnoflines\scratchdimen \nextboxdp\strutdp \nextboxht\strutht \hangindent\nextboxwd \hangafter-\noflines \rlap{\flushnextbox}\ignorespaces} \hbox} \startcolumns[n=2,balance=yes] \dorecurse{2}{\input tufte \par} \startmyhangaround{\externalfigure[cow]} % figure placement is right but, \input tufte % this text needs to start left... \stophangaround \stopcolumns \stoptext Thanks, Jelle ___________________________________________________________________________________ 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 ___________________________________________________________________________________