bugfix20250107.1

全站通知:

帮助:数学公式

来自卡拉彼丘WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

本wiki采用的数学公式插件为:SimpleMathJax,版本:0.8.2,许可协议:GPL-2.0+,运用方式为<math>公式</math>

简介

本wiki支持通过LaTeX语法编写数学公式,使用<math> ... </math>标签包裹公式代码。SimpleMathJax基于MathJax,支持大部分LaTeX数学命令。本文档涵盖了常用的数学公式写法。

基础

希腊字母

名称 大写 Tex 小写 Tex
alpha [math]\displaystyle{ A }[/math] A [math]\displaystyle{ \alpha }[/math] \alpha
beta [math]\displaystyle{ B }[/math] Β [math]\displaystyle{ \beta }[/math] \beta
gamma [math]\displaystyle{ \Gamma }[/math] \Gamma [math]\displaystyle{ \gamma }[/math] \gamma
delta [math]\displaystyle{ \Delta }[/math] \Delta [math]\displaystyle{ \delta }[/math] \delta
epsilon [math]\displaystyle{ E }[/math] E [math]\displaystyle{ \epsilon }[/math] \epsilon
zeta [math]\displaystyle{ Z }[/math] Ζ [math]\displaystyle{ \zeta }[/math] \zeta
eta [math]\displaystyle{ H }[/math] Η [math]\displaystyle{ \eta }[/math] \eta
theta [math]\displaystyle{ \Theta }[/math] \Theta [math]\displaystyle{ \theta }[/math] \theta
iota [math]\displaystyle{ I }[/math] Ι [math]\displaystyle{ \iota }[/math] \iota
kappa [math]\displaystyle{ K }[/math] Κ [math]\displaystyle{ \kappa }[/math] \kappa
lambda [math]\displaystyle{ \Lambda }[/math] \Lambda [math]\displaystyle{ \lambda }[/math] \lambda
mu [math]\displaystyle{ M }[/math] Μ [math]\displaystyle{ \mu }[/math] \mu
nu [math]\displaystyle{ N }[/math] Ν [math]\displaystyle{ \nu }[/math] \nu
xi [math]\displaystyle{ \Xi }[/math] \Xi [math]\displaystyle{ \xi }[/math] \xi
omicron [math]\displaystyle{ O }[/math] Ο [math]\displaystyle{ \omicron }[/math] \omicron
pi [math]\displaystyle{ \Pi }[/math] \Pi [math]\displaystyle{ \pi }[/math] \pi
rho [math]\displaystyle{ P }[/math] Ρ [math]\displaystyle{ \rho }[/math] \rho
sigma [math]\displaystyle{ \Sigma }[/math] \Sigma [math]\displaystyle{ \sigma }[/math] \sigma
tau [math]\displaystyle{ T }[/math] Τ [math]\displaystyle{ \tau }[/math] \tau
upsilon [math]\displaystyle{ \Upsilon }[/math] \Upsilon [math]\displaystyle{ \upsilon }[/math] \upsilon
phi [math]\displaystyle{ \Phi }[/math] \Phi [math]\displaystyle{ \phi }[/math] \phi
chi [math]\displaystyle{ X }[/math] Χ [math]\displaystyle{ \chi }[/math] \chi
psi [math]\displaystyle{ \Psi }[/math] \Psi [math]\displaystyle{ \psi }[/math] \psi
omega [math]\displaystyle{ \Omega }[/math] \Omega [math]\displaystyle{ \omega }[/math] \omega

括号

名称 样式 Tex
小括号 [math]\displaystyle{ () }[/math] ()
方括号 [math]\displaystyle{ [] }[/math] []
大括号 [math]\displaystyle{ \{\} }[/math] \{\}
大括号(另一种) [math]\displaystyle{ \lbrace\rbrace }[/math] \lbrace\rbrace
尖括号 [math]\displaystyle{ \langle\rangle }[/math] \langle\rangle
上取整 [math]\displaystyle{ \lceil\rceil }[/math] \lceil\rceil
下取整 [math]\displaystyle{ \lfloor\rfloor }[/math] \lfloor\rfloor

上下标

  • 上标:^。例如:x^a → [math]\displaystyle{ x^a }[/math]
    • 下标:_。例如:y_b → [math]\displaystyle{ y_b }[/math](注意与[math]\displaystyle{ yb }[/math]区分)
      • 注1:上下标符号仅对下一个“组”起作用。一个组即单个字符或者使用{...}包裹起来的内容。

    例如:10^10 会得到 [math]\displaystyle{ 10^10 }[/math],正确写法应为 10^{10} → [math]\displaystyle{ 10^{10} }[/math]。

      • 注2:大括号可以消除二义性。

    例如:x^y^z 会报错 [math]\displaystyle{ x^y^z }[/math],必须使用大括号界定结合性:{x^y}^z → [math]\displaystyle{ {x^y}^z }[/math] 或 x^{y^z} → [math]\displaystyle{ x^{y^z} }[/math]。

    分式与根式

    • 分式:\frac{分子}{分母} → [math]\displaystyle{ \frac{分子}{分母} }[/math]

    例如:\frac{a+b}{c+d} → [math]\displaystyle{ \frac{a+b}{c+d} }[/math]

    • 根式:平方根 \sqrt{表达式} → [math]\displaystyle{ \sqrt{表达式} }[/math];[math]\displaystyle{ n }[/math]次根 \sqrt[n]{表达式} → [math]\displaystyle{ \sqrt[n]{表达式} }[/math]

    例如:\sqrt{x^2 + y^2} → [math]\displaystyle{ \sqrt{x^2 + y^2} }[/math];\sqrt[3]{x} → [math]\displaystyle{ \sqrt[3]{x} }[/math]

    运算符号

    符号 名称 Tex
    [math]\displaystyle{ + }[/math] 加 +
    [math]\displaystyle{ - }[/math] 减 -
    [math]\displaystyle{ \times }[/math] 乘(叉乘) \times
    [math]\displaystyle{ \cdot }[/math] 点乘 \cdot
    [math]\displaystyle{ \div }[/math] 除 \div
    [math]\displaystyle{ \pm }[/math] 正负号 \pm
    [math]\displaystyle{ \mp }[/math] 负正号 \mp
    [math]\displaystyle{ \ast }[/math] 星号乘 \ast
    [math]\displaystyle{ \star }[/math] 星形乘 \star
    [math]\displaystyle{ \circ }[/math] 圈乘(复合) \circ
    [math]\displaystyle{ \bullet }[/math] 点乘(黑) \bullet

    关系符号

    符号 名称 Tex
    [math]\displaystyle{ = }[/math] 等于 =
    [math]\displaystyle{ \ne }[/math] 不等于 \ne 或 \neq
    [math]\displaystyle{ \lt }[/math] 小于 <
    [math]\displaystyle{ \gt }[/math] 大于 >
    [math]\displaystyle{ \le }[/math] 小于等于 \le 或 \leq
    [math]\displaystyle{ \ge }[/math] 大于等于 \ge 或 \geq
    [math]\displaystyle{ \approx }[/math] 约等于 \approx
    [math]\displaystyle{ \equiv }[/math] 恒等于 \equiv
    [math]\displaystyle{ \propto }[/math] 正比于 \propto
    [math]\displaystyle{ \sim }[/math] 相似于 \sim
    [math]\displaystyle{ \simeq }[/math] 相似等于 \simeq
    [math]\displaystyle{ \perp }[/math] 垂直 \perp
    [math]\displaystyle{ \parallel }[/math] 平行 \parallel

    箭头

    符号 名称 Tex
    [math]\displaystyle{ \leftarrow }[/math] 左箭头 \leftarrow 或 \gets
    [math]\displaystyle{ \rightarrow }[/math] 右箭头 \rightarrow 或 \to
    [math]\displaystyle{ \leftrightarrow }[/math] 左右箭头 \leftrightarrow
    [math]\displaystyle{ \Leftarrow }[/math] 左蕴涵箭头 \Leftarrow
    [math]\displaystyle{ \Rightarrow }[/math] 右蕴涵箭头 \Rightarrow
    [math]\displaystyle{ \Leftrightarrow }[/math] 等价箭头 \Leftrightarrow
    [math]\displaystyle{ \longleftarrow }[/math] 长左箭头 \longleftarrow
    [math]\displaystyle{ \longrightarrow }[/math] 长右箭头 \longrightarrow
    [math]\displaystyle{ \uparrow }[/math] 上箭头 \uparrow
    [math]\displaystyle{ \downarrow }[/math] 下箭头 \downarrow
    [math]\displaystyle{ \updownarrow }[/math] 上下箭头 \updownarrow

    函数与算子

    常用函数请使用反斜杠加函数名,以获得直立体:

    函数 示例 Tex
    正弦 [math]\displaystyle{ \sin x }[/math] \sin x
    余弦 [math]\displaystyle{ \cos x }[/math] \cos x
    正切 [math]\displaystyle{ \tan x }[/math] \tan x
    余切 [math]\displaystyle{ \cot x }[/math] \cot x
    正割 [math]\displaystyle{ \sec x }[/math] \sec x
    余割 [math]\displaystyle{ \csc x }[/math] \csc x
    反正弦 [math]\displaystyle{ \arcsin x }[/math] \arcsin x
    反余弦 [math]\displaystyle{ \arccos x }[/math] \arccos x
    反正切 [math]\displaystyle{ \arctan x }[/math] \arctan x
    对数(自然) [math]\displaystyle{ \ln x }[/math] \ln x
    对数(常用) [math]\displaystyle{ \log x }[/math] 或 [math]\displaystyle{ \log_{10} x }[/math] \log x 或 \log_{10} x
    指数函数 [math]\displaystyle{ \exp(x) }[/math] \exp(x)
    最大值 [math]\displaystyle{ \max(a,b) }[/math] \max(a,b)
    最小值 [math]\displaystyle{ \min(a,b) }[/math] \min(a,b)
    极限 [math]\displaystyle{ \lim_{x \to 0} f(x) }[/math] \lim_{x \to 0} f(x)

    大型运算符

    求和、积分、乘积等

    符号 名称 Tex 示例(含上下标)
    [math]\displaystyle{ \sum }[/math] 求和 \sum \sum_{i=1}^{n} i^2 → [math]\displaystyle{ \sum_{i=1}^{n} i^2 }[/math]
    [math]\displaystyle{ \int }[/math] 积分 \int \int_{0}^{\infty} e^{-x} dx → [math]\displaystyle{ \int_{0}^{\infty} e^{-x} dx }[/math]
    [math]\displaystyle{ \iint }[/math] 二重积分 \iint \iint_{D} f(x,y) dxdy → [math]\displaystyle{ \iint_{D} f(x,y) dxdy }[/math]
    [math]\displaystyle{ \iiint }[/math] 三重积分 \iiint \iiint_{V} dV → [math]\displaystyle{ \iiint_{V} dV }[/math]
    [math]\displaystyle{ \oint }[/math] 环路积分 \oint \oint_{C} \vec{F} \cdot d\vec{r} → [math]\displaystyle{ \oint_{C} \vec{F} \cdot d\vec{r} }[/math]
    [math]\displaystyle{ \prod }[/math] 乘积 \prod \prod_{i=1}^{n} x_i → [math]\displaystyle{ \prod_{i=1}^{n} x_i }[/math]
    [math]\displaystyle{ \coprod }[/math] 余积 \coprod \coprod_{i\in I} A_i → [math]\displaystyle{ \coprod_{i\in I} A_i }[/math]
    [math]\displaystyle{ \bigcup }[/math] 并集 \bigcup \bigcup_{i=1}^{n} A_i → [math]\displaystyle{ \bigcup_{i=1}^{n} A_i }[/math]
    [math]\displaystyle{ \bigcap }[/math] 交集 \bigcap \bigcap_{i=1}^{n} A_i → [math]\displaystyle{ \bigcap_{i=1}^{n} A_i }[/math]
    [math]\displaystyle{ \bigoplus }[/math] 直和 \bigoplus \bigoplus_{i=1}^{n} V_i → [math]\displaystyle{ \bigoplus_{i=1}^{n} V_i }[/math]
    [math]\displaystyle{ \bigotimes }[/math] 张量积 \bigotimes \bigotimes_{i=1}^{n} V_i → [math]\displaystyle{ \bigotimes_{i=1}^{n} V_i }[/math]

    矩阵

    使用 \begin{matrix} ... \end{matrix} 环境,行内元素用 & 分隔,行末用 \\ 换行。

    • 无括号矩阵:\begin{matrix} a & b \\ c & d \end{matrix} → [math]\displaystyle{ \begin{matrix} a & b \\ c & d \end{matrix} }[/math]
    • 圆括号矩阵:\begin{pmatrix} a & b \\ c & d \end{pmatrix} → [math]\displaystyle{ \begin{pmatrix} a & b \\ c & d \end{pmatrix} }[/math]
    • 方括号矩阵:\begin{bmatrix} a & b \\ c & d \end{bmatrix} → [math]\displaystyle{ \begin{bmatrix} a & b \\ c & d \end{bmatrix} }[/math]
    • 大括号矩阵:\begin{Bmatrix} a & b \\ c & d \end{Bmatrix} → [math]\displaystyle{ \begin{Bmatrix} a & b \\ c & d \end{Bmatrix} }[/math]
    • 竖线矩阵(行列式):\begin{vmatrix} a & b \\ c & d \end{vmatrix} → [math]\displaystyle{ \begin{vmatrix} a & b \\ c & d \end{vmatrix} }[/math]
    • 双竖线矩阵(范数):\begin{Vmatrix} a & b \\ c & d \end{Vmatrix} → [math]\displaystyle{ \begin{Vmatrix} a & b \\ c & d \end{Vmatrix} }[/math]

    矩阵中可以包含省略号:\cdots (水平)、\vdots (垂直)、\ddots (对角)。 例如:

    <math>\begin{pmatrix}
    a_{11} & a_{12} & \cdots & a_{1n} \\
    a_{21} & a_{22} & \cdots & a_{2n} \\
    \vdots & \vdots & \ddots & \vdots \\
    a_{m1} & a_{m2} & \cdots & a_{mn}
    \end{pmatrix}</math>
    
    →[math]\displaystyle{ \begin{pmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{pmatrix} }[/math]

    多行公式与对齐

    • 多行公式(无对齐):使用 \begin{gather} ... \end{gather},每行自动居中。

    示例:

      <math>\begin{gather}
      E = mc^2 \\
      a^2 + b^2 = c^2
      \end{gather}</math>
      

    → [math]\displaystyle{ \begin{gather} E = mc^2 \\ a^2 + b^2 = c^2 \end{gather} }[/math]

    • 带对齐的公式:使用 \begin{align} ... \end{align},用 & 指定对齐点。

    示例:

      <math>\begin{align}
      (a+b)^2 &= a^2 + 2ab + b^2 \\
      (a-b)^2 &= a^2 - 2ab + b^2
      \end{align}</math>
      

    → [math]\displaystyle{ \begin{align} (a+b)^2 &= a^2 + 2ab + b^2 \\ (a-b)^2 &= a^2 - 2ab + b^2 \end{align} }[/math]

    • 分段函数(cases):\begin{cases} ... \end{cases}

    示例:

      <math>f(x) = \begin{cases}
      x^2, & \text{if } x \ge 0 \\
      -x^2, & \text{if } x < 0
      \end{cases}</math>
      

    → [math]\displaystyle{ f(x) = \begin{cases} x^2, & \text{if } x \ge 0 \\ -x^2, & \text{if } x \lt 0 \end{cases} }[/math]

    上下括号与堆叠

    • 上括号:\overbrace{表达式}^{说明} → [math]\displaystyle{ \overbrace{a+b+c}^{\text{三项}} }[/math]
    • 下括号:\underbrace{表达式}_{说明} → [math]\displaystyle{ \underbrace{a+b+c}_{\text{三项}} }[/math]
    • 堆叠(上下排列):\stackrel{上方}{下方} → [math]\displaystyle{ \stackrel{def}{=} }[/math] 或使用 \underset{下方}{主体}、\overset{上方}{主体}。

    示例:\overset{\Delta}{=} → [math]\displaystyle{ \overset{\Delta}{=} }[/math];\underset{x>0}{\max} → [math]\displaystyle{ \underset{x\gt 0}{\max} }[/math]

    字体与样式

    |+ 常用字体切换命令

    样式 命令 示例(输出) 示例(代码)
    罗马体(默认) \mathrm{...} [math]\displaystyle{ \mathrm{ABCD} }[/math] \mathrm{ABCD}
    粗体 \mathbf{...} [math]\displaystyle{ \mathbf{ABCD} }[/math] \mathbf{ABCD}
    粗体(希腊字母) \boldsymbol{...} 或 \bm{...} [math]\displaystyle{ \boldsymbol{\alpha\beta\gamma} }[/math] \boldsymbol{\alpha\beta\gamma}
    斜体(数学默认) 直接写字母 [math]\displaystyle{ ABCD }[/math] ABCD
    黑板粗体(数集) \mathbb{...} [math]\displaystyle{ \mathbb{R}, \mathbb{N}, \mathbb{Z} }[/math] \mathbb{R}, \mathbb{N}, \mathbb{Z}
    手写体(花体) \mathcal{...} [math]\displaystyle{ \mathcal{ABCDEF} }[/math] \mathcal{ABCDEF}
    德文尖角体 \mathfrak{...} [math]\displaystyle{ \mathfrak{ABCDEF} }[/math] \mathfrak{ABCDEF}
    打字机体 \mathtt{...} [math]\displaystyle{ \mathtt{ABCDEF} }[/math] \mathtt{ABCDEF}
    无衬线体 \mathsf{...} [math]\displaystyle{ \mathsf{ABCDEF} }[/math] \mathsf{ABCDEF}

    颜色

    使用 \color{颜色}{内容} 或 \textcolor{颜色}{内容}。支持颜色名称(如 red, blue, green)或十六进制码(如 #RRGGBB)。
    示例:

    • \color{red}{红色文本} → [math]\displaystyle{ \color{red}{红色文本} }[/math]
    • \textcolor{blue}{蓝色文本} → [math]\displaystyle{ \textcolor{blue}{蓝色文本} }[/math]
    • 混合:x^2 + \color{green}{y^2} = z^2 → [math]\displaystyle{ x^2 + \color{green}{y^2} = z^2 }[/math]

    空格与换行

    • 空格:LaTeX 默认忽略普通空格。强制空格可使用:
    • \, → 小空格 [math]\displaystyle{ a\,b }[/math]
    • \: 或 \> → 中等空格 [math]\displaystyle{ a\:b }[/math]
    • \; → 大空格 [math]\displaystyle{ a\;b }[/math]
    • \quad → 一个空位 [math]\displaystyle{ a\quad b }[/math]
    • \qquad → 两个空位 [math]\displaystyle{ a\qquad b }[/math]
    • 换行:在 \begin{aligned} 等环境中使用 \\ 换行;普通公式内不能直接换行,但可使用 \newline 或 \\(需要环境支持)。

    常用符号汇总

    符号 名称 Tex 符号 名称 Tex
    [math]\displaystyle{ \infty }[/math] 无穷 \infty [math]\displaystyle{ \partial }[/math] 偏导 \partial
    [math]\displaystyle{ \nabla }[/math] 梯度(纳布拉) \nabla [math]\displaystyle{ \triangle }[/math] 三角形(拉普拉斯) \triangle
    [math]\displaystyle{ \angle }[/math] 角 \angle [math]\displaystyle{ \measuredangle }[/math] 量角 \measuredangle
    [math]\displaystyle{ ^\circ }[/math] 度 ^\circ [math]\displaystyle{ \prime }[/math] 撇(导数) \prime
    [math]\displaystyle{ \forall }[/math] 任意 \forall [math]\displaystyle{ \exists }[/math] 存在 \exists
    [math]\displaystyle{ \nexists }[/math] 不存在 \nexists [math]\displaystyle{ \emptyset }[/math] 空集 \emptyset 或 \varnothing
    [math]\displaystyle{ \in }[/math] 属于 \in [math]\displaystyle{ \notin }[/math] 不属于 \notin
    [math]\displaystyle{ \subset }[/math] 子集 \subset [math]\displaystyle{ \subseteq }[/math] 子集或相等 \subseteq
    [math]\displaystyle{ \supset }[/math] 超集 \supset [math]\displaystyle{ \supseteq }[/math] 超集或相等 \supseteq
    [math]\displaystyle{ \cup }[/math] 并集 \cup [math]\displaystyle{ \cap }[/math] 交集 \cap
    [math]\displaystyle{ \setminus }[/math] 差集 \setminus [math]\displaystyle{ \land }[/math] 逻辑与(且) \land 或 \wedge
    [math]\displaystyle{ \lor }[/math] 逻辑或(或) \lor 或 \vee [math]\displaystyle{ \lnot }[/math] 逻辑非(非) \lnot 或 \neg
    [math]\displaystyle{ \therefore }[/math] 所以 \therefore [math]\displaystyle{ \because }[/math] 因为 \because

    标点与修饰符

    • 导数:f'(x) → [math]\displaystyle{ f'(x) }[/math];f(x) → [math]\displaystyle{ f''(x) }[/math]
    • 点导数:[math]\displaystyle{ \dot{x} }[/math] (\dot{x}),[math]\displaystyle{ \ddot{x} }[/math] (\ddot{x})
    • 矢量箭头:\vec{v} → [math]\displaystyle{ \vec{v} }[/math];\overrightarrow{AB} → [math]\displaystyle{ \overrightarrow{AB} }[/math]
    • 均值线:\bar{x} → [math]\displaystyle{ \bar{x} }[/math];\overline{xyz} → [math]\displaystyle{ \overline{xyz} }[/math]
    • 波浪线:\tilde{a} → [math]\displaystyle{ \tilde{a} }[/math];\widetilde{abc} → [math]\displaystyle{ \widetilde{abc} }[/math]
    • 帽子:\hat{a} → [math]\displaystyle{ \hat{a} }[/math];\widehat{abc} → [math]\displaystyle{ \widehat{abc} }[/math]
    • 上弧线:\overparen{abc} 可能需要扩展,部分环境支持。
    • 取消线:\cancel{abc} → [math]\displaystyle{ \cancel{abc} }[/math](需要 \cancel 宏包,SimpleMathJax 可能支持)

    高级技巧

    公式编号

    在 align 环境中,可使用 \tag{...} 手动添加编号:

    <math>\begin{align}
    E = mc^2 \tag{1}
    \end{align}</math>
    

    → [math]\displaystyle{ \begin{align} E = mc^2 \tag{1} \end{align} }[/math]

    自动编号需要加载 \usepackage{amsmath} 并配合 \begin{align} 使用 \notag 禁用编号,但 SimpleMathJax 默认支持 amsmath 扩展,可尝试 \begin{equation} ... \end{equation}:

    <math>\begin{equation}
    a^2 + b^2 = c^2
    \end{equation}</math>
    

    → [math]\displaystyle{ \begin{equation} a^2 + b^2 = c^2 \end{equation} }[/math]

    长公式折行

    使用 \begin{multline} 环境,第一行左对齐,最后一行右对齐,中间居中:

    <math>\begin{multline}
    a + b + c + d + e + f + g + h + i + j \\
    + k + l + m + n + o + p \\
    + q + r + s + t + u + v + w + x + y + z 
    \end{multline}</math>
    

    → [math]\displaystyle{ \begin{multline} a + b + c + d + e + f + g + h + i + j \\ + k + l + m + n + o + p \\ + q + r + s + t + u + v + w + x + y + z \end{multline} }[/math]

    大型公式细调

    • 调整积分限位置:\int\limits_{0}^{1} → [math]\displaystyle{ \int\limits_{0}^{1} f(x) dx }[/math] (强制上下限在正下方/上方)
    • 取消强制:\int\nolimits_{0}^{1} → [math]\displaystyle{ \int\nolimits_{0}^{1} f(x) dx }[/math]
    • 分数大小:\tfrac{分子}{分母} 生成文本行内小分式,\dfrac{分子}{分母} 生成独立大分式。
      • 例如:行内分式 [math]\displaystyle{ \tfrac{1}{2} }[/math] 对比 [math]\displaystyle{ \dfrac{1}{2} }[/math]。

    自定义宏

    可以使用 \newcommand 定义新命令(仅限单个公式内)。例如:

    <math>\newcommand{\R}{\mathbb{R}}
    \R \text{ 表示实数集}</math>
    

    → [math]\displaystyle{ \newcommand{\R}{\mathbb{R}} \R \text{ 表示实数集} }[/math]

    注意:定义的宏只在当前 <math> 标签内有效。

    注意事项

    • 确保公式标签正确闭合,避免嵌套错误。
    • 大括号 {} 在 LaTeX 中用于分组,如需显示大括号请使用 \{ 和 \}。
    • 下划线 _ 和脱字符 ^ 在普通文本中可能被解析,但在 <math> 内安全。
    • 如果公式显示异常,请检查是否缺少必要的反斜杠或括号匹配。
    • 部分高级宏包(如 xy-pic、tikz)可能不支持,建议仅使用 AMS-LaTeX 基本命令。