When I pdflatex
the following twice:
\documentclass[fleqn]{article} \usepackage{amsmath} \begin{document} \newcounter{mycounter} \refstepcounter{mycounter}\label{foo}\ref{foo} \refstepcounter{mycounter}\label{bar}\ref{bar} \begin{equation} x\refstepcounter{mycounter}\label{baz}\ref{baz} \end{equation} \ref{baz} \refstepcounter{mycounter}\label{qux}\ref{qux} \end{document}
then I get the following output:
1 2 x1 1 4
If I remove \usepackage{amsmath}
or [fleqn]
or both then I get
1 2 x3 3 4
The latter is what I want.
Can anyone tell me how to get the latter when using amsmath/fleqn ?