# LaTeX食用指北

## 关于LaTex

ps:有部分markdown支持LaTex语法，微软家的office 2019公式支持使用LaTex语法输入公式。

## 常用表示

### 希腊字母

${\alpha}$ \alpha ${\beta}$ \beta ${\gamma}$ \gamma
${\delta}$ \delta ${\epsilon}$ \epsilon ${\zeta}$ \zeta
${\eta}$ \eta ${\theta}$ \theta ${\iota}$ \iota
${\kappa}$ \kappa ${\lambda}$ \lambda ${\mu}$ \mu
${\nu}$ \nu ${\xi}$ \xi ${\omicron}$ \omicron
${\pi}$ \pi ${\rho}$ \rho ${\sigma}$ \sigma
${\sigma}$ \sigma ${\upsilon}$ \upsilon ${\phi}$ \phi
${\chi}$ \chi ${\psi}$ \psi ${\omega}$ \omega
${\varepsilon}$ \varepsilon ${\varkappa}$ \varkappa ${\vartheta}$ \vartheta
${\varpi}$ \varpi ${\varrho}$ \varrho ${\varsigma}$ \varsigma
${\varphi}$ \varphi - - - -

### 二元关系

${<}$ < ${>}$ > ${=}$ =
${\le}$ \leg or \le ${\ge}$ \gep or \ge ${\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
${\sqsubseteq}$ \sqsubseteq ${\sqsupseteq}$ \sqsupseteq ${\bowtie}$ \bowtie
${\in}$ \in ${\ni}$ \ni or \owns ${\propto}$ \propto
${\vdash}$ \vdash ${\dashv}$ \dashv ${\models}$ \models
${\mid}$ \mid ${\parallel}$ \parallel ${\perp}$ \perp
${\smile}$ \smile ${\frown}$ \frown ${\asymp}$ \asymp
${:}$ : ${\notin}$ \notin ${\ne}$ \nep or \ne

### 二元运算符

${+}$ + ${-}$ - ${\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}$ \vee or \lor
${\wedge}$ \wedge or \land ${\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

### 其他运算符

${\sum}$ \sum ${\bigcup}$ \bigcup ${\bigvee}$ \bigvee
${\prod}$ \prod ${\bigcap}$ \bigcap ${\bigwedge}$ \bigwedge
${\coprod}$ \coprod ${\bigsqcup}$ \bigsqcup ${\biguplus}$ \biguplus
${\int}$ \int ${\oint}$ \oint ${\bigodot}$ \bigodot
${\bigoplus}$ \bigoplus ${\bigotimes}$ \bigotimes

### 定界符

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

### 其他定界符

${\lgroup}$ \lgroup ${\rgroup}$ \rgroup
${\lmoustache}$ \lmoustache KaTeX parse error: Undefined control sequence: \arrowvert at position 2: {\̲a̲r̲r̲o̲w̲v̲e̲r̲t̲} \arrowvert
KaTeX parse error: Undefined control sequence: \Arrowvert at position 2: {\̲A̲r̲r̲o̲w̲v̲e̲r̲t̲} \Arrowvert KaTeX parse error: Undefined control sequence: \bracevert at position 2: {\̲b̲r̲a̲c̲e̲v̲e̲r̲t̲} \bracevert
${\rmoustache}$ \rmoustache

### 其他数学符号

${\exists}$ \exists ${\forall}$ \forall
${\infty}$ \infty ${\angle}$ \angle
${\hat{x}}$ \hat{x} ${\bar{x}}$ \bar{x}
${\vec{x}}$ \vec{x} ${\dot{x}}$ \dot{x}
${\ddot{x}}$ \ddot{x}

### 箭头

${\gets}$ \gets ${\to}$ \to
${\Leftarrow}$ \Leftarrow ${\Rightarrow}$ \Rightarrow
${\Leftrightarrow}$ \Leftrightarrow

## 常用命令

### 上标与下标

${2^2}$ 2^2 ${a_i}$ a_i
${2^{23}}$ 2^{23} ${n_{i-1}}$ n_{i-1}
${a^{i+1}_3}$ a^{i+1}_3 ${x^{3^2}}$ x{32}
${2^{a_i}}$ 2^{a_i} ${2^a_i}$ 2^a_i

### 上划线和下划线

${\overline{a+bi}}$ \overline{a+bi} ${\underline{431}}$ \underline{431}

### 分式

${\frac{1}{2}}$ \frac{1}{2} ${\dfrac{1}{2}}$ \dfrac{1}{2}
${\frac{2}{x+2}}$ \frac{2}{x+2} ${\dfrac{2}{x+2}}$ \dfrac{2}{x+2}
${\frac{1+\frac{1}{x}}{3x + 2}}$ \frac{1+\frac{1}{x}}{3x + 2} ${\dfrac{1+\frac{1}{x}}{3x + 2}}$ \dfrac{1+\frac{1}{x}}{3x + 2}

${\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}}}$ \cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1+\cfrac{2}{1}}}}

