Images run into each other when using side floats

Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure \samplefile{ward} \blank \framed [width=4cm, height=4cm]{} \samplefile{knuth} \stoptext context 2019.10.29 15:00 Marco

On Wed, 30 Oct 2019, Marco Patzer wrote:
Hi!
Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this?
\setupfloat [figure] [default=left]
\starttext \samplefile{knuth}
\startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure
\samplefile{ward} \blank Add:
\dontleavehmode
\framed [width=4cm, height=4cm]{} \samplefile{knuth} \stoptext
context 2019.10.29 15:00
Aditya

Aditya Mahajan schrieb am 30.10.2019 um 16:55:
On Wed, 30 Oct 2019, Marco Patzer wrote:
Hi!
Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this?
\setupfloat [figure] [default=left]
\starttext \samplefile{knuth}
\startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure
\samplefile{ward} \blank Add:
\dontleavehmode You need also \par or a blank line after the frame.
\dontleavehmode\framed [width=4cm, height=4cm]{}\par Wolfgang

On Wed, 30 Oct 2019 11:55:17 -0400 (EDT)
Aditya Mahajan
On Wed, 30 Oct 2019, Marco Patzer wrote:
Hi!
Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this?
\setupfloat [figure] [default=left]
\starttext \samplefile{knuth}
\startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure
\samplefile{ward} \blank Add:
\dontleavehmode
Thanks for the nudge in the right direction. Is there a way to include the \dontleavehmode in the combinations? The frame is actually a combination (removed while creating MWE). The before key from \setupcombinations doesn't seem to do the right thing here. If that's possible I can leave the sources as they are. \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure \samplefile{ward} \blank \dontleavehmode \startcombination [1*1] \startcontent \framed [width=4cm, height=4cm]{} \stopcontent \startcaption Foo \stopcaption \stopcombination \samplefile{knuth} \stoptext Marco

Marco Patzer schrieb am 30.10.2019 um 17:16:
On Wed, 30 Oct 2019 11:55:17 -0400 (EDT) Aditya Mahajan
wrote: On Wed, 30 Oct 2019, Marco Patzer wrote:
Hi!
Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this?
\setupfloat [figure] [default=left]
\starttext \samplefile{knuth}
\startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure
\samplefile{ward} \blank Add:
\dontleavehmode Thanks for the nudge in the right direction.
Is there a way to include the \dontleavehmode in the combinations? No.
Wolfgang

On Wed, 30 Oct 2019 18:48:43 +0100
Wolfgang Schuster
Marco Patzer schrieb am 30.10.2019 um 17:16:
On Wed, 30 Oct 2019 11:55:17 -0400 (EDT) Aditya Mahajan
wrote: On Wed, 30 Oct 2019, Marco Patzer wrote:
Hi!
Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this?
\setupfloat [figure] [default=left]
\starttext \samplefile{knuth}
\startplacefigure [title=Foo] \framed [width=5cm, height=5cm]{} \stopplacefigure
\samplefile{ward} \blank Add:
\dontleavehmode Thanks for the nudge in the right direction.
Is there a way to include the \dontleavehmode in the combinations? No.
Thanks for the answer and the quick help. Then I'll change the sources. Marco
participants (3)
-
Aditya Mahajan
-
Marco Patzer
-
Wolfgang Schuster