UnicodeMath 语法完整对照手册
前言
- 插入公式快捷键:
Alt
+=
(Windows系统) - 线性格式转换:输入后按空格键(
<space>
) - 取消公式转换:
Ctrl
+Z
- 公式编号:
a=b#(20)
→ $a=b \tag{20}$
分式、声调、上下标
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
a/b <space> | $\frac{a}{b}$ | x^2 <space> | $x^2$ |
a_2 <space> | $a_2$ | t_(i,j)^(2+3) <space> | $t_{i,j}^{2+3}$ |
(_2^3) <space> | ${}_2^3$ | \hat(a) <space> | $\hat{a}$ |
\check(a) <space> | $\check{a}$ | \tilde(a) <space> | $\tilde{a}$ |
\acute(a) <space> | $\acute{a}$ | \grave(a) <space> | $\grave{a}$ |
\dot(a) <space> | $\dot{a}$ | \ddot(a) <space> | $\ddot{a}$ |
\dddot(a) <space> | $\dddot{a}$ | \ddddot(a) <space> | $\ddddot{a}$ |
\tvec(a) <space> | $\vec{a}$ | \bar(a) <space> | $\bar{a}$ |
\vec(a) <space> | $\vec{a}$ | \Bar(a) <space> | $\overline{a}$ |
\hvec(a) <space> | $\hat{a}$ |
希腊字母
小写语法 | 效果 | 大写语法 | 效果 |
---|---|---|---|
\alpha | α | \Alpha | A |
\beta | β | \Beta | B |
\gamma | γ | \Gamma | Γ |
\delta | δ | \Delta | Δ |
\epsilon | ϵ | \Epsilon | E |
\zeta | ζ | \Zeta | Z |
\eta | η | ||
\theta | θ | ||
\iota | ι | ||
\kappa | κ | ||
\lambda | λ | ||
\mu | μ | ||
\nu | ν | ||
\xi | ξ | ||
\pi | π | ||
\rho | ρ | ||
\sigma | σ | ||
\tau | τ | ||
\upsilon | υ | ||
\phi | ϕ | ||
\chi | χ | ||
\psi | ψ | ||
\omega | ω | ||
\varepsilon | ε | ||
\varphi | φ | ||
\varpi | ϖ | ||
\varrho | ϱ | ||
\varsigma | ς | ||
\vartheta | ϑ |
几何与简单运算
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
\angle | ∠ | \bot | ⊥ |
\bigodot | $\bigodot$ | 90\degree | 90° |
\times | × | \div | ÷ |
\parallel | ∥ |
根号
语法 | 效果 |
---|---|
\sqrt(a) <space> | $\sqrt{a}$ |
\sqrt(n&a) <space> | $\sqrt[n]{a}$ |
\root n+1\of(a+b) <space> | $\sqrt[n+1]{a+b}$ |
\cbrt(a) <space> | $\sqrt[3]{a}$ |
\qdrt(a) <space> | $\sqrt[4]{a}$ |
\sqrt abc <space> | $\sqrt{abc}$ |
积分
语法 | 效果 |
---|---|
\int <space> | $\int$ |
\iint <space> | $\iint$ |
\iiint <space> | $\iiint$ |
\iiiint <space> | $\iiiint$ |
\oint <space> | $\oint$ |
\oiint <space> | $\oiint$ |
\oiiint <space> | $\oiiint$ |
\aoint <space> | |
\coint <space> |
微分
语法 | 效果 |
---|---|
\nabla f <space> | $\nabla f$ |
\dot(t) <space> | $\dot{t}$ |
f\prime <space> | $f'$ |
f\pprime <space> | $f''$ |
f\ppprime <space> | $f'''$ |
f\pppprime <space> | $f''''$ |
d^n y/dx^n <space> | $\frac{d^ny}{dx^n}$ |
\partial y/(\partial x) <space> | $\frac{\partial y}{\partial x}$ |
\inc x <space> | $\Delta x$ |
带圈、带框运算符,点与省略号
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
\odot | ⊙ | \ominus | ⊖ |
\oplus | ⊕ | \otimes | ⊗ |
\bullet | • | \circ | ∘ |
\cdot | · | \cdots | ⋯ |
\dots | … | \ldots | … |
\ddots | ⋱ | \rddots | ⋰ |
\vdots | ⋮ | \boxplus | ⊞ |
\boxdot | ⊡ | \boxminus | ⊟ |
特殊符号
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
\aleph | ℵ | \ast | ∗ |
\beth | ℶ | \bowtie | ⋈ |
\clubsuit | ♣ | \daleth | ℸ |
\degc | °C | \degf | °F |
\star | ⋆ | \diamond | ⋄ |
\diamondsuit | ♢ | \heartsuit | ♥ |
\gimel | ℷ | \models | ⊧ |
\mapsto | ↦ |
大型运算符与极限
语法 | 效果 |
---|---|
\sum_(n=1)^m f(n) <space> | $\sum_{n=1}^m f(n)$ |
\prod_(n=1)^m f(n) <space> | $\prod_{n=1}^m f(n)$ |
\amalg_(n=1)^m f(n) <space> | $\amalg_{n=1}^m f(n)$ |
lim_(n\rightarrow\infty) a_n <space> | $\lim_{n\rightarrow\infty} a_n$ |
矩阵、方程组、等式对齐
语法 | 效果 |
---|---|
\matrix(a&b@c&d) <space> | $\begin{matrix} a & b \ c & d \end{matrix}$ |
(\matrix(a&b@c&d)) <space> | $\begin{pmatrix} a & b \ c & d \end{pmatrix}$ |
\pmatrix(a&b@c&d) <space> | $\begin{pmatrix} a & b \ c & d \end{pmatrix}$ |
[\matrix(a&b@c&d)] <space> | $\begin{bmatrix} a & b \ c & d \end{bmatrix}$ |
\vert\matrix(a&b@c&d)\vert <space> | $\begin{vmatrix} a & b \ c & d \end{vmatrix}$ |
\norm\matrix(a&b@c&d)\norm <space> | $\begin{Vmatrix} a & b \ c & d \end{Vmatrix}$ |
(n\atop m) <space> | $\binom{n}{m}$ |
{\eqarray(12&x+3&y=8@5&x+20&y=7)\right <space> | $\begin{cases} 12x+3y=8 \ 5x+20y=7 \end{cases}$ |
\cases(12&x+3&y=8@5&x+20&y=7)\right <space> | $\begin{cases} 12x+3y=8 \ 5x+20y=7 \end{cases}$ |
\eqarray(f&=1+2+3@&=1+5@&=6) <space> | $\begin{align} f&=1+2+3 \ &=1+5 \ &=6 \end{align}$ |
在箭头、等号、大括号上加标注
语法 | 效果 |
---|---|
\overbar(1+1+1+\cdots+1) <space> | $\overline{1+1+1+\cdots+1}$ |
\underbar(1+1+1+\cdots+1) <space> | $\underline{1+1+1+\cdots+1}$ |
\overbrace(1+1+1+\cdots+1)^(n times) <space> | $\overbrace{1+1+1+\cdots+1}^{n \text{ times}}$ |
\underbrace(1+1+1+\cdots+1)_(n times) <space> | $\underbrace{1+1+1+\cdots+1}_{n \text{ times}}$ |
\overparren(1+1+1+\cdots+1)^(n times) <space> | $\overparen{1+1+1+\cdots+1}^{n \text{ times}}$ |
\overbrace(1+1+1+\cdots+1)_(n times) <space> | $\underbrace{1+1+1+\cdots+1}_{n \text{ times}}$ |
\overshell(2134)^(4位) <space> | |
\above\rightarrow(a=b) <space> | |
\below\leftarrow(x=t) <space> | |
(abcde)\above\rightarrow <space> | |
(abcde)\below\rightarrow <space> | |
\defeq <space> | |
\Deltaeq <space> |
带框公式、括号、取整符号
语法 | 效果 |
---|---|
\rect(E=mc^2) <space> | $\boxed{E=mc^2}$ |
\lceil x\rceil <space> | $\lceil x \rceil$ |
\lfloor x\rfloor <space> | $\lfloor x \rfloor$ |
\lbrack(a+b)/(c+d)\rbrack <space> | $\left[\frac{a+b}{c+d}\right]$ |
\lbrace(a+b)/(c+d)\rbrace <space> | $\left{\frac{a+b}{c+d}\right}$ |
\bra\Psi\right <space> | $\langle\Psi|$ |
\left\Psi\ket <space> | $|\Psi\rangle$ |
\left{(a+b)/(c+d)\right} <space> | $\left{\frac{a+b}{c+d}\right}$ |
箭头
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
\gets | ← | \to | → |
\hookleftarrow | ↩ | \hookrightarrow | ↪ |
\leftarrow | ← | \rightarrow | → |
\leftrightarrow | ↔ | \Leftrightarrow | ⇔ |
\Leftarrow | ⇐ | \Rightarrow | ⇒ |
\uparrow | ↑ | \downarrow | ↓ |
\Uparrow | ⇑ | \Downarrow | ⇓ |
\updownarrow | ↕ | \Updownarrow | ⇕ |
\leftharpoonup | ↼ | \leftharpoondown | ↽ |
\rightharpoonup | ⇀ | \rightharpoondown | ⇁ |
\nearrow | ↗ | \nwarrow | ↖ |
\searrow | ↘ | \swarrow | ↙ |
关系运算符
语法 | 效果 | 语法 | 效果 |
---|---|---|---|
! | ! | + | + |
- | - | \pm | ± |
\mp | ∓ | : | : |
= | = | <= | ≤ |
\le | ≤ | \leq | ≤ |
>= | ≥ | \ge | ≥ |
\geq | ≥ | < | < |
\ll | ≪ | > | > |
\gg | ≫ | ~ | ~ |
\neq | ≠ | \ne | ≠ |
/\le | ≰ | /\ge | ≱ |
\sim | ∼ | /\sim | ≁ |
\exists | ∃ | /\exists | ∄ |
\ni | ∋ | /\ni | ∌ |
\simeq | ≃ | /\simeq | ≄ |
\cong | ≅ | /\cong | ≇ |
\approx | ≈ | /\approx | ≉ |
\asymp | ≍ | /\asymp | ≭ |
\equiv | ≡ | /\equiv | ≢ |
\succeq | ≽ | /\succeq | ⋡ |
\prec | ≺ | /\prec | ⊀ |
\succ | ≻ | /\succ | ⊁ |
\preceq | ≼ | /\preceq | ⋠ |
\subset | ⊂ | /\subset | ⊄ |
\superset | ⊃ | /\superset | ⊅ |
\subseteq | ⊆ | /\subseteq | ⊈ |
\superseteq | ⊇ | /\superseteq | ⊉ |
\sqsubseteq | ⊑ | /\sqsubseteq | ⋢ |
\sqsuperseteq | ⊒ | /\sqsuperseteq | ⋣ |
\cap | ∩ | \cup | ∪ |
\uplus | ⊎ | \emptyset | ∅ |
\sqcap | ⊓ | \sqcup | ⊔ |
\wedge | ∧ | \vee | ∨ |
\propto | ∝ | \doteq | ≐ |
\forall | ∀ | \because | ∵ |
\therefore | ∴ |
字体控制
语法 | 效果(小写) | 效果(大写) |
---|---|---|
\scriptf | $𝒻$ | \scriptF $ℱ$ |
\frakturr | 𝔯 | \frakturR ℜ |
\doubleq | 𝕢 | \doubleQ ℚ |
排版与间距控制
语法 | 尺寸 | 效果 |
---|---|---|
xx//yy | / | xx/yy |
xx\zwsp yy | 0em | xxyy |
xx\hairsp yy | 1/18em | xx yy |
xx\thinsp yy | 3/18em | xx yy |
xx\medsp yy | 4/18em | xx yy |
xx\thicksp yy | 5/18em | xx yy |
xx\vthicksp yy | 6/18em | xx yy |
xx\ensp yy | 9/18em | xx yy |
xx\emsp yy | 18/18em | xx yy |
xx\nbsp yy | space width | xx yy |
自定义公式语法
- 公式工具栏 → 小箭头按钮 → "公式选项"
- 点击"数学符号自动更正"
- 在"替换"处输入新语法(如
\oslash
),添加符号
提示:本文档基于CSDN博客https://blog.csdn.net/xxx/yyy整理
参考资源:
- Unicode Nearly Plain-Text Encoding of Mathematics Version 3
- LaTex各种命令汇总
- UnicodeMath编码教程
- Unicode 13.0 Character Code Charts