{equation}
or align
environments, I occasionally like to insert right-aligned parenthetical explanations on each line (see MWE below). I have been achieving this using the \tag
command, but this offsets the equation so that it is no longer centered on the page.Is there a way to create a tag without affecting the alignment of the equation? Or perhaps there is a better way to do this without using the
\tag
command? Thanks in advance for your help!
Code: Select all
\documentclass[10pt,letterpaper]{article}
\usepackage{amsmath, geometry}
\geometry{top=1in, bottom=1in, left=.92in, right=1.28in}
\begin{document}
Equation without tags:
\begin{align*}
a^{-1}ba&=b\\
a(a^{-1}ba)&=ab\\
(aa^{-1})ba&=ab\\
eba&=ab\\
ba&=ab
\end{align*}
Equation with tags:
\begin{align*}
a^{-1}ba&=b\\
a(a^{-1}ba)&=ab\tag{multiply by $a$ on the left}\\
(aa^{-1})ba&=ab\tag{associativity}\\
eba&=ab\tag{inverse}\\
ba&=ab\tag{identity}
\end{align*}
\end{document}