这是两边都有标签的等式解决equation
环境问题。我该如何让它为align
和工作alignat
?
作为参考,解决方案equation
是https://tex.stackexchange.com/a/664316/199226
粘贴如下:
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\def\ltag#1{%
\stepcounter{equation}%
\tag*{}%
\def\df@tag{(\theequation)\llap{\rlap{#1}\hspace{\columnwidth}}}%
}
\makeatother
\begin{document}
\noindent X\dotfill X
\begin{equation}\label{aa}
\frac{Example}{Equation}
\end{equation}
\noindent X\dotfill X
\begin{equation}
\ltag{left text}\label{bb}
\frac{Example}{Equation}
\end{equation}
\noindent X\dotfill X
\begin{equation}
\frac{Example}{Equation}
\end{equation}
aa\eqref{aa} aa\eqref{bb}
\end{document}