[NTG-context] How does \setupfloat work?

Mark Szepieniec mszepien at gmail.com
Sun Nov 30 01:06:07 CET 2014


On Sun, Nov 30, 2014 at 12:48 AM, Aditya Mahajan <adityam at umich.edu> wrote:

> On Sat, 29 Nov 2014, Mark Szepieniec wrote:
>
>  So I guess my problem is resolved, but I'd still like to understand better
>> why my earlier solution of doing
>>
>> \setupfloat[figure][width=2cm]
>>
>> didn't set a default for later instances of \placefigure. I feel like I
>> might be missing some aspect of the ConTeXt philosophy, or I'm misreading
>> the manual, or it's just a bug...?
>>
>
> \setupfloat[figure] sets the values of \startplacefigure (and
> \placefigure), and not for \externalfigure. The width value for
> startplacefigure is not used anywhere.
>
> The default value of \setupfloats[width=...] is used when the float box is
> empty. So, the only scenario where the value of \setupfloats[width=...]
> will matter is the following:
>
> \starttext
> \setupfloats[width=2cm]
> \placefloat{}{}
>
> \setupfloats[width=10cm]
> \placefloat{}{}
> \stoptext
>
> Aditya
>
>
Thanks Aditya, that's very helpful and things make more sense now. Is this
stuff documented somewhere or did you consult the source code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20141130/ebb691ff/attachment-0001.html>


More information about the ntg-context mailing list