MathJax 语法

一、 行内公式

使用单个美元符号 $ 包裹公式。

示例:

\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

\begin{matrix}
1 & 2 \
3 & 4
\end{matrix}

\begin{cases}
x + y = 5 \
x - y = 1
\end{cases}

$$

六、其他常用命令

  • 极限: \lim_{x \to a} f(x)

    • 示例: \lim_{x \to 0} \frac{\sin x}{x} 显示为 $\lim_{x \to 0} \frac{\sin x}{x}$。
  • 无穷: \infty

    • 示例: \int_{0}^{\infty} e^{-x} \, dx 显示为 $\int_{0}^{\infty} e^{-x} \, dx$。