Aditya Mahajan wrote:
Now since \placefigure internally places its contents in a \vbox, this boils down to a differnce beween
that will not change .. (being in vmode also has advantages with regards to spurious spaces)
The redefinition at ConTeXt will break some existing documents (i.e., the authors will have to manually add a \vbox where there was none earlier). The redefinition at tikz end will make all pgf code run slightly slower (an extra hbox for each typeset pgfpicture)
not that much slower i guess as not much repackaging is needed, just a box flush; in tikz parsing and calculations of the graphic take much more time (just take look at traced output); if you want to optimize tikz there are other tricks
If neither of these is acceptable, then we can have a simple wrapper around \start-stop tikzpicture:
\def\startTIKZcode{\hbox\bgroup\starttikzpicture} \def\stopTIKZcode {\stoptikzpicture\egroup}
which will only affect ConTeXt code.
or just add a \dontleavehmode in front of the picture 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 -----------------------------------------------------------------