如何在行尾標記方程

如何在行尾標記方程

在行尾標記方程式最簡單的方法是什麼?我遇過

\標籤{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}

相關內容