Page Layoutposition of section

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mus
Posts: 2
Joined: Tue May 26, 2009 12:03 pm

position of section

Post by mus »

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!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

position of section

Post by localghost »

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.

Code: Select all

\begin{figure}[!ht]
  % figure contents
\end{figure}
If that doesn't help, we can discuss other solutions later on.


Best regards and welcome to the board
Thorsten
mus
Posts: 2
Joined: Tue May 26, 2009 12:03 pm

Re: position of section

Post by mus »

It does not work as expected.

Anyway, thanks
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

position of section

Post by localghost »

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.
Post Reply