On 2012-02-09 Peter Münster <pmli...@free.fr> wrote:

> \defineframed[FullWidth][offset=overlay, width=\textwidth,
>   frame=off, align=middle]
> \starttext
> \placefigure[here]{\input tufte\relax}
>             {\FullWidth{\externalfigure[any][width=3cm]}}
> \placefigure[here]{Short}
>             {\FullWidth{\externalfigure[any][width=3cm]}}
> \stoptext
> 
> Is this a solution?

This looks  like the solution,  yes. However you scatter  the source
with \FullWidth commands.  Wagners solution seems to  be more clean.
So we end up with the following:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Sorry Aditya, for not using your kitties ;)
\useMPlibrary [dum]

\defineframed [FigureFramed]
        [
                 width=.8\textwidth,
                offset=overlay,
                 frame=off,
        ]

% Doesn't work :( Why not?
%\setupfloat [figure] [width=.8\textwidth]

\setupfloat [figure] [command=\FigureFramed]

\starttext

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

\startplacefigure [title={\input tufte\par}]
        \externalfigure [placeholder]
\stopplacefigure

\input knuth

\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

But the question is, why does setting the float width in \setupfloat
fail?  What  else is  it  supposed  to do?  It  doesn't  seem to  do
anything.

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