Normally LaTeX puts equation numbers at the righthand margin. I know that this can be changed by using the leqno class option to put them at the lefthand margin. What I would like is to have local control over which margin the numbers are adjacent to. Trying somewhat optimistically
\documentclass{article}
\begin{document}
\begin{equation}
a + b = c % numbered at right
\end{equation}
\bgroup
\leqno % ERROR can't use \leqno in vertical mode
\begin{equation}
a + b = c
\end{equation}
\egroup
\begin{equation} \leqno % ERROR can't use \eqno in math mode
a + b = c
\end{equation}
\end{document}
As you can see my attempts failed. Any suggestions?
EDIT The above MWE didn't tell the whole story. I should have given the initial code more appropriately as:
\documentclass{memoir}
\usepackage{memsty} % pages of code
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{newpxtext}
\usepackage{newpxmath}
\begin{document}
...
Both answers solved my problem, and it was a close-run thing between them, as initially presented but ...
I will look into the problems generated by the various ...math... packages and hope to resolve these. The memsty package I will deal with. You may find, however, another question on the topic at a later date, but I hope not.


leqnoandreqnooptions (ofamsmath) in the same document – Werner Sep 12 '19 at 18:08