Articles on: Writing

# How do I reference my LaTeX tables or equations?

To reference a LaTeX table or equation in LaTeX you need to make sure that you insert a label in your table or equation and that such label has a tab: prefix for tables and a eqn: prefix for equations.

### Examples

For example, a simple LaTeX table may look like this:
\begin{table}
\begin{tabular}{ccccc}
1 & 2 & 3 & 4 & 5 \\
6 & 7 & 8 & 9 & 10 \\
\end{tabular}
\caption{\label{tab:somelabel} Caption}
\end{table}

Notice the \label{tab:somelabel} inside the \caption .

Similarly, a simple LaTeX equation may look like this:
$$\label{eqn:somelabel} e=mc^2$$

Notice the \label{eqn:somelabel}.

You can reference the tables and equations above from inside a LaTeX block using \ref{tab:somelabel} and \ref{eqn:somelabel}, respectively. Or, you can reference them from inside any other block by clicking on the reference button in the toolbar, ❡:

Updated on: 03/08/2021