在行末标记方程式的最简单方法是什么?我遇到过
\标签{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}