[NTG-context] Problem with text floating around tikz picture
Hans Hagen
pragma at wxs.nl
Mon Sep 22 20:38:26 CEST 2008
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
-----------------------------------------------------------------
More information about the ntg-context
mailing list