🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 看云文档使用 LaTex 单行公式(行内): ~~~ `$ c = \pm\sqrt{a^2 + b^2} $` ~~~ 效果如下:`$ c = \pm\sqrt{a^2 + b^2} $` <br/> 多行写法(多行公式会居中显示): ~~~ ```[tex] f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi ``` ~~~ 效果如下: ```[tex] f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi ``` <br /> # 速查表 LaTex 官方文档:https://katex.org/docs/supported.html ## 希腊字母 | 命令 | 显示 | | 命令 | 显示 | | --- | --- | --- | --- | --- | | \\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 $` | | \\rho | `$ \rho $` | | \\sigma | `$ \sigma $` | | \\tau | `$ \tau $` | | \\upsilon | `$ \upsilon $` | | \\phi | `$ \phi $` | | \\chi | `$ \chi $` | | \\psi | `$ \psi $` | | \\omega | `$ \omega $` | | | 如果使用大写的希腊字母,把命令的首字母变成大写即可,例如`\Gamma`输出的是`$ \Gamma $` ## 和号和积分号 | 命令 | 显示 | | 命令 | 显示 | | --- | --- | --- | --- | --- | | \\sum | `$ \sum $` | | \\int | `$ \int $` | | \\sum_{i=1}^{N} | `$ \sum_{i=1}^{N} $` | | \\int_{a}^{b} | `$ \int_{a}^{b} $` | | \\prod | `$ \prod $` | | \\iint | `$ \iint $` | | \\prod_{i=1}^{N} | `$ \prod_{i=1}^{N} $` | | \\iint_{a}^{b} | `$ \iint_{a}^{b} $` | | \\bigcup | `$ \bigcup $` | | \\bigcap | `$ \bigcap $` | | \\bigcup_{i=1}^{N} | `$ \bigcup_{i=1}^{N} $` | | \\bigcap_{i=1}^{N} | `$ \bigcap_{i=1}^{N} $` ## 其他常用命令 | 命令 | 显示 | | 命令 | 显示 | | --- | --- | --- | --- | --- | | \\sqrt[3]{2} | `$ \sqrt[3]{2} $` | | \\sqrt{2} | `$ \sqrt{2} $` | | x^{3} | `$ x^{3} $` | | x_{3} | `$ x_{3} $` | | \lim_{x \to 0} | `$ \lim_{x \to 0} $` | | \frac{1}{2} | `$ \frac{1}{2} $` | 数字放到符号正下方: 如果是数学符号,那么直接用 \limits 命令放在正下方,如: ``` $ \sum\limits_{i=1} $ ``` 若是普通符号,那么要用 \mathop 先转成数学符号再用 \limits,如 ``` $ \mathop{a}\limits_{i=1} $ ``` 效果: ```[tex] \sum\limits_{i=1} ``` ```[tex] \mathop{a}\limits_{i=1} ```