On 2012-02-08 Wagner Macedo <wagnerluis1...@gmail.com> wrote:

> My  layout  style  require  that table  or  figure  captions  stay
> centered only  if short.  If long,  it needs  that the  caption be
> justified (like normal text, but less width).

I don't know if  I get you right, but I think  you are talking about
the width  of the  caption. It  adaptes to the  with of  the figure.
There is the “minwidth” parameter  for \setupcaptions, but since the
short captions  will not be centred  it's probably not what  you aim
for.  I don't  have a  solution, but  a workaround  that alters  the
global width setting for an individual caption:

\useMPlibrary [dum]
\starttext

\startplacefigure [title=Foo Bar]
        \externalfigure [placeholder]
\stopplacefigure

\setupcaptions [width=.8\textwidth]
\startplacefigure [title={\input tufte\par}]
        \externalfigure [placeholder]
\stopplacefigure
\setupcaptions [width=fit]

\startplacefigure [title=Foo Bar]
        \externalfigure [placeholder]
\stopplacefigure

\input knuth

\stoptext

Marco


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

Reply via email to