Contents
- 1. Inserting Formulas
- Inline Formulas
- Display Formulas
- 2. Math Operators
- Multiplication and Division
- Fractions
- Square Roots
- Derivatives and Partial Derivatives
- Absolute Value
- Summation
- Product
- Integration
- Matrices
- 3. Letter Modifiers
- Subscripts and Superscripts
- Vectors
- Ellipsis
- Braces
- Overline and Underline
- 4. Special Letters
- Greek Alphabet
- Common Relation Symbols
- Special Symbols
- Special Fonts
- 5. Text Styling
- Text Color
- Text Highlight
1. Inserting Formulas
Inline Formulas
$f(x)=x$
Display Formulas
$f(x)=x$
2. Math Operators
Multiplication and Division
$a \times b$
$a \div b$
Fractions
$\frac{a}{b}$
Square Roots
$\sqrt{}$
$\sqrt[m]{n}$
Derivatives and Partial Derivatives
$\frac{\mathrm{d}y}{\mathrm{d}x}$ %求导
$\frac{\partial f}{\partial x}$ %偏导
$f^{'}(x)$ %求导撇
$f^{''}(x)$
$\dot{y}$ %求导点
$\ddot{y}$
$\dddot{y}$
$\nabla{f}$ %全微分
Absolute Value
$|x_n|$
$\lvert x_n\rvert$
Summation
$\sum_{i=1}^{n}$
Product
$\prod_{i=1}^{n}$
Integration
$\int_{i=1}^{n}$
Matrices
$$
P=\begin{bmatrix}{}
p_{1,1} & p_{1,2} & \cdots & p_{1,|S|}\\
p_{2,1} & p_{2,2} & \cdots & p_{2,|S|}\\
\cdots & \cdots & \cdots & \cdots\\
p_{|S|,1} & p_{|S|,2} & \cdots & p_{|S|,|S|}
\end{bmatrix}
$$
3. Letter Modifiers
Subscripts and Superscripts
^{} %上标$x^{2}$
_{} %下标$x_{1}$
Vectors
$\vec{a}$
$\overrightarrow{AB}$
Ellipsis
$\cdots$ %省略号...$1,2,3,\cdots,n$
Braces
$\underbrace{n}_{m}$ % 大括号 \underbrace{1,2,3,\cdots,n}_{m}
Overline and Underline
$\overline{m+n}$ %m+n公式上面加上横杠
$\underline{m+n}$%m+n公式下面加上横杠
4. Special Letters
Greek Alphabet
| Lowercase Greek | Code | Uppercase Greek | Code |
|---|---|---|---|
| \alpha | |||
| \beta | |||
| \gamma | \Gamma | ||
| \delta | \Delta | ||
| \epsilon | |||
| \varepsilon | |||
| \zeta | |||
| \eta | |||
| \theta | \Theta | ||
| \vartheta | |||
| \iota | |||
| \kappa | |||
| \lambda | \Lambda | ||
| \mu | |||
| \nu | |||
| \xi | \Xi | ||
| \pi | \Pi | ||
| \varpi | |||
| \rho | |||
| \varrho | |||
| \sigma | \Sigma | ||
| \varsigma | |||
| \tau | |||
| \upsilon | |||
| \phi | \Phi | ||
| \varphi | |||
| \chi | |||
| \psi | \Psi | ||
| \omega | \Omega |
Common Relation Symbols
All relation symbols can be prefixed with \not to denote negation.
| Symbol | Code |
|---|---|
| \neq or \not= | |
| \leq or \le | |
| \geq or \ge | |
| \ll | |
| \gg | |
| \subset | |
| \supset | |
| \subseteq | |
| \supseteq | |
| \in | |
| \ni | |
| \bigcup | |
| \bigcap | |
| \propto | |
| \infty |
Special Symbols
| Symbol | Code |
|---|---|
| \leftarrow | |
| \Leftarrow | |
| \rightarrow | |
| \Rightarrow | |
| \leftrightarrow | |
| \Leftrightarrow | |
| \leftharpoonup | |
| \leftharpoondown | |
| \rightharpoonup | |
| \rightharpoondown | |
| \leftrightharpoons |
Special Fonts
| Font Style | Code |
|---|---|
| \mathrm{ABCdef} | |
| \mathit{ABCdef} | |
| \mathnormal{ABCdef} | |
| \mathcal{ABC} | |
| \mathscr{ABC} | |
| \mathfrak{ABCdef} | |
| \mathbb{ABC} |
5. Text Styling
Text Color
$\color{blue}{文字}$ %文字颜色
$\color[rgb]{0.9,0.1,0.2}{文字}$%rgb三个参数取值[0,1]
\color[rgb]{0.9,0.1,0.2}{文字}
Text Highlight
$\colorbox{green}{文字}$ %文字颜色
$\colorbox{yellow}{\color{red}{文字}}$%复合用法
Comments