Thanks Wolfgang, your solution does perfectly what I do need. I guess the \offset trickery can be used for other floats as well, when fine tuning is necessary. Many thanks again: OK On 8 avr. 2010, at 12:01, Wolfgang Schuster wrote:
Am 08.04.10 11:10, schrieb Otared Kavian:
Hi all,
How is it possible to have a STEPchart be midaligned, or right-aligned, as one may do this with figures, tables, and FLOWcharts? An example is here:
%%%%%%%%%%%% \usemodule[steps,mathml] \starttext \startbuffer[test-chart] \startSTEPtable \cell {$c=2a+3b$} \text {with $a=5$} \cell {$c=10+3b$} \text {and $b=6$} \cell {$c=10+18$} \text {we get} \cell {$c=28$} \stopSTEPtable \stopbuffer How can one center the following \type{\STEPchart}? \getbuffer[test-chart] \stoptext %%%%%%%%%%%%
I should add that \startalignment[middle], or \placefigure do not have any influence on the alignment of the above example.
You have to adjust it by hand, stepchart use the complete textwidth and alignments is useless in this case, use \offset to shift the chart to the right side.
\offset[x=.3\textwidth]{\getbuffer[test-chart]}
Wolfgang
___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
%%%%%%%%%%%%%%%%%% Otared Kavian Département de Mathématiques Université de Versailles Saint-Quentin Bâtiment Fermat 45 aveue des Etats Unis 78035 Versailles cedex Téléphone: +33 1 39 25 46 42 Secrétariat: +33 1 39 25 46 44 Secrétariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr