I have a series of long equations, 12 of them, that I'm trying to format into a table. The table is something like:
\begin{tabular}{L{1.7cm} | L{1.8cm} | C{12.2cm} R{1cm}}
\toprule
\textbf{Label 1} & \textbf{Label 2} & \textbf{Equations} \\
\midrule
.....
.....
\end{tabular}
Initially I was using \begin{equation} \end{equation}
and in some cases \begin{gather} \end{gather}
for each equation. This gave me numbering for each and an \eqref{equation_label}
which was handy for in text referencing. Since I can't use these wrappers inside of a table I switched them each to $equation$
, however I've lost the ability to cross reference. I can be horrible and add a fourth column and manually add the numbers but I don't want to as keeping track of all the equation numbers is a pain in a large document.
Does anyone have a semi-easy way to number each equation for cross referencing within a table?
edit:
Here's a better (more complete) example of what I'm doing with two shorter equations:
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\title{Your Paper}
\author{You}
\begin{document}
\begin{table}
\begin{tabular}{L{1.7cm} | L{1.8cm} | C{9cm}}
\toprule
\textbf{Label 1} & \textbf{Label 2} & \textbf{Equations} \\
\midrule
Col1Lbl1 & Col2Lbl1 &
$\rho_{X,Y}= \frac{cov(X,Y)}{\sigma_X\sigma_Y}= \frac{E[(X-\mu_X)(Y-\mu_Y)]}{\sigma_X\sigma_Y}$\\
~ & ~ & ~ \\
Col1Lbl12 & Col2Lbl2 &
$H(X) = - \sum_{i=1}^n p(x_i) log_b p(x_i)$
\end{tabular}
\end{table}
\end{document}
I would like the equation reference numbers added to right of each equations and be able to use \ref{}
or \eqref{}
in the text to reference a particular equation.