I would like to have a caption which is centered and has multiple lines. For example,
\documentclass{article}
\begin{document}
\begin{figure}
\centering
\begin{tabular}{cc}
\rule{5cm}{3cm} & \rule{5cm}{3cm} \\
(a) & (b) \\
\end{tabular}
\caption{\begin{tabular}{ll}
(a) & This is a .... \\
(b) & This is a ...
\end{tabular}}
\end{figure}
\end{document}
When this compiles, there is a centered caption, but the Figure label does not match up with the first line. I have used the caption package and inserted new lines, however when I insert \\
or \newline
, I lose the centering.
Simply put, I would like to have multi-line captions which are centered on the page (as a whole), the first line matches the Figure label, and ideally will allow me to use a table to construct my caption.
\begin{tabular}[t]
, and supply an additional LoT entry via\caption[..]{...}
.subcaption
? This would be a nicer approach as you seem to do captions for each image here.