Markdown语法

数学公式

矩阵相关

  1. 不带括号的普通矩阵

    1
    2
    3
    4
    5
    6
    \begin{matrix}
    a & b & c & d & e \\
    f & g & h & i & j \\
    k & l & m & n & o \\
    p & q & r & s & t
    \end{matrix}

    abcdefghijklmnopqrst\begin{matrix} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{matrix}

  2. 带中括号的矩阵

    1
    2
    3
    4
    5
    6
    7
    8
    \left[
    \begin{matrix}
    a & b & c & d & e \\
    f & g & h & i & j \\
    k & l & m & n & o \\
    p & q & r & s & t
    \end{matrix}
    \right]

    [abcdefghijklmnopqrst]\left[ \begin{matrix} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{matrix} \right]

  3. 带大括号的矩阵

    1
    2
    3
    4
    5
    6
    7
    8
    \left\{
    \begin{matrix}
    a & b & c & d & e \\
    f & g & h & i & j \\
    k & l & m & n & o \\
    p & q & r & s & t
    \end{matrix}
    \right\}

    {abcdefghijklmnopqrst}\left\{ \begin{matrix} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{matrix} \right\}

  4. 矩阵前加参数

    1
    2
    3
    4
    5
    6
    7
    8
    9
    A=
    \left\{
    \begin{matrix}
    a & b & c & d & e \\
    f & g & h & i & j \\
    k & l & m & n & o \\
    p & q & r & s & t
    \end{matrix}
    \right\}

    A={abcdefghijklmnopqrst}A= \left\{ \begin{matrix} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{matrix} \right\}

  5. 矩阵中间有省略号

    1
    2
    3
    4
    5
    6
    7
    8
    9
    A=
    \left\{
    \begin{matrix}
    a & b & \cdots & e \\
    f & g & \cdots & j \\
    \vdots & \vdots & \ddots & \vdots \\
    p & q & \cdots & t
    \end{matrix}
    \right\}

    A={abefgjpqt}A= \left\{ \begin{matrix} a & b & \cdots & e \\ f & g & \cdots & j \\ \vdots & \vdots & \ddots & \vdots \\ p & q & \cdots & t \end{matrix} \right\}

  6. 矩阵中间加横线

    1
    2
    3
    4
    5
    6
    7
    8
    9
    A=
    \left\{
    \begin{array}{cccc|c}
    a & b & c & d & e \\
    f & g & h & i & j \\
    k & l & m & n & o \\
    p & q & r & s & t
    \end{array}
    \right\}

    A={abcdefghijklmnopqrst}A= \left\{ \begin{array}{cccc|c} a & b & c & d & e \\ f & g & h & i & j \\ k & l & m & n & o \\ p & q & r & s & t \end{array} \right\}

字体

写法 展示
ABCDEFGHIJKLMNOPQRSTUVWXYZ ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathtt{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathsf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathscr{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ} ABCDEFGHIJKLMNOPQRSTUVWXYZ\mathfrak{ABCDEFGHIJKLMNOPQRSTUVWXYZ}

括号

写法 展示
\left( \frac{a}{b} \right) (ab)\left( \frac{a}{b} \right)
\left[ \frac{a}{b} \right] [ab]\left[ \frac{a}{b} \right]
\left \langle \frac{a}{b} \right \rlangle ab\left \langle \frac{a}{b} \right \rangle
\left| \frac{a}{b} \right| $\left
\left | \frac{a}{b} \right | ab\left |\frac{a}{b} \right |
\left \lfoor \frac{a}{b} \right \rfloor ab\left \lfloor \frac{a}{b} \right \rfloor
\left \lceil \frac{a}{b} \right \rceil ab\left \lceil \frac{a}{b} \right \rceil