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

Why doesn't the equation number referral appear within the empheq/array environment ? In this example I left out the formulas within the empheq environment (the problem remains with the formulas added).



\text{An equation reference should appear after the question mark, but doesn't ? \eqref{eq:2}}\\
\text{This doesn't work either : \eqref{eq:2}}

I can definitely refer to the equation though, like this : \eqref{eq:2}.


It compiles without throwing an error.

share|improve this question
You need to compile the document twice. First time a (??) is displayed, upon subsequent run, the equation number will appear. – Peter Grill Nov 7 '12 at 20:22
I did - makes no difference. – Petoetje59 Nov 7 '12 at 20:24
Nothing is displayed, not even the (??). – Petoetje59 Nov 7 '12 at 20:25
And do not remove the temporary files generated during the first run. – Peter Grill Nov 7 '12 at 20:25
I didn't remove anything, as I said, it doesn't throw up any error, but does not work. – Petoetje59 Nov 7 '12 at 20:26
up vote 2 down vote accepted

The problem goes away if you use (\ref{whatever}) in place of \eqref{whatever}. I have no idea why this happens, though.

share|improve this answer
Works, but does not retain the brackets, but these can be added separately. THX. – Petoetje59 Nov 7 '12 at 21:13

The main problem is that empheq redefines \maketag@@@ because it need to separate the display from the eqn numbers. But \eqref also make use of this macro to typeset the reference to an eqn numbers. The fix below seem to do the trick and will be build into the next empheq release

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.