公式显示
我们用$ ... $
显示行内公式,用$$ ... $$
显示行间公式
这是行内公式: \(f(x) = \sum_{i=0}^N\int_a^bg(i)dt\)
这是行间公式: \[f(x) = \sum_{i=0}^N\int_a^bg(i)dt\]
基本命令
希腊字母
命令 | 显示 | 命令 | 显示 | |
---|---|---|---|---|
\alpha | \(\alpha\) | \beta | \(\beta\) | |
\gamma | \(\gamma\) | \delta | \(\delta\) | |
\epsilon | \(\epsilon\) | \zeta | \(\zeta\) | |
\eta | \(\eta\) | \theta | \(\theta\) | |
\iota | \(\iota\) | \kappa | \(\kappa\) | |
\lambda | \(\lambda\) | \mu | \(\mu\) | |
\xi | \(\xi\) | \nu | \(\nu\) | |
\pi | \(\pi\) | \rh | \(\rho\) | |
\sigma | \(\sigma\) | \tau | \(\tau\) | |
\upsilon | \(\upsilon\) | \phi | \(\phi\) | |
\chi | \(\chi\) | \psi | \(\psi\) | |
\omega | \(\omega\) |
如果使用大写的希腊字母,把命令的首字母变成大写即可,例如 \Gamma 输出的是 \(\Gamma\)。
如果使用斜体大写希腊字母,再在大写希腊字母的LaTeX命令前加上var,例如\varGamma 生成 \(\varGamma\)。
常用数据计算的表示
命令 | 显示 | 命令 | 显示 | |
---|---|---|---|---|
\x^3 | \(x^3\) | \x_3 | \(x_3\) | |
\sum | \(\sum\) | \sum_a^b | \(\sum_{i=1}^N\) | |
\int | \(\int\) | \int_a^b | \(\int_a^b\) | |
\iint | \(\iint\) | \iint_a^b | \(\iint_a^b\) | |
\prod | \(\prod\) | \prod_{i=1}^N | \(\prod_{i=1}^N\) | |
\bigcup | \(\bigcup\) | \bigcup_{i=1}^N | \(\bigcup_{i=1}^N\) | |
\bigcap | \(\bigcap\) | \bigcap_{i=1}^N | \(\bigcap_{i=1}^N\) | |
\lim_{x \to 0} | \(\lim_{x \to 0}\) | \frac{1}{2} | \(\frac{1}{2}\) | |
\sqrt{2} | \(\sqrt{2}\) | \sqrt[3]{2} | \(\sqrt[3]{2}\) |