From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44431 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with text floating around tikz picture Date: Mon, 29 Sep 2008 22:29:35 +0200 Message-ID: <48E13AAF.3030007@wxs.nl> References: <20080922180300.GE10939@atos.labs.wmid.amu.edu.pl> <6faad9f00809221113s4d7e0400t59d0d2dc21515091@mail.gmail.com> <6faad9f00809290619t3dc395adj1e009cd59f25594e@mail.gmail.com> 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 1222720505 4871 80.91.229.12 (29 Sep 2008 20:35:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2008 20:35:05 +0000 (UTC) Cc: Till Tantau To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 29 22:36:02 2008 connect(): Connection refused 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 1KkPTN-00055z-G2 for gctc-ntg-context-518@m.gmane.org; Mon, 29 Sep 2008 22:36:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 062A11FE57; Mon, 29 Sep 2008 22:34:57 +0200 (CEST) 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 05975-02-4; Mon, 29 Sep 2008 22:34:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9FCAC1FB4E; Mon, 29 Sep 2008 22:34:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C56BF1FB3C for ; Mon, 29 Sep 2008 22:34:04 +0200 (CEST) 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 08637-01 for ; Mon, 29 Sep 2008 22:33:33 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 837451FB57 for ; Mon, 29 Sep 2008 22:29:37 +0200 (CEST) Original-Received: from [10.100.1.112] (unverified [10.100.1.11]) by controller-1 (SurgeMail 3.9e) with ESMTP id 2169-1840426 for multiple; Mon, 29 Sep 2008 22:29:36 +0200 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <6faad9f00809290619t3dc395adj1e009cd59f25594e@mail.gmail.com> X-Originating-IP: 10.100.1.11 X-Authenticated-User: hagen@controller-1 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:44431 Archived-At: Mojca Miklavec wrote: > Hello, > > I'm forwarding the author's answer back to the mailing list. If anyone > has some nice idea about possible solutions, let us/him know ... > I don't remember how I was solving such problems so far, but I know > that I have always been missing: > > % maybe even some external file with extremely long code > \starttikzpicture{picture name} > .... > \stoptikzpicture > > \placefigure{some figure}{\usetikzpicture{picture name}} > > If that was implemented, maybe \usetikzpicture could be inside an hbox? > > Mojca > > On Mon, Sep 29, 2008 at 3:12 PM, Till Tantau wrote: >> Hi! >> >> the problem is caused by the fact that a tikz/pgf picture is a \hbox, but >> with \leavevmode before it. This turned out to be necessary to ensure that >> tikzpictures behave the same way for all backend drivers. >> >> Certainly the added \hbox is a correct solution to this problem since it >> gets tex back into the right "mode"... >> >> I don't really know how to change this in an elegant manner since existing >> code will now assume that tikzpictures are always set in horizontal mode, so >> any change could have desastrous consequences for existing documents. maybe you can use (in the context variant) \ifinsidefloat (true when inside a floating body, so just then put an hbox around it) (sometimes putting \dontleavehmode in front also helps) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________