I have created the following table. Basically the caption includes the label, the title (it is in \caption{}
) and a caption where I describe the table (which is in \caption*{}
). The format is similar to the one used in the Journal of Finance.
The problem is that if the title is longer as in the following figure, the table and the title are not centered anymore.
To create the tables above I used the following code. Using the caption package.
\documentclass[11pt, a4paper]{article}
\usepackage{caption}
\usepackage{tabularx}
\captionsetup[table]{labelsep = newline, labelfont = bf}
\begin{document}
\begin{table}[!htbp] \centering
\caption{\bf \Large This is the main title.}
\caption*{This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table. This is a second caption describing the table.}
\label{table:rnmSummary}
\begin{center}
\begin{tabular}{ l | c || r }
\hline
1 & 2 & 3 \\ \hline
4 & 5 & 6 \\ \hline
7 & 8 & 9 \\
\hline
\end{tabular}
\end{center}
\end{table}
\end{document}