Why are my images floating away even though I used "here" and "force" settings?
I have a textbook that includes images--and I don't care that they are placed wherever. But for the workbook, its confusing for the readers if the images float to another location. If the items don't appear in this order, it really gets confusing, as basically there is an activity that says "color the map" and students can't find the map--even if its just a page later. TitleInstructionsImageRequirements In other words, I can't have it float somewhere else, though if a page break is needed before it or after it, then that is okay, if that is what is needed to get it to appear. I thought "here" and "force" were supposed to be the commands to achieve this, but its still resulting in the image appearing after requirements or sometimes, after the next activity, which is too confusing to readers. \placefigure[here, force]{Map of New Mexico}{\externalfigure[map1a][width=.8\textwidth]} What more is needed to make it appear exactly as the next item after instructions, and before requirements, without floating away, even if that means a lot of empty space is going to be added to the page? --Joel
Am 28.11.24 um 14:38 schrieb Joel via ntg-context:
\placefigure[here, force]{Map of New Mexico}{\externalfigure[map1a] [width=.8\textwidth]}
The space in "here, force" might confuse the parser, but "force" implies "here" anyway.
What more is needed to make it appear exactly as the next item after instructions, and before requirements, without floating away, even if that means a lot of empty space is going to be added to the page?
Include \placefloats in your structure setup, e.g. like \setuphead[section][before={\placefloats}] or like \setuphead[section][aftersection={\placefloats}] to avoid floating to the next section. HTH Hraban
Henning Hraban Ramm schrieb am 28.11.2024 um 15:51:
Am 28.11.24 um 14:38 schrieb Joel via ntg-context:
\placefigure[here, force]{Map of New Mexico}{\externalfigure[map1a] [width=.8\textwidth]}
The space in "here, force" might confuse the parser, but "force" implies "here" anyway.
The space after the comma isn't a problem but but you can't use here and force at the same time. To prevent the float from moving to another position use force but here is just a suggestion which can be ignored by Context. Wolfgang
Am 28.11.24 um 16:00 schrieb Wolfgang Schuster:
Henning Hraban Ramm schrieb am 28.11.2024 um 15:51:
Am 28.11.24 um 14:38 schrieb Joel via ntg-context:
\placefigure[here, force]{Map of New Mexico}{\externalfigure[map1a] [width=.8\textwidth]}
The space in "here, force" might confuse the parser, but "force" implies "here" anyway.
The space after the comma isn't a problem but but you can't use here and force at the same time.
To prevent the float from moving to another position use force but here is just a suggestion which can be ignored by Context.
Thanks for the correction. Another hint: Sometimes rounding errors are the reason why ConTeXt thinks an image is too big to fit and moves it to the back. Try width=.99tw instead of 1tw. Hraban
participants (3)
-
Henning Hraban Ramm
-
Joel
-
Wolfgang Schuster