Graphics, Figures & TablesCentering equations in captions?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jediwhelan
Posts: 16
Joined: Fri Jul 25, 2008 5:54 pm

Centering equations in captions?

Post by jediwhelan »

Hi,

I've tried everything to get this working but to no avail. Basically, I need to be able to center equations in the captions of tables, i.e.,

\begin{table}[htbp]
\begin{center}
\begin{tabular}[c]{l c c c c c c c c c }
\toprule

Headers...

\midrule

table data ...

\bottomrule
\end{tabular}
\caption{This table reports blah blah blah \newline

\begin{equation}
... centered equation
\end{equation}

}
\label{ }
\end{center}
\end{table}

However, begin{equation} ... \end{equation} throws an error , and as far as I'm aware $$ ... $$ doesn't have the ability to center.

Many thanks in advance,
Paul

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Centering equations in captions?

Post by CrazyHorse »

jediwhelan wrote: I've tried everything to get this working but to no avail. Basically, I need to be able to center equations in the captions of tables, i.e.,
\caption{This table reports blah blah blah \newline
use a \parbox inside the \caption macro

Herbert
Post Reply