Following the advice by G. Medina in question Figure with two side-by-side subfigures that is wider than textwidth, I get the desired figure:
The trouble is that longer captions de-align the figures:
Code:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\usepackage{lipsum}
\begin{document}
\begin{figure}
\makebox[\linewidth][c]{%
\begin{subfigure}[b]{.654\textwidth}
\centering
\includegraphics[width=.95\textwidth]{../assets/20180403_all_animal_feed_spectra.pdf}
\caption{
short caption short caption short caption short caption short caption
}
\label{fig:all_animal_feed_spectra}
\end{subfigure}%
\begin{subfigure}[b]{.6\textwidth}
\centering
\includegraphics[width=.95\textwidth]{../assets/20180403_pls_baseline_rmsecv.pdf}
\caption{
10-fold RMSECV of the baseline PLS model with varying dimension of the latent space, trained on the raw data.
}
\label{fig:rmsecv_baseline}
\end{subfigure}%
}
\end{figure}
\end{document}
I guess that the figure needs to be split into two rows: first row to align the images, and second row to align the captions. Furthermore, there should be some free space between the captions.
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.