Graphics, Figures & Tables ⇒ Centering equations in captions
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm
Centering equations in captions
For the life of me, I can't work out how to center equations within caption. \begin{equation ... \end{equation can't be used within \caption, and I've experimented with various methods/workarounds but to no avail. No amount of googling has helped either.
For example:
\caption{Regression of blah blah blah etc etc etc :
$rx_{t,t+12}^{(n)} = \phi^{(n)} X_t + \gamma^{(n)} Y_t + \rho^{(n)} Z_t + \varepsilon_{t+12}^{(n)}$
where $X_t$ is constructed from blah blah , $Y_t$ is a blah blah. Etc etc etc ... description of the table.}
There must be a simple solution?
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
Centering equations in captions
It can with a little help from the caption package:jediwhelan wrote:\begin{equation ... \end{equation can't be used within \caption
Code: Select all
\documentclass{article}
\usepackage{caption}
\begin{document}
\begin{figure}
\captionsetup{singlelinecheck=off}
\caption[Regression of blah blah blah etc etc etc]
{Regression of blah blah blah etc etc etc :
\begin{equation}
rx_{t,t+12}^{(n)} = \phi^{(n)} X_t + \gamma^{(n)} Y_t + \rho^{(n)} Z_t + \varepsilon_{t+12}^{(n)}
\end{equation}
where $X_t$ is constructed from blah blah , $Y_t$ is a blah blah. Etc etc etc ... description of the table.}
\end{figure}
\end{document}
-
jediwhelan
- Posts: 16
- Joined: Fri Jul 25, 2008 5:54 pm