Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Otared Kavian

On 9 avr. 2010, at 00:08, Vyatcheslav Yatskovsky wrote:

> Hi,
> 
>> How is it possible to have a STEPchart be midaligned, or right-aligned,
> 
> Another way:
> \startnarrower[6*left] \getbuffer \stopnarrower
> 
> -- 
> Best Regards,
> Vyatcheslav Yatskovsky



Thanx Vyatcheslav: your suggestion works perfectly too.
It is always good to have several solutions for a problem…

Best regards: OK
___
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
___


Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Otared Kavian

On 8 avr. 2010, at 22:38, Wolfgang Schuster wrote:

> Am 08.04.10 14:28, schrieb Otared Kavian:
>> 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.
> You can find a few examples for \offset in the details manual: 
> http://pragma-ade.com/show-man-27.htm
> 
> Wolfgang

Thanks Wolfgang! 
Indeed details.pdf is a great document (with a beautiful design), but since I 
didn't know how StepCharts used textwidth, I didn' think about using \offset…

Have a nice day: OK
___
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
___


Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Vyatcheslav Yatskovsky

Hi,


How is it possible to have a STEPchart be midaligned, or right-aligned,


Another way:
\startnarrower[6*left] \getbuffer \stopnarrower

--
Best Regards,
Vyatcheslav Yatskovsky
___
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
___


Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Wolfgang Schuster

Am 08.04.10 14:28, schrieb Otared Kavian:

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.
You can find a few examples for \offset in the details manual: 
http://pragma-ade.com/show-man-27.htm


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
___


Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Otared Kavian
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.kav...@math.uvsq.fr



___
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
___


Re: [NTG-context] How can one center or align a float?

2010-04-08 Thread Wolfgang Schuster

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
___


[NTG-context] How can one center or align a float?

2010-04-08 Thread 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.

Thanks in advance an best regards: OK
___
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
___