I am using elsevier's template – cas-dc
, and I would like to have two images with different titles side by side in a double-column.
But the captions don't appear directly below the image, one of the captions is in the middle of the whole article.
And there is an overfull error reported.
ps: I referred to answers with similar questions and did not get a solution.
Placing three figures side by side, each with its own caption
\begin{figure*}
\begin{minipage}[t]{0.48\linewidth}
\includegraphics[width=\linewidth]{figs/Fig1.pdf}
\caption{Problems due to rivet aging}
\label{fig-problemofrivet}
\end{minipage}
\hfill
\begin{minipage}[t]{0.48\linewidth}
\includegraphics[width=\linewidth]{figs/Fig1.pdf}
\caption{Example of rivet replacement by the bolt}
\label{fig-rivetrepla}
\end{minipage}
\end{figure*}
Best Answer
The class has some hard design flaws (contained in
cas-common.sty
). I'm not sure whether it's a good idea to mess with the code of it, but the following patch should do:EDIT: since there might be problems with unconditionally defining
\bibsep
I've changed it to do that only if it isn't yet defined, and do that pretty late.