I've been having some problems with tikz figures. When I define a new
tikz figure, I normally put it in a buffer:


which I use later when I place the figure

\placefigure{My picture}{\getbuffer[mypic]}

The problem is that the figure is not centred: it is always aligned with
the left side of the document. I guess this has something to do with
Context not being able to get the image bounds, since it works fine for
tikz images that are already precompiled into PDFs:

\placefigure{My picture}{\externalimage[mypic.pdf]}

Minimal example is attached.


Michael Murphy <michael.mur...@uni-ulm.de>
University of Ulm


    \fill[red] (0,0) circle (2);

\placefigure{A tikz figure}{\getbuffer[tikz-picture]}

\placefigure{Another tikz figure}{
    \fill[red] (0,0) circle (2);

\placefigure{An external tikz figure}{


Attachment: tikzfig.pdf
Description: Adobe PDF document

If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

Reply via email to