输入公式时需要用这个符号包裹内容$$
大部分运算符后面可以跟花括号{}包裹内容,花括号只是一个作用域,个别运算符必须带花括号
常用符号如下
运算符 | 功能 | 举例 | 显示结果 |
---|---|---|---|
$$$$ | 居中 | $$x+y$$ | x + y x+y x+y |
\\ | 换行 | $x\\y$ | x y x\\y xy |
\times | 乘法 | $a \times b$ | a × b a \times b a×b |
\div | 除法 | $a \div b$ | a ÷ b a \div b a÷b |
\frac{}{} | 分数 | $ \frac{a}{b} $ | a b \frac {a} {b} ba |
\tiny 、 \small | 小号字体 | $\tiny x 、 \small x$ | x 、 x \tiny x 、 \small x x、x |
\nomalsize | 正常字体 | $\normalsize x+y$ | x + y \normalsize x+y x+y |
\large 、 \Large | 大号字体 | $\large x 和\Large x$ | x 和 x \large x 和\Large x x和x |
\huge 、 \Huge | 超大号字体 | $\large w 和 \Large W$ | w 和 W \large w 和 \Large W w和W |
\color{} | 字体颜色 | $\color{red}{lucky}\color{green}boy$ | l u c k y b o y \color{red}{lucky}\color{green}boy luckyboy |
\sqrt | 平方根 | $\sqrt {a + y}$ | a + y \sqrt {a + y} a+y |
\sqrt[n] | n次方根 | $\sqrt[n]{x+y}$ | x + y n \sqrt[n]{x+y} nx+y |
_ | 底数 | $A_2^3$ | A 2 A_2 A2 |
^ | 指数 | $a^2$ | a 2 a^2 a2 |
_^ | 上下标 | $C^5_2 + A_3^1$ | C 2 5 + A 3 1 C^5_2 + A_3^1 C25+A31 |
\log_ | 对数 | $\log_25+\log_{25}{x}$ | log 2 5 + log 25 x \log_25+\log_{25}{x} log25+log25x |
\lim_ | 极限 | $\lim_x\to3$ | lim x → 3 \lim_{x\to3} limx→3 |
\displaystyle | 展示风格 | $\displaystyle\lim_{x\to3}$ | lim x → 3 \displaystyle\lim_{x\to3} x→3lim |
\to | 箭头 | $\to$ | → \to → |
\sum | 求和符号 | $\displaystyle\sum_{i=0}^\infty$ | ∑ i = 0 ∞ \displaystyle\sum_{i = 0}^\infty i=0∑∞ |
\infty | 无穷大 | $\infty$ | ∞ \infty ∞ |
\int | 积分 | $\int_{2}^{3}{x+y}dx$ | ∫ 2 3 x + y d x \int_{2}^{3}{x+y}{\rm d}x ∫23x+ydx |
\alpha \beta \gamma | 希腊字母 | $.省略..\phi \Phi \pi \rho \sigma \Sigma$ | α β γ ω η λ μ ϕ Φ π ρ σ Σ \alpha \beta \gamma \omega \eta \lambda \mu \phi \Phi \pi \rho \sigma \Sigma αβγωηλμϕΦπρσΣ |
\mathbf{} | 粗体文字 | $\mathbf{A}$ | A \mathbf{A} A |
\mathit{} | 斜体文字 | $\mathit{A}$ | A \mathit{A} A |
\vec{} | 向量 | $\vec{a}$ | a ⃗ \vec{a} a |
\widehat{} | 单位向量 | $\widehat{a}$ | a ^ \widehat{a} a |
\begin{pmatrix} \end{pmatrix} | 矩阵 | $\begin{pmatrix} a\\b \end{pmatrix}$ | ( a b ) \begin{pmatrix} a\\ b \end{pmatrix} (ab) |
\begin{bmatrix} \end{bmatrix} | 矩阵 | $\begin{bmatrix} a & b \\ c & d\end{bmatrix}$ | [ a b c d ] \begin{bmatrix} a & b \\ c & d \\ \end{bmatrix} [acbd] |
\dots 、\cdots | 省略符号 | $\dots 、\cdots$ | … 、 ⋯ \dots 、\cdots …、⋯ |
\ne | 不等于 | $\ne$ | ≠ \ne = |
\: 、\ | 空格 | $a\:b\ c\ d$ | a b c d a\:b\ c\ d ab c d |
\quad | 空格x2 | $a \quad b$ | a b a \quad b ab |
\qquad | 空格x3 | $a \qquad b$ | a b a \qquad b ab |
\int | 积分 | $ \int_0^\infty$ | ∫ 0 ∞ \int_0^\infty ∫0∞ |