Jarvis' Blog 总有美丽的风景让人流连

Latex 符号

2019-06-09
Jarvis
Wiki_Latex

内容来源: 一份不太简短的 \(LaTeX2\epsilon\) 介绍

1. 常用数学符号

导入数学符号包

1
\usepackage{amssymb}

1.1 上标下标

代码 符号
\overline{m+n} \(\overline{m+n}\)
\underline{m+n} \(\underline{m+n}\)
\overbrace{1+2+\cdots+n}_{n} \(\overbrace{1+2+\cdots+n}_{n}\)
\underbrace{1+2+\cdots+n}_{n} \(\underbrace{1+2+\cdots+n}_{n}\)
\vec a \(\vec a\)
\overrightarrow{AB} \(\overrightarrow{AB}\)

1.2 数学符号表

1.2.1 重音符

代码 符号 代码 符号 代码 符号 代码 符号
\hat{a} \(\hat{a}\) \check{a} \(\check{a}\) \tilde{a} \(\tilde{a}\) \acute{a} \(\acute{a}\)
\grave{a} \(\grave{a}\) \dot{a} \(\dot{a}\) \ddot{a} \(\ddot{a}\) \breve{a} \(\breve{a}\)
\bar{a} \(\bar{a}\) \vec{a} \(\vec{a}\) \widehat{A} \(\widehat{A}\) \widetilde{A} \(\widetilde{A}\)

1.2.2 小写希腊字母

代码 符号 代码 符号 代码 符号 代码 符号
\alpha \(\alpha\) \theta \(\theta\) o \(o\) \upsilon \(\upsilon\)
\beta \(\beta\) \vartheta \(\vartheta\) \pi \(\pi\) \phi \(\phi\)
\gamma \(\gamma\) \iota \(\iota\) \varpi \(\varpi\) \varphi \(\varphi\)
\delta \(\delta\) \kappa \(\kappa\) \rho \(\rho\) \chi \(\chi\)
\epsilon \(\epsilon\) \lambda \(\lambda\) \varrho \(\varrho\) \psi \(\psi\)
\varepsilon \(\varepsilon\) \mu \(\mu\) \sigma \(\sigma\) \omega \(\omega\)
\zeta \(\zeta\) \nu \(\nu\) \varsigma \(\varsigma\) \eta \(\eta\)
\xi \(\xi\) \tau \(\tau\)        

1.2.3 大写希腊字母

代码 符号 代码 符号 代码 符号 代码 符号
\Gamma \(\Gamma\) \Lambda \(\Lambda\) \Sigma \(\Sigma\) \Psi \(\Psi\)
\Delta \(\Delta\) \Xi \(\Xi\) \Upsilon \(\Upsilon\) \Omega \(\Omega\)
\Theta \(\Theta\) \Pi \(\Pi\) \Phi \(\Phi\)    

1.2.4 二元关系符号

可以加前缀 \not 来得到否定形式

代码 符号 代码 符号 代码 符号
< \(<\) > \(>\) = \(=\)
\leq or \le \(\leq\) \geq or \ge \(\geq\) \equiv \(\equiv\)
\ll \(\ll\) \gg \(\gg\) \doteq \(\doteq\)
\prec \(\prec\) \succ \(\succ\) \sim \(\sim\)
\preceq \(\preceq\) \succeq \(\succeq\) \simeq \(\simeq\)
\subset \(\subset\) \supset \(\supset\) \approx \(\approx\)
\subseteq \(\subseteq\) \supseteq \(\supseteq\) \cong \(\cong\)
\sqsubset \(\sqsubset\) \sqsupset \(\sqsupset\) \Join \(\Join\)
\sqsubseteq \(\sqsubseteq\) \sqsupseteq \(\sqsupseteq\) \bowtie \(\bowtie\)
\in \(\in\) \ni, \owns \(\ni\) \propto \(\propto\)
\vdash \(\vdash\) \dashv \(\dashv\) \models \(\models\)
\mid \(\mid\) \parallel \(\parallel\) \perp \(\perp\)
\smile \(\smile\) \frown \(\frown\) \asymp \(\asymp\)
: \(:\) \notin \(\notin\) \neq or \ne \(\neq\)

注: \sqsubset, \sqsupset\Join 需要使用宏包 latexsym

1.2.5 二元运算符

