I am using pdfLaTeX
. If no packages are used, then, in displayed equations, the line numbers are flushed right. But if I want them to be a certain distance, say 0.35em, from the right margin, I can accomplish that by redefining \@eqnnum
like this:
\makeatletter
\def\@eqnnum{{\normalfont \normalcolor (\theequation)\hspace{0.35em}}}
\makeatother
However, if amsmath
is used, then the above has no effect.
Suppose I am using amsmath
. How can I insert an arbitrary but fixed distance between equation numbers and the right margin? The solution should insert the same distance for all displayed math environments (equation
, multline
, align
, etc.).