ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* width of floats
@ 2017-07-28 20:14 Henning Hraban Ramm
  2017-07-30  8:30 ` Pablo Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2017-07-28 20:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Ahoi,
I wonder how I can limit the width of a custom float, neither "width" nor "maxwidth" seems to have any effect:


\definefloat[Beispiel][Beispiele]
\setupfloat[Beispiel][
    %width=36mm,
    maxwidth=.6\textwidth,
    offset=1em,
    background=color,backgroundcolor=yellow,
]
\setupcaption[Beispiel][
    location=none,number=no
]

\starttext

\input knuth

\startplaceBeispiel
\input tufte
\stopplaceBeispiel

\input knuth

\stoptext


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).



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-30  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-28 20:14 width of floats Henning Hraban Ramm
2017-07-30  8:30 ` Pablo Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).