I wish to number equations in a table, like numbering them in


Since all the equations are written as "inline" equations (for example, $a = b+c$) in tabular environment, I have no idea how to number them. Can you help me to find out a way?

  • 4
    are you sure you want a table rather than a numbered equation environment such as amsmath align? If you do want a table the simplest is to use \begin{equation} in a p column, or if you do want to number inline expressions just go \refstepcounter{equation}(\theequation) whereever you want the number. Commented Jul 11, 2012 at 16:02
  • 1
    Welcome to TeX.SE. For future reference, please keep in mind that while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. Commented Jul 11, 2012 at 17:06

1 Answer 1


I answered a similar question at the German community MrUnix:

Here the code:

\usepackage{amsmath, amssymb, tabularx}


Anode: & $\frac{1}{2}O_{2}+2e^{-}$ & $\longrightarrow$ & $O^{2-}$ & \tagarray\label{2}\\
Kathode: & $H_{2}+O^{2-}$ & $\longrightarrow$ & $H_{2}O+2e^{-}$ &\tagarray\label{3}\\
Gesamtreaktion: & $H_{2}+\frac{1}{2}O_{2}$ & $\longrightarrow$ & $H_{2}O$ &\tagarray\label{4}


enter image description here

  • How do we do it without cheating? I mean without \ref{1}\qquad\ref{2}\qquad\ref{3}\qquad\ref{4}\qquad\ref{5} Commented Nov 19, 2016 at 3:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .