On 07/28/2017 10:14 PM, Henning Hraban Ramm wrote:
Ahoi, I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect: [..] While it’s nice that the "Beispiel" paragraphs stays the same width as the main text, even with "offset", I’d like to limit the whole box to the textwidth (or any other measure).
Hi Hraban, I’m not sure wheter it might be a bug in width and maxwith not working, but the following seems to work: \definefloat[Beispiel][Beispiele] \setupfloat[Beispiel][ width=36mm, %~ maxwidth=.6\textwidth, offset=1em, background=color,backgroundcolor=yellow, inner=\hsize.95\textwidth %not very orthodox, anyway ] \setupcaption[Beispiel][ location=none,number=no ] \starttext \input knuth \startplaceBeispiel \input tufte \stopplaceBeispiel \input knuth \stoptext Just in case it helps, Pablo -- http://www.ousia.tk