ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with text floating around tikz picture
Date: Mon, 22 Sep 2008 20:38:26 +0200	[thread overview]
Message-ID: <48D7E622.8080401@wxs.nl> (raw)
In-Reply-To: <20080922180300.GE10939@atos.labs.wmid.amu.edu.pl>

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?

\starttikzpicture

should do the box trick ...

\let\normalstarttikzpicture\starttikzpicture
\let\normalstoptikzpicture \stoptikzpicture

\def\starttikzpicture{\hbox\bgroup\nomalstarttikzpicture}
\def\stoptikzpicture {\nomalstoptikzpicture\egroup}

but i'm not maintaining thst module myself

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
___________________________________________________________________________________


  reply	other threads:[~2008-09-22 18:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-22 18:03 Marcin Borkowski
2008-09-22 18:38 ` Hans Hagen [this message]
2008-09-28 14:19 ` Has anybody used asymptote without LaTeX? Alan BRASLAU
2008-09-29  5:17   ` Zhichu Chen
2008-09-29  5:57     ` Yue Wang
2008-09-29 12:09       ` Zhichu Chen
2008-09-29 17:19       ` Michail Vidiassov
2008-10-08 16:49         ` Zhichu Chen
2008-10-10  2:48           ` Zhichu Chen
2008-10-11  5:25             ` Michail Vidiassov
2008-10-11 12:02               ` Zhichu Chen
     [not found] ` <6faad9f00809221113s4d7e0400t59d0d2dc21515091@mail.gmail.com>
     [not found]   ` <D4C70B23-AD3C-4464-BF88-61F25EFCBF53@tcs.uni-luebeck.de>
2008-09-29 13:19     ` Problem with text floating around tikz picture Mojca Miklavec
2008-09-29 20:29       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D7E622.8080401@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).