省略号
省略号用 \dots, \cdots, \vdots, \ddots 等命令表示。\dots 和 \cdots 的纵向位置不同,前者一般用于有下标的序列。
12 |
\[ x_1,x_2,\dots ,x_n\quad 1,2,\cdots ,n\quad \vdots\quad\ddots\] |
矩阵
amsmath 的 pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix 等环境可以在矩阵两边加上各种分隔符。
12345 |
\[\begin{pmatrix} a&b\\c&d \end{pmatrix}\quad \begin{bmatrix} a&b\\c&d \end{bmatrix}\quad \begin{Bmatrix} a&b\\c&d \end{Bmatrix}\quad \begin{vmatrix} a&b\\c&d \end{vmatrix}\quad \begin{Vmatrix} a&b\\c&d \end{Vmatrix}\] |
使用 smallmatrix 环境,可以生成行内公式的小矩阵。
1 |
Marry has a little matrix $ ( \begin{smallmatrix} a&b\\c&d \end{smallmatrix} ) $. |