常用数学符号的LaTeX表示方法

行内公式单行公式(inline or displayed formulas)

行内公式用单个$对,例如:

$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$

效果: ∑ i = 0 n i 2 = ( n 2 + n ) ( 2 n + 1 ) 6 \sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} i=0ni2=6(n2+n)(2n+1)

单行公式用$$,例如:

$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$

效果: ∑ i = 0 n i 2 = ( n 2 + n ) ( 2 n + 1 ) 6 \sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6} i=0ni2=6(n2+n)(2n+1)

希腊字母(Greek letters)

说明代码结果
alpha$\alpha$ α \alpha α
beta$\beta$ β \beta β
gamma$\gamma$ γ \gamma γ
delta$\delta$ δ \delta δ
epsilon$\epsilon$ ϵ \epsilon ϵ
varepsilon$\varepsilon$ ε \varepsilon ε
zeta$\zeta$ ζ \zeta ζ
eta$\eta$ η \eta η
theta$\theta$ θ \theta θ
vartheta$\vartheta$ ϑ \vartheta ϑ
iota$\iota$ ι \iota ι
kappa$\kappa$ κ \kappa κ
lambda$\lambda$ λ \lambda λ
mu$\mu$ μ \mu μ
nu$\nu$ ν \nu ν
xi$\xi$ ξ \xi ξ
o$o$ o o o
pi$\pi$ π \pi π
varpi$\varpi$ ϖ \varpi ϖ
rho$\rho$ ρ \rho ρ
varrho$\varrho$ ϱ \varrho ϱ
sigma$\sigma$ σ \sigma σ
varsigma$\varsigma$ ς \varsigma ς
tau$\tau$ τ \tau τ
upsilon$\upsilon$ υ \upsilon υ
phi$\phi$ ϕ \phi ϕ
varphi$\varphi$ φ \varphi φ
chi$\chi$ χ \chi χ
psi$\psi$ ψ \psi ψ
omega$\omega$ ω \omega ω
Gamma$\Gamma$ Γ \Gamma Γ
Delta$\Delta$ Δ \Delta Δ
Theta$\Theta$ Θ \Theta Θ
Lambda$\Lambda$ Λ \Lambda Λ
Xi$\Xi$ Ξ \Xi Ξ
O$O$ O O O
Pi$\Pi$ Π \Pi Π
Sigma$\Sigma$ Σ \Sigma Σ
Upsilon$\Upsilon$ Υ \Upsilon Υ
Phi$\Phi$ Φ \Phi Φ
Psi$\Psi$ Ψ \Psi Ψ
Omega$\Omega$ Ω \Omega Ω

上下缀(superscripts and subscripts)

说明代码结果
上缀^$x^2$ x 2 x^2 x2
下缀_$x_i$ x i x_i xi
$\log_2 x$ log ⁡ 2 x \log_2 x log2x

分组

用花括号{}来分组,避免歧义。

代码结果
$10^10$ 1 0 1 0 10^10 1010
$10^{10}$ 1 0 10 10^{10} 1010
${x^y}^z$ x y z {x^y}^z xyz
$x^{y^z}$ x y z x^{y^z} xyz
$x_i^2$ x i 2 x_i^2 xi2
$x_{i^2}$ x i 2 x_{i^2} xi2

括号

代码结果
$(\frac{\sqrt x}{y^3})$ ( x y 3 ) (\frac{\sqrt x}{y^3}) (y3x )
增大括号$\left(\frac{\sqrt x}{y^3}\right)$ ( x y 3 ) \left(\frac{\sqrt x}{y^3}\right) (y3x )
$\{ x \}$ { x } \{ x \} {x}
$\vert x \vert$ ∣ x ∣ \vert x \vert x
$\Vert x \Vert$ ∥ x ∥ \Vert x \Vert x
$\langle x \rangle$ ⟨ x ⟩ \langle x \rangle x
$\lceil x \rceil$ ⌈ x ⌉ \lceil x \rceil x
$\lfloor x \rfloor$ ⌊ x ⌋ \lfloor x \rfloor x

求和\sum和积分\int

代码结果
$\sum_1^n$ ∑ 1 n \sum_1^n 1n
$\sum_{i=0}^\infty i^2$ ∑ i = 0 ∞ i 2 \sum_{i=0}^\infty i^2 i=0i2
$\prod$ ∏ \prod
$\int$ ∫ \int
$\bigcup$ ⋃ \bigcup
$\bigcap$ ⋂ \bigcap
$\iint$ ∬ \iint
$\iiint$ ∭ \iiint

分数

代码结果
$\frac ab$ a b \frac ab ba
$\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

字体

说明代码结果
blackboard bold$\mathbb{Cb}$\Bbb{Cb} C b \mathbb{Cb} Cb
boldface$\mathbf{Ab}$ A b \mathbf{Ab} Ab
typewriter$\mathtt{Ab}$ A b \mathtt{Ab} Ab
roman$\mathrm{A}$ A \mathrm{A} A
sans-serif$\mathsf{A}$ A \mathsf{A} A
calligraphic$\mathcal{ A}$ A \mathcal{ A} A
script letters$\mathscr{A}$ A \mathscr{A} A
Fraktur$\mathfrak{A}$ A \mathfrak{A} A

根号

代码结果
$\sqrt{x^3}$ x 3 \sqrt{x^3} x3
$\sqrt[3]{\frac xy}$ x y 3 \sqrt[3]{\frac xy} 3yx

特殊函数

例如:“lim”, “sin”, “max”, “ln”。

代码结果
$\lim_{x\to 0}$ lim ⁡ x → 0 \lim_{x\to 0} limx0
$\sin x$ sin ⁡ x \sin x sinx

特殊标记

代码结果
$\lt\, \gt\, \le\, \ge\, \neq,\not\lt$ <   >   ≤   ≥   ≠ , ≮ \lt\, \gt\, \le\, \ge\, \neq,\not\lt <>=,<
$\times\, \div\, \pm\, \mp$ ×   ÷   ±   ∓ \times\, \div\, \pm\, \mp ×÷±
$\cup\, \cap\, \setminus\, \subset\, \subseteq \,\subsetneq \,\supset\, \in\, \notin\, \emptyset\, \varnothing$ ∪   ∩   ∖   ⊂   ⊆   ⊊   ⊃   ∈   ∉   ∅   ∅ \cup\, \cap\, \setminus\, \subset\, \subseteq \,\subsetneq \,\supset\, \in\, \notin\, \emptyset\, \varnothing /
${n+1 \choose 2k}$ ( n + 1 2 k ) {n+1 \choose 2k} (2kn+1)
$\to\, \rightarrow\, \leftarrow\, \Rightarrow\, \Leftarrow\, \mapsto$ →   →   ←   ⇒   ⇐   ↦ \to\, \rightarrow\, \leftarrow\, \Rightarrow\, \Leftarrow\, \mapsto
$\land\, \lor\, \lnot\, \forall\, \exists\, \top\, \bot\, \vdash\, \vDash$ ∧   ∨   ¬   ∀   ∃   ⊤   ⊥   ⊢   ⊨ \land\, \lor\, \lnot\, \forall\, \exists\, \top\, \bot\, \vdash\, \vDash ¬
$\star\, \ast\, \oplus\, \circ\, \bullet$ ⋆   ∗   ⊕   ∘   ∙ \star\, \ast\, \oplus\, \circ\, \bullet
$\approx\, \sim \, \simeq\, \cong\, \equiv\, \prec, \lhd$ ≈   ∼   ≃   ≅   ≡   ≺ , ⊲ \approx\, \sim \, \simeq\, \cong\, \equiv\, \prec, \lhd ,

空格

代码结果
$a\quad b$ a b a\quad b ab
$a\qquad b$ a b a\qquad b ab
$\{x\in s\mid x\text{ is extra large}\}$ { x ∈ s ∣ x  is extra large } \{x\in s\mid x\text{ is extra large}\} {xsx is extra large}

音标

代码结果
$\hat x$ x ^ \hat x x^
$\widehat{xy}$ x y ^ \widehat{xy} xy
$\bar x$ x ˉ \bar x xˉ
$\overline{xyz}$ x y z ‾ \overline{xyz} xyz
$\vec x$ x ⃗ \vec x x
$\overrightarrow{xy}$ x y → \overrightarrow{xy} xy
$\dot x^2$ x ˙ 2 \dot x^2 x˙2
$\ddot x$ x ¨ \ddot x x¨

参考:
https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference
http://www.mohu.org/info/symbols/symbols.htm
Web端的katex:https://katex.org/

  • 4
    点赞
  • 36
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小龙在山东

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值