参考学习:[https://www.overleaf.com/learn/latex/Mathematical_expressions](https://www.overleaf.com/learn/latex/Mathematical_expressions) 学会 LaTex:[https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes](https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes) # 两种显示模式 圆括号在行内显示(inline 模式),方括号在段落显示(display 模式): ## inline 模式 - `\\(...\\)` - `$...
- knuth 说,因为数学公式比较贵 - `\\begin{math}...\\end{math}`. ## display 模式 - `\\[...\\]` - `\\begin{displaymath}...\\end{displaymath}` - `\\begin{equation}...\\end{equation}` # 数学表达式 ## 希腊字母 使用反斜杠,加一个描述 \alpha \beta \gamma \rho \sigma \delta \epsilon $\alpha$ $\beta$ $\gamma$ $\rho$ $\sigma$ $\delta$ $\epsilon$ 全集看这里:[https://www.overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols](https://www.overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols) ## 二元操作符 使用反斜杠,加一个描述 `\times` `\otimes` `\oplus` `\cup` `\cap` $\times$ $\otimes$ $\oplus$ $\cup$ $\cap$ ## 关系操作符 大于小于不需要,其余 `\subset` `\supset` `\subseteq` `\supseteq` lt;$ gt;$ $\subset$ $\supset$ $\subseteq$ $\supseteq$ ## 积分,求和,求积 使用反斜杠,加一个描述 `\int` `\oint` `\sum` `\prod` $\int$ $\oint$ $\sum$ $\prod$ # 上标和下标 下标用 \_ ,上标用 ^,下标还有下标,就用大括号 {} 括起来 $a_{n_i}$ 一个典型的积分表达式 `\\[ \\int\\limits_0^1 x^2 + y^2 \\ dx \\]` $ \int\limits_0^1 x^2 + y^2 \ dx $ limit 修改了积分显示的位置,如果不要的话,会显示在前面 `\\[ \\int_0^1 x^2 + y^2 \\ dx \\]` $ \int_0^1 x^2 + y^2 \ dx $ 下标和上标可以同时使用 `a_1^2 + a_2^2 = a_3^2` $a_1^2 + a_2^2 = a_3^2$ `x^{2 \\alpha} - 1 = y_{ij} + y_{ij}` $x^{2 \alpha} - 1 = y_{ij} + y_{ij}$ `(a^n)^{r+s} = a^{nr+ns}` $(a^n)^{r+s} = a^{nr+ns}$ ``` \\sum_{i=1}^{\\infty} \\frac{1}{n^s} = \\prod_p \\frac{1}{1 - p^{-s}} ``` $ \sum_{i=1}^{\infty} \frac{1}{n^s} = \prod_p \frac{1}{1 - p^{-s}} $ 更多需要上标和下标的操作,可以看 [参考文档](https://www.overleaf.com/learn/latex/Subscripts_and_superscripts#Reference_guide) 。 # 日常记录 开 4 次方 `\sqrt[4]{x}` $\sqrt[4]{x}$ 面积下标用 \_ `$S_{\triangle ABC}
$S_{\triangle ABC}$ 绝对值 `\lvert C_{2} \rvert` $\lvert C_{2} \rvert$ 小于等于 `a\leq 1` $a\leq 1$ 约等于 `\pi \approx 3` $\pi \approx 3$ # 数学符号的个数 Computer Modern 字体中的数学符号 + AMS 数学符号,大约 400 多个。 6000个符号,有一半是数学符号。 分为 8 大类: 1. 普通符号 2. 巨算符 3. 二元运算符 4. 关系符 5. 开符号 6. 闭符号 7. 标点 8. 变量族(字母) 常数都用直立体 ```latex $\\mathbf{X}$ $\\mathrm{e}$ $\\mathrm{i}$ \\uppi % 需要 upgreek 宏包 ```