代码 符号 代码 符号 代码 符号
+ \(+\) \(-\)    
\pm \(\pm\) \mp \(\mp\) \triangleleft \(\triangleleft\)
\cdot \(\cdot\) \div \(\div\) \triangleright \(\triangleright\)
\times \(\times\) \setminus \(\setminus\) \star \(\star\)
\cup \(\cup\) \cap \(\cap\) \ast \(\ast\)
\sqcup \(\sqcup\) \sqcap \(\sqcap\) \circ \(\circ\)
\vee, \lor \(\vee\) \wedge, \land \(\wedge\) \bullet \(\bullet\)
\oplus \(\oplus\) \ominus \(\ominus\) \diamond \(\diamond\)
\odot \(\odot\) \oslash \(\oslash\) \uplus \(\uplus\)
\otimes \(\otimes\) \bigcirc \(\bigcirc\) \amalg \(\amalg\)
\bigtriangleup \(\bigtriangleup\) \bigtriangledown \(\bigtriangledown\) \dagger \(\dagger\)
\lhd \(\lhd\) \rhd \(\rhd\) \ddagger \(\ddagger\)
\unlhd \(\unlhd\) \unrhd \(\unrhd\) \wr \(\wr\)

注: \lhd, \rhd, \unlhdunrhd 需要使用宏包 latexsym

1.2.6 箭头

代码 符号 代码 符号 代码 符号
\leftarrow or \gets \(\leftarrow\) \longleftarrow \(\longleftarrow\) \uparrow \(\uparrow\)
\rightarrow or \to \(\rightarrow\) \longrightarrow \(\longrightarrow\) \downarrow \(\downarrow\)
\leftrightarrow \(\leftrightarrow\) \longleftrightarrow \(\longleftrightarrow\) \updownarrow \(\updownarrow\)
Leftarrow \(\Leftarrow\) \Longleftarrow \(\Longleftarrow\) \Uparrow \(\Uparrow\)
Rightarrow \(\Rightarrow\) \Longrightarrow \(\Longrightarrow\) \Downarrow \(\Downarrow\)
Leftrightarrow \(\Leftrightarrow\) \Longleftrightarrow \(\Longleftrightarrow\) \Updownarrow \(\Updownarrow\)
mapsto \(\mapsto\) \longmapsto \(\longmapsto\) \nearrow \(\nearrow\)
hookleftarrow \(\hookleftarrow\) \hookrightarrow \(\hookrightarrow\) \searrow \(\searrow\)
leftharpoonup \(\leftharpoonup\) \rightharpoonup \(\rightharpoonup\) \swarrow \(\swarrow\)
leftharpoondown \(\leftharpoondown\) \rightharpoondown \(\rightharpoondown\) \nwarrow \(\nwarrow\)
rightleftharpoons \(\rightleftharpoons\) \iff (bigger spaces)) \(\iff\) \leadsto \(\leadsto\)

注: \leadsto 需要使用宏包 latexsym

1.2.7 定界符

代码 符号 代码 符号 代码 符号 代码 符号
( \((\) ) \()\) \uparrow \(\uparrow\) \Uparrow \(\Uparrow\)
[ or \lbrack \([\) ] or \rbrack \(]\) \downarrow \(\downarrow\) \Downarrow \(\Downarrow\)
\{ or \lbrace \(\lbrace\) \} or \rbrace \(\rbrace\) \updownarrow \(\updownarrow\) \Updownarrow \(\Updownarrow\)
\langle \(\langle\) \rangle \(\rangle\) | or \vert \(\vert\) \| or \Vert \(\Vert\)
\lfloor \(\lfloor\) \rfloor \(\rfloor\) \lceil \(\lceil\) \rceil \(\rceil\)
/ \(/\) \backslash \(\backslash\)        

1.2.3 数学字母

例子 命令 所需宏包
\(\mathrm{ABCdef}\) \mathrm{ABCdef}  
\(\mathit{ABCdef}\) \mathit{ABCdef}  
\(ABCdef\) \mathnormal{ABCdef}  
\(\mathcal{ABC}\) \mathcal{ABC}  
\(\mathscr{ABC}\) \mathscr{ABC} mathscr
\(\mathfrak{ABCdef}\) \mathfrak{ABCdef} eufrak
\(\mathbb{ABC}\) \mathbb{ABC} amsfonts or amssymb

Content