
I want the text to fill up the massive gap shown in the picture below:
This is to code I used:
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}[c]{\linewidth}
\includegraphics[width=\linewidth]{MutIscU_RSeq}
\caption{subcaption 1}
\label{fig: fortafix 11l-min}
\end{subfigure}
\hfill
\begin{subfigure}[c]{\linewidth}
\includegraphics[width=\linewidth]{MutIscU_RSeq}
\caption{Water circulated at 9 litres per minute}
\label{fig: fortafix 9l-min}
\end{subfigure}
\hfill
\begin{subfigure}[c]{\linewidth}
\includegraphics[width=\linewidth]{MutIscU_SeqQuality}
\caption{Water circulated at 6 litres per minute}
\label{fig: fortafix 6l-min}
\end{subfigure}
\caption{Plate mould cooling with Fortafix flexseal 350 gap filler layer}
\label{fig: plate cooling fortafix traces}
\end{figure}
\end{document}
I tried adjusting the width of the subfigure and it works but the pictures are too small. If I increase from .3\textwidth
to .4\textwidth
, it either shows the gap as shown in the previous picture or appear at the end of the document. Here's the code I used that works:
\begin{figure}[hbt]
\centering
\begin{subfigure}[c]{.3\textwidth}
\includegraphics[width=\linewidth]{MutIscU_RSeq}
\caption{subcaption 1}
\label{fig: fortafix 11l-min}
\end{subfigure}
\hfill
\begin{subfigure}[c]{.3\textwidth}
\includegraphics[width=\linewidth]{MutIscU_RSeq}
\caption{Water circulated at 9 litres per minute}
\label{fig: fortafix 9l-min}
\end{subfigure}
\hfill
\begin{subfigure}[c]{.3\textwidth}
\includegraphics[width=\linewidth]{MutIscU_SeqQuality}
\caption{Water circulated at 6 litres per minute}
\label{fig: fortafix 6l-min}
\end{subfigure}
\caption{Plate mould cooling with Fortafix flexseal 350 gap filler layer}
\label{fig: plate cooling fortafix traces}
\end{figure}
Anyone knows how to fill this gap while maximising the picture of my subfigures to span the whole one column? Any help would be appreciated!
Antwort1
figures won't normally go to the end of the document unless you prevent them going anywhere else, but in anycase large spaces at page breaks are inevitable if you use H
as the figure will not move relative to the surrounding text so if it needs to go over the page a gap is left, that's what [H]
means.
[hbt]
Der Haupteffekt Ihres zweiten Beispiels besteht darin, dass es Latex daran hindert, den Float auf einer Float-Seite zu platzieren, da das Argument nicht enthalten ist p
. Daher ist es viel wahrscheinlicher, dass der Float nicht positioniert werden kann und daher bis zum Ende des Dokuments gehalten wird.
Da die Standardoption „figure“ tbp
normalerweise ist, ist es am besten, kein optionales Argument zu verwenden. Wenn Sie eines verwenden, um h
beispielsweise einzuschließen, ist es am besten, auch einzuschließen p
. [H]
ist manchmal als letztes Mittel nützlich, aber nur manchmal :-)