I have a problem opposite to most of the questions posted regarding the equation numbering. I would like to have a global numbering for equations, regardless of the section. With or without the package chngcntr, in the equation, it shows the global numbering, as wished.

However, when I try to refer these equation, the first one is correctly referred, but the second one includes the section number. See below for the minimal working example and the result.

Does anyone know why this is happening?



\counterwithout{equation}{section} % undo numbering system provided by phstyle.cls





a &= b\notag\\
    &= c.\label{eq:a}

Equation (\ref{eq:a}) 
a &= b
Equation (\ref{eq:b}) 



  • 2
    Welcome to TeX.SX! Try to put the \label into the align environment and not out (that references the subsection).
    – TeXnician
    Mar 26, 2017 at 15:48
  • I have posted it as answer, so you can accept it.
    – TeXnician
    Mar 26, 2017 at 16:04

1 Answer 1


You have one mistake in your code: The \label you want to tag the second equation with is outside of it. That causes LaTeX to use the subsection-counter to be referenced.

If you want to reference the equation move the \label into the align environment.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .