MarkDown, LaTex formula syntax

1. Formula format

(1) Embed in the row, single pair $, for example $d = a_b^c + a_b^c$, the effect is d = abc + abcd = a_b^c + a_b^cd=abc+abc

(2) Separate rows, double pairs $$, for example $$d = a_b^c + a_b^c$$, the effect is d = abc + abcd = a_b^c + a_b^cd=abc+abc

(3) Serial number: \tag, for example $$d = a_b^c + a_b^c\tag{1.1}$$, the effect is d = abc + abc (1.1) d = a_b^c + a_b^c\tag{1.1}d=abc+abc(1.1)

Format LaTeX symbols LaTex expression example example effect
Escapes Add \ before ~, #, $, %, &, *, {, } etc. $\{$ { \{ {
Superscript ^ $a^{c}$ a c a^{c} ac
subscript _ $a_{b}$ a b a_{b} ab
single space \quad $a_b^c \quad a_b^c$ a b c a b c a_b^c \quad a_b^c abcabc
double space \qquad $a_b^c \qquad a_b^c$ a b c a b c a_b^c \qquad a_b^c abcabc
bold \bm $\bm{d = a_b^c + a_b^c}$ d = a b c + a b c \bm{d = a_b^c + a_b^c} d=abc+abc
frame \boxed $\boxed{d = a_b^c + a_b^c}$ d = a b c + a b c \boxed{d = a_b^c + a_b^c} d=abc+abc
color \color{green}, \color{red} 等 $\color{green}{d = a_b^c + a_b^c}$ d = a b c + a b c \color{green}{d = a_b^c + a_b^c} d=abc+abc

2. Greek alphabet

LaTeX expression corresponding greek letter LaTeX expression corresponding greek letter
\alpha a \alphaa \Alpha A \Alpha A
\beta β \betab \Beta B \Beta B
\gamma γ \gamma c \Gamma Γ \Gamma C
\delta d \deltad \Delta D \DeltaD
\epsilon ϵ \epsilonϵ \Epsilon E \EpsilonE
\zeta ζ \zetag \Zeta From \ZetaZ
and the \etathe And H\EtaH
\theta θ \theta i \Theta Θ \Theta Th
\iota i \iotai \Iota I \Iota I
\kappa k \kappaK \Kappa K \Kappa K
\lambda λ \lambdal \Lambda Λ \LambdaL
\mu μ \mum \In M\UM
\not n \nun \Not N \NuN
\xi ξ \xi X \Xi Ξ \Xi X
\omicron ο \omicron The \Omicron O \OmicronO
\pi π \piPi \Pi Π \PiPi
\rho ρ \rho r \Rho P \Rho P
\sigma σ \sigma p \Sigma Σ \Sigma S
\ can τ \yeart \Tau T \TauT
\upsilon υ \upsilonu \Upsilon Υ \UpsilonY
\phi ϕ \phiϕ \Phi Φ \Phi Φ
\varphi φ \varphi φ \varPhi Φ \varPhi Φ
\chi χ \chi χ \Chi X \Chi X
\psi ψ \psi ψ \Psi Ψ \Psi Ψ
\omega ω \omega ω \Omega Ω \Omega Ω
\ell ℓ \ell
\varepsilon ε \varepsilon ε

3. 特殊上标

LaTex表达示例 示例效果 LaTex表达示例 示例效果
\hat{a} a ^ \hat{a} a^ \acute{a} a ˊ \acute{a} aˊ
\grave{a} a ˋ \grave{a} aˋ \breve{a} a ˘ \breve{a} a˘
\bar{a} a ˉ \bar{a} aˉ \widetilde{a} a ~ \widetilde{a} a
\check{a} a ˇ \check{a} aˇ \tilde{a} a ~ \tilde{a} a~
\dot{a} a ˙ \dot{a} a˙ \ddot{a} a ¨ \ddot{a} a¨
\vec{a} a ⃗ \vec{a} a \widehat{a} a ^ \widehat{a} a
\overline{a} a ‾ \overline{a} a \overrightarrow{a} a → \overrightarrow{a} a
\overleftrightarrow{a} a ↔ \overleftrightarrow{a} a \stackrel{F.T}{\longrightarrow} ⟶ F . T \stackrel{F.T}{\longrightarrow} F.T

4. 特殊括号

LaTex表达示例 示例效果
\left(…\right) ( … ) \left(…\right) ()
\vert ∣ \vert
\Vert ∥ \Vert
\langle ⟨ \langle
\rangle ⟩ \rangle
\lceil ⌈ \lceil
\rceil ⌉ \rceil
\lfloor ⌊ \lfloor
\Biggl[\biggl[\Bigl[\bigl[[x]\bigr]\Bigr]\biggr]\Biggr] [ [ [ [ [ x ] ] ] ] ] \Biggl[\biggl[\Bigl[\bigl[[x]\bigr]\Bigr]\biggr]\Biggr] [[[[[x]]]]]
\Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr) ( ( ( ( ( x ) ) ) ) ) \Biggl(\biggl(\Bigl(\bigl((x)\bigr)\Bigr)\biggr)\Biggr) (((((x)))))
\vert x \vert ∣ x ∣ \vert x \vert x
f(x)=\begin{cases} x = \cos(t) \\y = \sin(t) \\ z = \frac xy \end{cases} f ( x ) = { x = cos ⁡ ( t ) y = sin ⁡ ( t ) z = x y f(x)=\begin{cases} x = \cos(t) \\y = \sin(t) \\ z = \frac xy \end{cases} f(x)= x=cos(t)y=sin(t)z=yx
f(x)=\begin{cases} 0& \text{x=0}\\1& \text{x!=0} \end{cases} f ( x ) = { 0 x=0 1 x!=0 f(x)=\begin{cases} 0& \text{x=0}\\1& \text{x!=0} \end{cases} f(x)={ 01x=0x!=0

5. 矩阵形式

LaTex表达示例 示例效果
\begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix} 0 1 1 0 \begin{matrix} 0 & 1 \\ 1 & 0 \end{matrix} 0110
\begin{vmatrix} a & b \\ c & d \end{vmatrix} ∣ a b c d ∣ \begin{vmatrix} a & b \\ c & d \end{vmatrix} acbd
\begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix} ( 0 − i i 0 ) \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix} (0ii0)
\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} [ 0 − 1 1 0 ] \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} [0110]
\begin{Bmatrix} 1 & 0 \\ 0 & -1 \end{Bmatrix} { 1 0 0 − 1 } \begin{Bmatrix} 1 & 0 \\ 0 & -1 \end{Bmatrix} { 1001}
\begin{Vmatrix} i & 0 \\ 0 & -i \end{Vmatrix} ∥ i 0 0 − i ∥ \begin{Vmatrix} i & 0 \\ 0 & -i \end{Vmatrix} i00i

6. 积分求和

LaTex表达示例 示例效果
\infty ∞ \infty
\bigcup ⋃ \bigcup
\bigcap ⋂ \bigcap
\int ∫ \int
\iint ∬ \iint
\iiint ∭ \iiint
\sum ∑ \sum
\sum_1^n ∑ 1 n \sum_1^n 1n
\textstyle \sum_1^n ∑ 1 n \textstyle \sum_1^n 1n
\displaystyle \sum_1^n ∑ 1 n \displaystyle \sum_1^n 1n
\sum_{i=0}^\infty i^2 ∑ i = 0 ∞ i 2 \sum_{i=0}^\infty i^2 i=0i2
\prod_{k=1}^n k = n! ∏ k = 1 n k = n ! \prod_{k=1}^n k = n! k=1nk=n!

7. 函数符号

LaTex表达示例 示例效果
\frac{a+1}{b+1} a + 1 b + 1 \frac{a+1}{b+1} b+1a+1
{a+1\over b+1} a + 1 b + 1 {a+1\over b+1} b+1a+1
\cfrac{a}{b} a b \cfrac{a}{b} ba
\sqrt{x^3} x 3 \sqrt{x^3} x3
\sqrt[3]{\frac xy} x y 3 \sqrt[3]{\frac xy} 3yx
\log_{21} {xy} log ⁡ 21 x y \log_{21} {xy} log21xy
\sin x sin ⁡ x \sin x sinx
\cos x cos ⁡ x \cos x cosx
\lim lim ⁡ \lim lim
\textstyle \lim_{x\to 0} lim ⁡ x → 0 \textstyle \lim_{x \to 0} limx0
\displaystyle \lim_{x\to 0} lim ⁡ x → 0 \displaystyle \lim_{x \to 0} x0lim

8. 特殊符号

LaTex表达示例 示例效果 LaTex表达示例 示例效果
\lt < \lt < \gt > \gt >
\le ≤ \le \leq ≤ \leq
\leqq ≦ \leqq \leqslant ⩽ \leqslant
\ge ≥ \ge \geq ≥ \geq
\geqq ≧ \geqq \geqslant ⩾ \geqslant
\neq ≠ \neq = \not\lt ≮ \not\lt <
\not ̸ \not 在几乎所有符号 上划出斜线
\times × \times × \div ÷ \div ÷
\pm ± \pm ± \mp ∓ \mp
\cdot ⋅ \cdot
\cup ∪ \cup \cap ∩ \cap
\setminus ∖ \setminus \subset ⊂ \subset
\subseteq ⊆ \subseteq \subsetneq ⊊ \subsetneq
\supset ⊃ \supset \in ∈ \in
\notin ∉ \notin / \emptyset ∅ \emptyset
\varnothing ∅ \varnothing
{n+1 \choose 2k} ( n + 1 2 k ) {n+1 \choose 2k} (2kn+1) \binom{n+1}{2k} ( n + 1 2 k ) \binom{n+1}{2k} (2kn+1)
\to → \to \rightarrow → \rightarrow
\leftarrow ← \leftarrow \Rightarrow ⇒ \Rightarrow
\Leftarrow ⇐ \Leftarrow \mapsto ↦ \mapsto
\land ∧ \land \lor ∨ \lor
\lnot ¬ \lnot ¬ \forall ∀ \forall
\exists ∃ \exists \top ⊤ \top
\bot ⊥ \bot \vdash ⊢ \vdash
\vDash ⊨ \vDash
\star ⋆ \star \ast ∗ \ast
\oplus ⊕ \oplus \circ ∘ \circ
\bullet ∙ \bullet
\approx ≈ \approx \sim ∼ \sim
\simeq ≃ \simeq \cong ≅ \cong
\equiv ≡ \equiv \prec ≺ \prec
\lhd ⊲ \lhd \therefore ∴ \therefore
\infty ∞ \infty \aleph_0 ℵ 0 \aleph_0 0
\nabla ∇ \nabla \partial ∂ \partial
\Im ℑ \Im \Re ℜ \Re
\a\equiv b\pmod n a ≡ b ( m o d n ) a\equiv b\pmod n ab(modn)
\ldots … \ldots \cdots ⋯ \cdots

9. 特殊字体

LaTex表达示例 示例效果 LaTex表达示例 示例效果
\mathbb{ABCDE} A B C D E \mathbb{ABCDE} ABCDE \Bbb{ABCDEF} A B C D E F \Bbb{ABCDEF} ABCDEF
\mathbf{abcde} a b c d e \mathbf{abcde} abcde \mathtt{ABCDE} A B C D E \mathtt{ABCDE} ABCDE
\mathrm{ABCDE} A B C D E \mathrm{ABCDE} ABCDE \mathsf{ABCDE} A B C D E \mathsf{ABCDE} ABCDE
\mathcal{ABCDE}} A B C D E \mathcal{ABCDE} ABCDE \mathscr{ABCDE} A B C D E \mathscr{ABCDE} ABCDE
\mathfrak{ABCDE} A B C D E \mathfrak{ABCDE} ABCDE

参考资料

1、https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference
2、https://viatorsun.blog.csdn.net/article/details/82826664

Guess you like

Origin blog.csdn.net/i6101206007/article/details/131623858