![如何在行末标记方程式](https://linux22.com/image/420951/%E5%A6%82%E4%BD%95%E5%9C%A8%E8%A1%8C%E6%9C%AB%E6%A0%87%E8%AE%B0%E6%96%B9%E7%A8%8B%E5%BC%8F.png)
在行末标记方程式的最简单方法是什么?我遇到过
\标签{eq1}
对于第一个方程等等。有没有更简单的方法?
答案1
我在此给出方程编号的一个例子。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\section{Something}
numbered equation
\begin{equation}
1=1
\end{equation}
multiline equation alignment
\begin{align}
x&=1+1\\
&=2
\end{align}
\section{Another thing\label{zzz}}
numbered equation with \verb|\label|
\begin{equation}
2=2 \label{twos}
\end{equation}
multiline equation alignment with \verb|\label|
\begin{align}
x&=1+1 \label{abc}\\
&=2
\end{align}
You see \verb|\label| has no affect on the printing but is an internal
identifier so we can refer to Section~\ref{zzz} and
equation~(\ref{twos}) or and have the correct number calculated.
\end{document}