公式顯示
我們用$ ... $顯示行內公式,用$$ ... $$顯示行間公式
這是行內公式: \(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}\) |
