LaTeX: Large figure floats to the end of the chapter

figurelatex

I have a LaTeX-document using the class

\documentclass[12pt,a4paper]{scrbook}

and I changed some parameters for positioning the floats:

\renewcommand{\topfraction}{1} %default: 0.7
\renewcommand{\bottomfraction}{1} %default: 0.3
\renewcommand{\textfraction}{0.1} %default: 0.2
\renewcommand{\floatpagefraction}{1} %default: 0.6
\setcounter{topnumber}{3}
\setcounter{bottomnumber}{3}

I have two graphics that should be among each other and fill one single page. I don't know why, but because LaTeX always splits both graphics on two pages, I put both graphics into one figure-environment. It doesn't matter whether I use [ht] or [p] the figure with both graphics moves to the end of the chapter. I don't get any overfull warnings. So I think it might not the reason that the figure is too large.

\begin{figure}[p]
\centering
\includegraphics{graphic1.pdf}
\newcaption{caption 1} % <-- using \usepackage{picins}
\label{fig:pic1}

\vspace{5mm}

\includegraphics{graphic2.pdf}
\newcaption{caption 2}
\label{fig:pic2}
\end{figure}

Is there someone, who can explain that behaviour of LaTeX and can recommend a solution.

Best Answer

This is standard behaviour in latex because it takes care of all positioning. I personally wouldn't mess this up and would instead refer to the images.

If you nevertheless want to position them at the given line in the text:

Use the package float and place your images this way.

\usepackage{float}

\begin{figure}[H]
...
\end{figure}
Related Topic