TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Working with documents with huge amount of equations it becomes cumbersome to go back and remind yourself what you labeled a certain equation to (I try to name them in a smart way, but there are too many).

Is there a convenient way to have equations print the label along with the tag/number, so that I can easily check the label in the compiled document?

Something like this would be perfect:

x = y               (14.1) eq:my_label
share|improve this question
up vote 26 down vote accepted

Use the showkeys package (it's compatible with amsmath):

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{showkeys}% http://ctan.org/pkg/showkeys
\section{A section} \label{sec:label}
It is clear that
   a = b \label{eq:my_label}
so, from~\eqref{eq:my_label} in Section~\ref{sec:label}, we see that\ldots

It highlights the use of \label, \ref, \pageref, \cite and \bibitem within your document by means of an "overlay" so as to not affect the typesetting of the document.

share|improve this answer

The refcheck package does something like that. Questionmarks around the label indicate that you haven't referred to that equation yet. (You have to compile twice for this check to work.)

sample output with refcheck and a couple of equations


a = b
a = b \label{eq:2}\\
c = d \label{eq:3}

See \eqref{eq:1}.
share|improve this answer

showkeys package does exactly this.

share|improve this answer

Another package providing similar functionality is showlabels

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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