Latex公式排版
行内公式
使用对于美元符号。
$a+b=c$
行间公式
使用行间公式环境
-
自动编号
\begin{equation} a+b=c \end{equation}
-
无编号
\begin{equation*} a+b=c \end{equation*}
-
自定义编号
\tag{想要编号的数字}
\begin{equation}\tag{3} a + b = c \end{equation}
自己遇到的问题
-
我为什么要在公式编辑中使用自定义的公式编号呢?
因为我想在word使用latex的公式排版。但是由于word中公式之间没有latex公式上下文的环境。导致每次自动编号的公式都是从(1)开始,所以我不得不自定义公式编号。
引用公式
label
\ref
see formula \ref{eq:equlabel}
\begin{equation}
a + b = c \label{eq:equlabel}
\end{equation}
- 但是很奇怪的是,这个东西在Aurora中好像不适用。
公式对齐
split
&
\begin{equation}
\begin{split}
y = & x_1 + x_2 + x_3 +\\
& x_4 + x_5 + x_6
\end{split}
\end{equation}
分段函数
cases
\begin{equation}
f(x)=
\begin{cases}
0&, x=0\\
x+1&, x\neq 0\\
\end{cases}
\end{equation}
`