General ⇒ How to force placing the figure in the given section?
How to force placing the figure in the given section?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to force placing the figure in the given section?
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to force placing the figure in the given section?
I am going to test why placeins does not work.
Thank you both for replies to my question. Marek.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to force placing the figure in the given section?
The \clear(double)page command forces the output of all float environments defined up to this point.Marek wrote:[...] But the ...{figure}[!ht] fully suffices to solve my problem though I have probably not understood the meaning of \clearpage (in Thorsten advice) and simply I did not use it. [...]
The package defines the \FloatBarrier command which restricts the floating of these environments. Refer to the package documentation to learn more.Marek wrote:[...] I am going to test why placeins does not work. [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10