Hi again,

 

just a quick follow up on this one. Can anyone reproduce this?

Would be good to know how this can be fixed. I have this in a real document, and as I’m typesetting a XML source I cannot just adjust slightly adjust the dimensions to get rid of that.

 

Best,

Denis

 

 

Von: denismaier@mailbox.org <denismaier@mailbox.org>
Gesendet: Mittwoch, 10. April 2024 13:37
An: 'ntg-context@ntg.nl' <ntg-context@ntg.nl>
Betreff: Weird (?) float placement for specific widths of image

 

Hi,

 

another graphics/floats question: consider the following example

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 

\setupexternalfigures

    [location={local,global,default}]

 

\starttext

 

\placefigure{A Cow}{\externalfigure[cow][

                height=.5\textheight,

                ]}

 

\placefigure{A Cow}{\externalfigure[cow][

                height=.3\textheight,

                %height=.4\textheight,

                ]}

 

 

\placefigure{A Cow}{\externalfigure[cow][

                width=3cm,

                %width=2cm,

                ]}

 

\placefigure{A Cow}{\externalfigure[cow][width=2cm]}

 

\placefigure{A Cow}{\externalfigure[cow][width=2cm]}

 

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

 

On the first page, the images appear stacked above each other while on the second page they appear next to each other.

 

It took me some time to reproduce this behaviour, and I can’t claim to understand what is happening… But it seems to be related to the specific widths of the images. When I change them to other values the behaviour disappears. Is this a bug? Anything I can do about this?

 

Best

Denis