Graphics, Figures & TablesPage break after figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
xunil
Posts: 3
Joined: Tue Nov 10, 2009 9:36 pm

Page break after figure

Post by xunil »

Hello,

this is my latex code:
...blabla as a texte....

\pagebreak[4]

\begin{figure}[!h]
\centering
\includegraphics[width=375]{schema/chap6/Aberration-franges.png}
\caption{\small texte of caption.}
\label{ex_frange_WFE}
\end{figure}

\begin{figure}[!h]
\centering
\includegraphics[width=375]{schema/chap6/Aberration-franges-suite.png}
\caption{\small texte of caption.}
\label{ex_frange_WFE2}
\end{figure}

\pagebreak[4]

\subsubsection*{Tilt}



The subsubsection "Tilt" appears in the .pdf file before both figures in spite of the "\pagebreak[4]" commands.

Have you an idea to have the figures before the subsubsection in the final .pdf file ? I have also tested the "\newpage" and the "\clearpage" commandes without success.

Thanks,
Regards,
Fabrice.

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: Page break after figure

Post by php1ic »

Have you tried putting the figures before the last paragraph of the subsection, or earlier and being less strict with the placement parameters (i.e. [htb] instead of [!h])?
xunil
Posts: 3
Joined: Tue Nov 10, 2009 9:36 pm

Re: Page break after figure

Post by xunil »

I've just tried your proposed solutions but they are not right.
Have you some other ideas ?
Thanks
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Page break after figure

Post by php1ic »

If you use the float package, it defines another placement parameter of 'H' which means "Here and only here". ie,

Code: Select all

\begin{figure}[H]
...
\end{figure}
There are also other suggestions at the bottom of this page

http://people.cs.uu.nl/piet/floats/node1.html
xunil
Posts: 3
Joined: Tue Nov 10, 2009 9:36 pm

Page break after figure

Post by xunil »

Ok I succedd in putting figures where i want. The used code is hereafter.
The adopted solution is using [hp] in order to define the figures position with respect to the text.

Code: Select all

...text...

\begin{figure}[hp]
    \centering
    \includegraphics[width=375]{schema/chap6/Aberration-franges.png}
    \caption{\small texte of figure caption.}
    \label{ex_frange_WFE}
\end{figure}

\begin{figure}[hp]
    \centering
    \includegraphics[width=375]{schema/chap6/Aberration-franges-suite.png}
    \caption{\small texte of figure caption.}
    \label{ex_frange_WFE2}
\end{figure}

\newpage

\subsubsection*{Tilt}
Thanks for your efficient help,
See you.
Post Reply