Dnia Wed, Aug 27, 2008 at 11:14:26AM +0200, Marcin Borkowski napisał(a):
> Why this does not center the figure horizontally? What should I do to
> center it?
>
> \placefigure{none}{
> \starttikzpicture[scale=0.3]
> \draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
> \stoptikzpicture
> }
>
> I discovered that using combinations with "1*1" helps, but this is a
> dirty trick;). (Also, "none" as a label does not work with combinations
> - is it a bug or a feature?)
OK, so I'm answering myself. The problem is (I guess so at least) that
the second parameter somehow gets typeset "as a paragraph" - that is,
with full paragraph's width (=width of the whole column). Since nothing
is said about centering, it is flush left. This helps:
\placefigure{none}{\hbox{
\starttikzpicture[scale=0.5]
\draw (0,0) -- (5,0) -- (4.5,6) -- (1.5,6) -- cycle;
\stoptikzpicture
}}
Maybe it's not very clean, but it seems to work. If anyone has a
cleaner (more "ConTeXt-way-ish" solution), I'd be thankful for a hint.
Greets
--
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.pl)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________