From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44413 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Problem with text floating around tikz picture Date: Mon, 29 Sep 2008 15:19:03 +0200 Message-ID: <6faad9f00809290619t3dc395adj1e009cd59f25594e@mail.gmail.com> References: <20080922180300.GE10939@atos.labs.wmid.amu.edu.pl> <6faad9f00809221113s4d7e0400t59d0d2dc21515091@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 1222694484 7429 80.91.229.12 (29 Sep 2008 13:21:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2008 13:21:24 +0000 (UTC) Cc: Till Tantau To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 29 15:22:22 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 1KkIhi-0006ed-Cq for gctc-ntg-context-518@m.gmane.org; Mon, 29 Sep 2008 15:22:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C200E1FE5E; Mon, 29 Sep 2008 15:21:17 +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 00640-01-36; Mon, 29 Sep 2008 15:20:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C72D1FE4E; Mon, 29 Sep 2008 15:20:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B9071FE2B for ; Mon, 29 Sep 2008 15:20:29 +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 32593-02-35 for ; Mon, 29 Sep 2008 15:19:51 +0200 (CEST) Original-Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by ronja.ntg.nl (Postfix) with ESMTP id ECDB71FED4 for ; Mon, 29 Sep 2008 15:19:04 +0200 (CEST) Original-Received: by wr-out-0506.google.com with SMTP id c30so1050499wra.14 for ; Mon, 29 Sep 2008 06:19:04 -0700 (PDT) Original-Received: by 10.150.134.21 with SMTP id h21mr7831466ybd.181.1222694343997; Mon, 29 Sep 2008 06:19:03 -0700 (PDT) Original-Received: by 10.150.137.7 with HTTP; Mon, 29 Sep 2008 06:19:03 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:44413 Archived-At: 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. > > Sorry, > Till > > > Am 22.09.2008 um 20:13 schrieb Mojca Miklavec: > >> On Mon, Sep 22, 2008 at 8:03 PM, Marcin Borkowski >> wrote: >>> >>> Hi again;), >>> >>> this won't work: >>> >>> \placefigure[right]{none}{\starttikzpicture >>> \draw (0,0) -| (2,2) -| (0,0) -- (2,2) >>> (2,0) -- (0,2) >>> (1,1) circle(1); >>> \stoptikzpicture} >>> (some text...) >>> >>> The tikzpicture apparently extends to the whole text width, resulting in >>> an overfull box (and nasty paragraph formatting). Putting it into an >>> \hbox helps, so I know what to do; the question is, _why_ this works >>> that way? ___________________________________________________________________________________ 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 ___________________________________________________________________________________