Is there anyway to avoid what is observed below with the subfigure captions appearing too close together?
I would rather not use the minipage environment as a solution.
\documentclass[]{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{subfig}
\begin{document}
\begin{figure}[h!]
\begin{subfigure}[t]{.5\textwidth}
\centering
\includegraphics[width=50mm]{image1.png}
\caption{Test 1 - text filling out page so it is possible to view the how close the text regions get. I will keep going to show that in the second line.}
\end{subfigure}%
\begin{subfigure}[t]{.5\textwidth}
\centering
\includegraphics[width=50mm]{image2.png}
\caption{Test 2 - text filling out page so it is possible to view the how close the text regions get}
\end{subfigure}
\caption{Full caption}
\end{figure}
\end{document}
Best Answer
Just use a shorter width for the
subfigure
:Don't load
subfig
along withsubcaption
. Also specifying a fixed width like 50mm is not good, because you might exceed the width for thesubfigure
.