1

I have the following code that makes a table, and I would like to add an equation number to it (so I can refer to it in the text by number). Any suggestions? Thanks!

\begin{tabular}{ | l | c | c |}
    \hline
    & \multicolumn{2}{|c|}{\textbf{Signaler strategy}} \\
    \hline
    \textbf{Chooser strategy} & TFT & ALLD \\ \hline
    TFT (Accept) & $\frac{bw_{c}w_{s}-c}{1-(w_{c}w_{s})^2},\frac{b-cw_{c}w_{s}}{1-(w_{c}w_{s})^2}$ & $-c,b$ \\ \hline
    ALLD (Reject) & 0,0 &  0,0 \\ \hline
\end{tabular}
1

You can just enclose it an equation environment:

Sample output

\documentclass{article}

\begin{document}

\begin{equation}
  \label{eq:tab}
  \begin{tabular}{ | l | c | c |}
    \hline
    & \multicolumn{2}{|c|}{\textbf{Signaler strategy}} \\
    \hline
    \textbf{Chooser strategy} & TFT & ALLD \\ \hline
    TFT (Accept) & $\frac{bw_{c}w_{s}-c}{1-(w_{c}w_{s})^2},\frac{b-cw_{c}w_{s}}{1-(w_{c}w_{s})^2}$ & $-c,b$ \\ \hline
    ALLD (Reject) & 0,0 &  0,0 \\ \hline
  \end{tabular}
\end{equation}

As we can see in the Table of (\ref{eq:tab})\dots

\end{document}
  • Perfect, thanks so much! (Sorry for the very simple question) – Dave Apr 4 '16 at 13:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.