### 根式

${\sqrt(2)}$ \sqrt(2) ${\sqrt{2}}$ \sqrt{2}
${\sqrt{x+y}}$ \sqrt{x+y} ${\sqrt{x+\frac{1}{2}}}$ \sqrt{x+\frac{1}{2}}
${\sqrt[3]{3}}$ \sqrt[3]{3} ${\sqrt[n]{x}}$ \sqrt[n]{x}

### 求和,求积,求极限

${\sum_{i=1}^{\infty}\frac{1}{i}}$ \sum_{i=1}^{\infty}\frac{1}{i}
${\prod_{n=1}^5\frac{n}{n-1}}$ \prod_{n=1}^5\frac{n}{n-1}
${\lim_{x\to\infty}\frac{1}{x}}$ \lim_{x\to\infty}\frac{1}{x}

### 求微积分,偏导

${\frac{d}{dx}\left(x^2\right) = 2x}$ \frac{d}{dx}\left(x^2\right) = 2x
${\int 2xdx = x^2+C}$ \int 2xdx = x^2+C
${\frac{\partial^2U}{\partial x^2} + \frac{\partial^2U}{\partial y^2}}$ \frac{\partial^2U}{\partial x^2} + \frac{\partial^2U}{\partial y^2}

### 三角函数

${\cos}$ \cos
${\arccos}$ \arccos
${\cosh}$ \cosh
${\cos^2 x +\sin^2 x = 1}$ \cos^2 x +\sin^2 x = 1
${\cos 90^\circ = 0}$ \cos 90^\circ = 0

### 对数函数

${\ln15}$ \ln15
${\log_2^{10}}$ \log_2^{10}
${\lg7}$ \lg7

### 向量

${\vec{a} \cdot \vec{b}=0}$ \vec{a} \cdot \vec{b}=0

### 占位宽度

a \qquad b两个m的宽度, 显示为:${a \qquad b}$
a \quad b 一个m的宽度，显示为:${a \quad b}$
a \ b 1/3m宽度，显示为:${a \ b}$
a\;b 2/7m宽度，显示为:${a\;b}$
a\,b 1/6m宽度, 显示为:${a\,b}$
ab 显示为:${ab}$
a\b缩进1/6m宽度, 显示为:${ab}$

## 环境

“bengin 环境名”开始，并以“end 环境名”结束。
LaTex可以排版公式与文字，故分为：数学模式和文本模式。如果你想要在公式中排版普通的文本（直立字体和普通字距），那么你必须要把这些文本放在\textrm{...}命令中。
KaTeX parse error: No such environment: equation at position 8: \begin{̲e̲q̲u̲a̲t̲i̲o̲n̲}̲ f(x) = \fr…

$$f(x) = \frac{1}{x}$$


$v_p = \sqrt{\frac{2kT}{m}}$

$$v_p = \sqrt{\frac{2kT}{m}}$$


### 给公式加框

KaTeX parse error: No such environment: equation at position 8: \begin{̲e̲q̲u̲a̲t̲i̲o̲n̲}̲ \boxed{E=M…

$$\boxed{E=MC^2}\$$


### 矩阵表示

$\begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix}$

$$\begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1}$$


$\left\{ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right\}$

$$\left\{ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right\}$$


$\left[ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right]$

$$\left[ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right]$$


$\left[ \begin{matrix} 1 & 2 & \cdots & 4 \\ 7 & 6 & \cdots & 5 \\ \vdots & \vdots & \ddots & \vdots \\ 8 & 9 & \cdots & 0 \\ \end{matrix} \right]$

$$\left[ \begin{matrix} 1 & 2 & \cdots & 4 \\ 7 & 6 & \cdots & 5 \\ \vdots & \vdots & \ddots & \vdots \\ 8 & 9 & \cdots & 0 \\ \end{matrix} \right]$$


$\left[ \begin{array}{cc|c} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \right]$

$$\left[ \begin{array}{cc|c} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \right]$$


## 最后

$e^{i\pi} + 1 = 0$

03-17 1万+

03-25 615

10-30

03-10

04-03

04-12

01-10 448

04-30 6382

08-21

05-04 10万+

#### 【转】C语言中 -> 是什么意思？

©️2020 CSDN 皮肤主题: 1024 设计师: 上身试试

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