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.

  • 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

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

| 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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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