# [NTG-context] text wrapped around \textwidth sized images unwantedly.

Hans Hagen pragma at wxs.nl
Tue Feb 2 10:02:43 CET 2016

On 2/1/2016 11:08 PM, d_jan wrote:
> I use ConTeXt for a document with many images. The text should float
> around the images, if possible.
>
> The floating itself works fine, but some images are equal or larger than
> \textwidth (so they are maxwidth=\textwidth). Instead of breaking above
> the image and starting below it again, the algorithm tries to float a
> bit of text (about 2-4 characters each line) around the image using
> space outside the text area (which naturally causes overfull \hbox-es).
>
> Is there any way to prevent this?
>
> If not, I define another float for these images and assign it to the
> affected images, but I wonder if I can get around this.

try this:

\setupfloat[figure][criterium=10cm,fallback=here]

\placefigure[left]{}{\framed[width=5cm]{}} \input tufte

\placefigure[left]{}{\framed[width=\textwidth]{}} \input tufte

-----------------------------------------------------------------