I am using mathtools
in the following way:
\usepackage{mathtools}
\mathtoolsset{showonlyrefs,showmanualtags}
Then, to refer to equations I use \refeq{equation}
.
What happens is that there is a numbering for the equation that appears in the text, but the (Eq-Number) does not appear next to the equation itself. In fact, there are no (Eq-Number) for any of the equations.
Any ideas what could cause that? Is there a way to force to have an equation number next to an equation?
Edit
Minimal example:
\documentclass[11pt,letterpaper]{article}
\usepackage{latexsym}
\usepackage{times}
\usepackage{amsfonts,eucal,amsbsy,amsthm,amsopn,amssymb}
\usepackage{color}
\usepackage{graphicx}
\usepackage{array}
\usepackage{url}
\usepackage{mathtools}
\mathtoolsset{showonlyrefs,showmanualtags}
\begin{document}
\begin{eqnarray}
A & = & B \label{eq:first}
\end{eqnarray}
see Equation ~\refeq{eq:first}
\end{document}
Best Answer
I see in your example that you are using
eqnarray
. This is well-known to be seriously defective, and a number of tools simply do not support it. I see thateqnarray
does not show up in themathtools
manual, so I suspect the omission may not be accidental! Use thegather
oralign
environments, as shown in themathtools
manual.For more detail on the problems of
eqnarray
see the UK FAQ.