I'm using the subcaption
package to make some subfigures with subcaptions (clearly), in a two column document, specifically the IEEE Transactions journal document class.
There are a lot of figures, but some typical code for one of them is:
\begin{figure}
\centering
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[height=65mm,clip=false]{figures/test_preds/s5_test_preds.pdf}
\caption{Session 5 test data}
\end{subfigure}
~
\begin{subfigure}[b]{0.3\textwidth}
\includegraphics[height=65mm,clip=false]{figures/test_preds/s32_test_preds.pdf}
\caption{Session 32 test data}
\end{subfigure}
\caption{Label predictions using cross-correlation-, GTW-, and LSTM-based classifiers}
\end{figure}
Which produces the example on the left.
So not only do the images end up skewed to the right of the current column despite the \centering
, but the subcaption is prematurely given a line break. The figure on the right has the same centering issue.
I should also mention that I'm only including \usepackage{subcaption}
, as subcaption
seems to subsume subfigure - Latex tells me I'm multiply defining subfigure if I \usepackage
that as well.
Due to lack of time I'm tempted to solve this using \hspace
(urgh), but it wouldn't solve the premature line-breaking of the subcaptions.
\fbox{\includegraphics[]{}}
Then post that image.