No matter what I do, I can't seem to center the bottom line of these minipage captions. Along with the several variations in the code below, I have also tried \usepackage[justification=centering]{caption}
. Advice?
\begin{figure}[H]
\centering
\minipage{0.14\textwidth}
\includegraphics[width = \linewidth]{five3}
\caption*{\scriptsize ($d.d.d.d, c.d.c.d, \newline
b.d.d.b.d.d, \newline
a.d.a.d.c.b.c.d$) \newline
$c=a+b$ \newline
$d=c+b$}
\endminipage\hfill
\minipage{0.14\textwidth}
\centering
\includegraphics[width=\linewidth]{four3}
\caption*{\scriptsize ($d.d.d.d, \newline
d.c.c.c, \newline
b.c.b.c.b.d.d, \newline
a.d.a.d.b.c.b.c.d$) \newline
$c=a+b$ \newline
$d=c+b$ \centering}
\endminipage\hfill
\endminipage
\end{figure}
Best Answer
The combination of
\centering
and\newline
does not give the desired output, as one can see from this simple document:So don't use
\newline
inside your caption but\\
instead: