I am writing a book and I want to show the formats of equation numbering; I mean, I want to tell the students that they can put the numbering at the beginning or at the end of the formula's line in their documents such as papers or assignments.
So, in an example, I want to bring equation numbering in the right side of the equation and in another example I want to show the equation number in the left side of the equation at the beginning of the line. I did try the following answers but they change the numbering format in the whole document. How can I do it locally?
Placing equation numbers on the right
How can I position equation numbers always to the left side?
This is what I tried based on a comment to my question and it's linked question with use of the amsmath package:
Switch between leqno and reqno options (of amsmath) in the same document
%pdflatex
\documentclass{article}
\usepackage[leqno]{amsmath}
\makeatletter
\newcommand{\leqnomode}{\tagsleft@true}
\newcommand{\reqnomode}{\tagsleft@false}
\makeatother
\begin{document}
\reqnomode
\begin{align}\tag{1}
\frac{{{\partial ^2}u}}{{\partial {r^2}}} + \frac{1}{r}\frac{{\partial u}}{{\partial r}} - \frac{u}{{{r^2}}} = \frac{1}{{{c_1}^2}}\frac{{{\partial ^2}u}}{{\partial {t^2}}}
\end{align}
\\[-10pt]
\leqnomode
\begin{align}\tag{1}
\frac{{{\partial ^2}u}}{{\partial {r^2}}} + \frac{1}{r}\frac{{\partial u}}{{\partial r}} - \frac{u}{{{r^2}}} = \frac{1}{{{c_1}^2}}\frac{{{\partial ^2}u}}{{\partial {t^2}}}
\end{align}
\end{document}
However, when I was writing my file first, I was not using the amsmath package because in my document I had only two equations just as examples. I was not aiming to write complicated mathematical equations to use that package. So, I am looking for an easy way to make such equation's tag.
amsmath
, this question gives a reliable answer: Switch between leqno and reqno options {of amsmath} in the same documentamsmath
, the most commonly loaded math packages, is not a way to go for you. Please, construct a MWE, and as well, explain your motivation for avoidingamsmath
. Without that, the question is just an off-topic what-if stuff.amsmath
? Without a MWE it hard to understand what your real problem is ...