线性代数 latex

矩阵

矩阵

名称 in latex in latex package in latex suite
matrix $M=\begin{matrix}a & b \ c & d\end{matrix}$ matrix mat
parentheses matrix $M=\begin{pmatrix}a & b \ c & d\end{pmatrix}$ pmatrix pmat
brackets matrix $M=\begin{bmatrix}a & b \ c & d\end{bmatrix}$ bmatrix bmat
Braces matrix $M=\begin{Bmatrix}a & b \ c & d\end{Bmatrix}$ Bmatrix Bmat
vertical bar matrix $M=\begin{vmatrix}a & b \ c & d\end{vmatrix}$ vmatrix vmat

省略号

名称 in latex in latex package in latex suite
$\dots$ \dots
vertical dots $\vdots$ \vdots v…
diagonal dots $\ddots$ \ddots d…
latex suite fix

默认 latex suite 插件无 \vdots\ddots 快捷键,且和 \dot{} 冲突,所以可添加以下配置实现上表提及的快捷键

1
2
{trigger: "v...", replacement: "\\vdots", options: "mA"},
{trigger: "d...", replacement: "\\ddots", options: "mA"},