I'm currently writing my thesis... It's almost finished but there are a few minor things that I still need to work on. One of them is a large picture (or rather 4 pictures combined with the subcaption package) that refuses to stay in place.
Example code:
Code: Select all
\documentclass[11pt,a4paper,oneside]{article}
\usepackage{a4wide}
\usepackage[dutch]{babel}
\usepackage{amsmath}
\usepackage{url}
\usepackage{graphicx}
\usepackage[latin1]{inputenc}
\usepackage[small,bf,hang]{caption}
\usepackage{xspace}
\usepackage[per-mode=symbol, output-decimal-marker={,}, separate-uncertainty=true, exponent-product=\cdot]{siunitx}
\usepackage{microtype}
\usepackage[fixlanguage]{babelbib}
\selectbiblanguage{dutch}
\usepackage[hidelinks]{hyperref}
\usepackage{booktabs}
\usepackage{subcaption}
\captionsetup{margin=10pt,font=small,labelfont=bf}
\usepackage[usenames]{xcolor}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{textcomp}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[top=2.5cm, bottom=2.5cm, left=3cm, right=3cm]{geometry}
\usepackage[section,below]{placeins}
\begin{document}
stuff
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
more stuff
\subsubsection{subsubsection}
even more stuff
\begin{figure}
\centering
\begin{subfigure}[t]{0.4\textwidth}
\includegraphics[width=\textwidth]{LagenA}
\end{subfigure}
\quad
\begin{subfigure}[t]{0.4\textwidth}
\includegraphics[width=\textwidth]{LagenB}
\end{subfigure}
\begin{subfigure}[t]{0.5\textwidth}
\includegraphics[width=\textwidth]{LagenC}
\end{subfigure}
\caption{My caption}\label{fig:Figure}
\end{figure}
last stuff
\end{document}
[picture]
[subsubsection]
[even more stuff]
After that page, there are a few pages of text. Before it, there's another page with a large picture with a similar set-up (subfigures), which occupies the entire page.
I've tried using the float package, but that only made all my large pictures appear at the very end of the section. I tried the placeins package, which did nothing, and I've tried changing the location specifier to [h] and [!h] but LaTeX just gives a warning saying that it changed it to [ht]. I can't use a non-floating environment because the subfigure command won't work then.
Any suggestions are very welcome!
Thanks in advance,
Jef