ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Re: Weird (?) float placement for specific widths of image
@ 2024-04-19 15:48 Denis Maier via ntg-context
  2024-04-19 17:20 ` Pablo Rodriguez via ntg-context
  2024-04-19 18:18 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Denis Maier via ntg-context @ 2024-04-19 15:48 UTC (permalink / raw)
  To: ntg-context; +Cc: denismaier


[-- Attachment #1.1: Type: text/plain, Size: 1649 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 6755 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Weird (?) float placement for specific widths of image
  2024-04-19 15:48 [NTG-context] Re: Weird (?) float placement for specific widths of image Denis Maier via ntg-context
@ 2024-04-19 17:20 ` Pablo Rodriguez via ntg-context
  2024-04-19 18:18 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2024-04-19 17:20 UTC (permalink / raw)
  To: Denis Maier via ntg-context; +Cc: Pablo Rodriguez

On 4/19/24 17:48, Denis Maier via ntg-context wrote:
> Hi again,
>
> just a quick follow up on this one. Can anyone reproduce this?

Hi Denis,

I can reproduce it.

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

It seems that you can place the figures somehow
(https://www.pragma-ade.nl/general/qrcs/setup-en.pdf#page=169):

See the extreme example:

  \showframe\showgrid\showstruts
  \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[inleft]{A Cow}{\externalfigure[cow][width=2cm]}

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

Just in case it helps,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Weird (?) float placement for specific widths of image
  2024-04-19 15:48 [NTG-context] Re: Weird (?) float placement for specific widths of image Denis Maier via ntg-context
  2024-04-19 17:20 ` Pablo Rodriguez via ntg-context
@ 2024-04-19 18:18 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-04-19 18:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Denis Maier via ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 376 bytes --]

Denis Maier via ntg-context schrieb am 19.04.2024 um 17:48:
>
> 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.
>

\setupfloats[compress=no]

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1908 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-04-19 18:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-19 15:48 [NTG-context] Re: Weird (?) float placement for specific widths of image Denis Maier via ntg-context
2024-04-19 17:20 ` Pablo Rodriguez via ntg-context
2024-04-19 18:18 ` Wolfgang Schuster

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