* [NTG-context] Why are my images floating away even though I used "here" and "force" settings?
[not found] <1487024806.2139066.1732801137096.ref@mail.yahoo.com>
@ 2024-11-28 13:38 ` Joel via ntg-context
2024-11-28 14:51 ` [NTG-context] " Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: Joel via ntg-context @ 2024-11-28 13:38 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2183 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] 4+ messages in thread
* [NTG-context] Re: Why are my images floating away even though I used "here" and "force" settings?
2024-11-28 13:38 ` [NTG-context] Why are my images floating away even though I used "here" and "force" settings? Joel via ntg-context
@ 2024-11-28 14:51 ` Henning Hraban Ramm
2024-11-28 15:00 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-11-28 14:51 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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] 4+ messages in thread
* [NTG-context] Re: Why are my images floating away even though I used "here" and "force" settings?
2024-11-28 14:51 ` [NTG-context] " Henning Hraban Ramm
@ 2024-11-28 15:00 ` Wolfgang Schuster
2024-11-28 15:50 ` Henning Hraban Ramm
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2024-11-28 15:00 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
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
___________________________________________________________________________________
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] 4+ messages in thread
* [NTG-context] Re: Why are my images floating away even though I used "here" and "force" settings?
2024-11-28 15:00 ` Wolfgang Schuster
@ 2024-11-28 15:50 ` Henning Hraban Ramm
0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-11-28 15:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2024-11-28 15:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1487024806.2139066.1732801137096.ref@mail.yahoo.com>
2024-11-28 13:38 ` [NTG-context] Why are my images floating away even though I used "here" and "force" settings? Joel via ntg-context
2024-11-28 14:51 ` [NTG-context] " Henning Hraban Ramm
2024-11-28 15:00 ` Wolfgang Schuster
2024-11-28 15:50 ` Henning Hraban Ramm
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).