Graphics, Figures & Tables ⇒ Centering equations in captions?
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Centering equations in captions?
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
CrazyHorse
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
Centering equations in captions?
use a \parbox inside the \caption macrojediwhelan 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
Herbert