I am using the Book class and would like to keep the completeness of a section. That means I would like to have the case A not the case B in the following.
Case A
----- page break ----
text of section 1
blank
----- page break ----
figure of section 1
Title of section 2
text of section 2
Case B
----- page break ----
text of section 1
Title of section 2
text of section 2
----- page break ----
figure of section 1
Anyone has some suggestion?
Thanks a lot!
Page Layout ⇒ position of section
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
position of section
A figure can only be placed at a certain position if there's enough space left on the current page. There are some possible solutions but for the present you could start with some placement parameters for the figure environment.
If that doesn't help, we can discuss other solutions later on.
Best regards and welcome to the board
Thorsten
Code: Select all
\begin{figure}[!ht]
% figure contents
\end{figure}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: position of section
It does not work as expected.
Anyway, thanks
Anyway, thanks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
position of section
Insert a \clearpage command right after the float environment to force its output. Nevertheless the figure can only be placed if there enough space left on the page. You may have to resize the concerned figure to make it appear where you want.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10