这里使用了插件
使用 $
符号
$a^2 + b^2 = c^2$
$a^2 + b^2 = c^2$
或 \(
, \)
转义
\(1+2+\dots+n=\frac{n(n+1)}{2}\)
\(1+2+\dots+n=\frac{n(n+1)}{2}\)
使用 $$
符号, 在单独的行显示数学公式
$$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$
$$ \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x) $$
或使用 \[
, \]
转义
\[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \]
\[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \]
A wide range of math environments1) will work as well:
\begin{align*} e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ & = \sum_{n\geq 0} \frac{x^n}{n!} \end{align*}
\begin{align*} e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ & = \sum_{n\geq 0} \frac{x^n}{n!} \end{align*}
Note that the math environments should not be inside the dollar sign delimiters; the environments should stand on their own with just the \begin
and \end
statements in order to be parsed correctly.