zoukankan      html  css  js  c++  java
  • LaTeX 公式手册(按年级分类)

    快速入门

    本文参考 Cmd Markdown 公式指导手册

    输入公式

    行内公式用 $数学公式$,行间公式用

    $$
    数学公式
    $$
    

    行内公式放在文中与其它文字混编,行间公式单独成行。例子:

    行内公式 (x=1) 与文字混排

    行间公式

    [x=1 ]

    独立成行

    行内公式 $x=1$ 与文字混排
    
    行间公式
    $$
    x=1
    $$
    独立成行
    

    若需要给公式编号,参见 大括号和行标的使用

    上下标

    ^ 表示上标,_ 表示下标。如果上下标的内容多于一个字符,需要用 {} 将这些内容括成一个整体。上下标可以嵌套,也可以同时使用,上下标的先后次序并不重要,二者互不影响。

    例子:(x^{y^z}=(1+{ m e}^x)^{-2xy^w})

    有时需要在符号的左上,左下角加上角标,此时可以在要加角标字符前面使用空的分组,给空分组加角标:({}_m^n H) {}_m^n H

    撇号

    数学公式中的 (') 号(一个英文单引号')就是一种特殊的上标,撇号可以与下标混用,也可以连续使用(普通的上标不能连续使用),但不能与上标直接混用。例子:

    (a = a') a = a'

    (b_0' = b_0'') b_0' = b_0''

    ({c'}^2 = (c')^2) {c'}^2 = (c')^2

    ({color{Red}{ m Bad}}: c'^2) c'^2

    角度

    MathJax 没有直接表示角度的符号,可以用符号 (circ)circ)的上标表示。例子:(angle A = 90^circ) angle A = 90^circ

    <!--

    以下未整理


    数学算子中上下标的位置

    在显示公式中,多数数学算子的上下标,位置是在正上或正下方

    (max_n f(n) = sum_{i=0}^n A_i) max_n f(n) = sum_{i=0}^n A_i

    但对于积分号等个别算子,显示公式的上下标也在右上左下角:

    (int_0^1 f(t) dt = iint_D g(x,y) dx dy) int_0^1 f(t) dt = iint_D g(x,y) dx dy

    其实也可以手动改变上下标的位置. 在上下标前用limits命令会使上下标在正上正下方,而使用 olimits则使上下标在角上

    (iiintlimits_D df = max olimits_D g) iiintlimits_D df = max olimits_D g

    (sum olimits_{i=0}^n A_i = sum_{i=0}^n A_i) sum olimits_{i=0}^n A_i = sum_{i=0}^n A_i

    overser/underset

    如果我们想要给任意符号的上下方添加标记,那么我们可以使用 oversetunderset 命令

    (overset{*}{X}) overset{*}{X}

    (underset{*}{X}) underset{*}{X}

    (overset{*}{underset{@}{X}}) overset{*}{underset{@}{X}}

    1. 上下画线与花括号,overline 与overunder命令可以用来在公式的上方和下方划横线

    (overline{a+b} = overline a + overline b) overline{a+b} = overline a + overline b

    (underline a = (a_0,a_1,a_2,dots)) underline a = (a_0,a_1,a_2,dots)

    这种结构可以任意嵌套或与其他数学结构组合

    (overline{underline{underline a} + overline{b}^2} - c^{underline n}) overline{underline{underline a} + overline{b}^2} - c^{underline n}

    1. 与上一条类似,如果你想要在公式上加箭头overleftarrow,overrightarrow,overleftrightarrow,underleftarrow,underrightarrow,underleftrightarrow,此外,还可以使用overbrace 和underbrace带上花括号,并可以使用上下角标在花括号上作标注

    (overleftrightarrow{a+b}) overleftrightarrow{a+b}

    (( overbrace{a_0,a_1,dots,a_n} ^{ ext{共 n + 1 项}} ) = ( underbrace{0,0,dots,0}_{n},1 )) ( overbrace{a_0,a_1,dots,a_n} ^ { ext{共 n + 1 项}} ) = ( underbrace{0,0,dots,0}_{n},1 )

    1. 分式. 在Latex中,分式用frac<分子><分母>得到

    (frac 12 + frac 1a = frac{2+a}{2a}) frac 12 + frac 1a = frac{2+a}{2a}

    有时需要指定较大或者较小的分式,可以使用dfrac和 frac

    ( frac 12 f(x) = frac{1}{dfrac 1a + dfrac 1b + c}) frac 12 f(x) = frac{1}{dfrac 1a + dfrac 1b + c}

    连分式是一种特殊的分式,cfrac专用于输入连分式。

    (cfrac{1}{1 + cfrac{2}{1 + cfrac{3}{1+x}}} = cfrac[r]{1}{1 + cfrac{2}{1 + cfrac[l]{3}{1+x}}})

    cfrac{1}{1 + cfrac{2}{1 + cfrac{3}{1+x}}} = cfrac[r]{1}{1 + cfrac{2}{1 + cfrac[l]{3}{1+x}}}

    1. 二项式系数. inom 用于输入二项式系数,其用法与frac类似

    ((a + b) ^ 2 = inom 20 a ^ 2 + inom 21 ab + inom 22 b ^ 2) (a + b) ^ 2 = inom 20 a ^ 2 + inom 21 ab + inom 22 b ^ 2

    1. 根式. 在Latex中用 sqrt得到,同时可以带一个参数,表示开方的次数

    (sqrt 4 = sqrt[3]{8} = 2) sqrt 4 = sqrt[3]{8} = 2

    1. 矩阵. 在Latex中,矩阵是用 matrixpmatrix 排版的,在矩阵环境中,不同的列用符号 & 分隔,行用分隔,矩阵每列中元素居中对齐

    (A = egin{pmatrix} a_{11} & a_{12} & a_{13} \ 0 & a_{22} & a_{23} \ 0 & 0 & a_{33} end{pmatrix}) A = egin{pmatrix} a_{11} & a_{12} & a_{13} \ 0 & a_{22} & a_{23} \ 0 & 0 & a_{33} end{pmatrix}

    在矩阵中经常使用各种省略号,即dots,vdots,ddots等

    (A = egin{pmatrix} a_{11} & dots & a_{1n} \ & ddots & vdots \ 0 & & a_{nn} end{pmatrix}_{n imes n}) A = egin{pmatrix} a_{11} & dots & a_{1n} \ & ddots & vdots \ 0 & & a_{nn} end{pmatrix}_{n imes n}

    还有跨多行的省略号 hdotsfor{<列数>},反向斜省略号iddots,方便排版一些矩阵

    矩阵可以嵌套使用,比如分块矩阵

    (egin{pmatrix} egin{matrix} 1 & 0 \ 0 & 1 end{matrix} & ext{large 0} \ ext {lagre 0} & egin{matrix} 1 & 0 \ 0 & -1 end{matrix} end{pmatrix}) egin{pmatrix} egin{matrix} 1 & 0 \ 0 & 1 end{matrix} & ext{large 0} \ ext {large 0} & egin{matrix} 1 & 0 \ 0 & -1 end{matrix} end{pmatrix} 可能掘金不支持字体大小的渲染

    1. 在上下标特别是求和式的上下限中,有时需要好几行的内容,此时可以使用substack命令排版

    (sum_{substack{0<i<n \ 0<j<i}} A_{ij}) sum_{substack{0<i<n \ 0<j<i}} A_{ij}

    数学公式中经常使用符号大全

    1. 小写希腊字母

    2. 大写希腊字母

    3. 数学普通符号

    4. 可同时用在文本和数学模式中的符号

    5. 数学算子

    6. 不带上下限的数学算子名

    7. 带上下限的数学算子名

    8. Latex中的二元运算符

    9. 二元关系符及其否定形式

    10. 箭头符号

    11. 括号定界符

    12. 非括号定界符

    13. 手工调整定界符大小

    14. 数学标点符号

    15. 数学省略号-->

    小学

    四则运算

    加减乘除 (+- imesdiv) + - imes div
    点乘 (cdot) cdot

    小数

    无限小数 (3.1415926 cdots) 3.1415926 cdots

    循环节
    (1.dot{3}) 1.dot{3}或者1.dot 3
    (1.dot{1}2dot{3}) 1.dot{1}2dot{3}或者1.dot 12dot 3

    分数

    (frac13) frac{1}{3}frac 131 over 3

    (frac{21}{5}) frac{21}{5}21 over 5

    比大小

    大于号、小于号、等号 (> < =) > < =

    大于等于 (ge) gegeq
         (geqslant) geqslant

    小于等于 (le) leleq
         (leqslant) leqslant

    约等号 (approx) approx

    括号

    【小型的】小括号、中括号、大括号 (()[]{}) ()[]{}

    【自动放大的】小括号、中括号、大括号 (left( ight)left[ ight]left{ ight}) left( ight) left[ ight] left{ ight}

    两种括号对比:

    ((dfrac 13)) (dfrac 13) (Leftrightarrow left( dfrac 13 ight)) left( dfrac 13 ight)

    括号内有分数时,应该使用第二种括号

    圆周率

    (pi) pi

    更多希腊字母参见这里

    初中

    注意:这里不含小学已经学过的符号。

    运算符号/函数符号

    • 绝对值 (leftvert s ightvert) left| s ight|lvert s lvertleftvert s ightvert
    • 乘方/指数/上标
      (a^n) a^na^{n}(a^{10}) a^{10}
    • 方根/根号
      • 平方根 (sqrt{x},sqrt[2]{x}) sqrt{x},sqrt[2]{x}
      • 立方根/n次方根 (sqrt[3]{x+y},sqrt[n]{x}) sqrt[3]{x+y},sqrt[n]{x}
      • 根号 (surd) surd
    • 三角函数
      • 正弦 (sin x) sin x
      • 余弦 (cos left(x+frac pi 2 ight)) cos left( x+frac{pi}{2} ight)
      • 正切 ( an x) an x

    一元二次方程

    • 判别式 (Delta = b^2-4ac) Delta = b^2-4ac

    方程组/不等式组

    [egin{cases}3x+5y+z\7x-2y+4z\-6x+3y+2zend{cases} ]

    egin{cases}
      3x + 5y +  z \
      7x - 2y + 4z \
      -6x + 3y + 2z
    end{cases}
    

    [left{egin{aligned} 3x + 5y + z \ 7x - 2y + 4z \ -6x + 3y + 2z end{aligned} ight. ]

    left{egin{aligned}
      3x + 5y +  z \
      7x - 2y + 4z \
      -6x + 3y + 2z
    end{aligned}
    ight.
    

    几何

    • 因为、所以 (ecause) ecause ( herefore) herefore
    • 角的符号 (angle A) angle A
    • 平行符号
      • 自带的是竖直样式 (parallel) parallel
      • 用斜杆+紧贴造一个倾斜的平行符号 (/!/) /!/
      • 更繁琐的 (mathrel{/mskip-2.5mu/}) mathrel{/mskip-2.5mu/}
    • 垂直 (perp) perp
    • 平行且相等 LaTeX中没有这个符号
    • 三角形符号 ( riangle) riangle(注意和一元二次方程的判别式 (Delta) 不同)
    • 平行四边形的符号 LaTeX中没有这个符号,只能用Unicode字符
    • 全等
      • 自带的与国内教科书方向相反 (cong) cong
      • 想要 (≌) 只能用Unicode字符
    • 相似
      • 国内教科书写法 (acksim) acksim
      • 国外常见写法 (sim) sim
    • 圆的符号 (odot,igodot) odot,igodot
    • 弧的符号 MathJax里没有现成的符号,只能造一个 (overset {frown}{AB}) overset{frown}{AB}

    统计

    • 平均数 (ar{x}) ar{x}

    希腊字母

    常用于表示角的字母:阿尔法,贝塔,伽马 (alpha eta gamma) alpha eta gamma
    一元二次方程的判别式 (Delta) Delta

    密度 ( ho) ho
    电阻单位 欧姆 (Omega) Omega
    效率/机械效率/热效率 (eta) eta
    电磁波 (c=lambda u):波长 (lambda) lambda;频率 ( u) u

    更多希腊字母参见这里

    高中

    注意:这里不含小学、初中已经学过的符号。

    分数/分式

    通常使用 frac {分子} {分母} 命令产生一个分数,分数可嵌套。
    便捷情况可直接输入 frac ab 来快速生成一个 (frac ab)
    如果分式很复杂,亦可使用 分子 over 分母 命令,此时分数仅有一层。

    分数 ({dfrac {2}{4}}=0.5) frac{2}{4}=0.5

    小型分数 ({ frac {2}{4}}=0.5) frac{2}{4} = 0.5

    连分式(大型嵌套分式) ({cfrac {2}{c+{cfrac {2}{d+{cfrac {2}{4}}}}}}=a) cfrac{2}{c + cfrac{2}{d + cfrac{2}{4}}} = a

    大型不嵌套分式 ({dfrac {2}{4}}=0.5qquad {dfrac {2}{c+{dfrac {2}{d+{dfrac {2}{4}}}}}}=a) dfrac{2}{4} = 0.5 qquad dfrac{2}{c + dfrac{2}{d + dfrac{2}{4}}} = a

    在指数、极限和积分中尽量不要使用 frac 符号:它会使整段函数看起来很怪,而且可能产生歧义。也正是因此它在专业数学排版中几乎从不出现。
    横着写这些分式,中间使用斜线间隔 / (用斜线代替分数线)。

    • 例子:
    egin{array}{cc}
    mathrm{Bad} & mathrm{Better} \
    hline \
    e^{ifrac{pi}2} quad e^{frac{ipi}2}& e^{ipi/2} \
    int_{-fracpi2}^fracpi2 sin x\,dx & int_{-pi/2}^{pi/2}sin x\,dx \
    end{array}
    
    • 显示:

    [egin{array}{cc} mathrm{Bad} & mathrm{Better} \ hline \ e^{ifrac{pi}2} quad e^{frac{ipi}2}& e^{ipi/2} \ int_{-fracpi2}^fracpi2 sin x\,dx & int_{-pi/2}^{pi/2}sin x\,dx \ end{array} ]

    集合

    • 特殊的集合

    空集 (varnothing) varnothing

    黑板报体(大学普遍使用)

    正整数集 (mathbb{N_+}/mathbb{N^*}/mathbb{Z_+}/mathbb{Z^*}) mathbb{N^+}/mathbb{N^*}/mathbb{Z^+}/mathbb{Z^*}
    自然数集 (mathbb{N}) mathbb{N}
    整数集 (mathbb{Z}) mathbb{Z}
    有理数集 (mathbb{Q}) mathbb{Q}
    实数集 (mathbb{R}) mathbb{R}
    复数集 (mathbb{C}) mathbb{C}

    粗体(高中常用)

    正整数集 (mathbf{N_+}/mathbf{N^*}/mathbf{Z_+}/mathbf{Z^*}) mathbf{N^+}/mathbf{N^*}/mathbf{Z^+}/mathbf{Z^*}
    自然数集 (mathbf{N}) mathbf{N}
    整数集 (mathbf{Z}) mathbf{Z}
    有理数集 (mathbf{Q}) mathbf{Q}
    实数集 (mathbf{R}) mathbf{R}
    复数集 (mathbf{C}) mathbf{C}

    • 元素与集合的关系

    属于与不属于 (in , otin , ot in , i , ot i) in, otin, otin, i, ot i

    • 集合与集合的关系

    包含于/子集 (subseteq) subseteq
    真包含于/真子集 (subsetneqq) subsetneqq
    不包含于/不是子集 ( subseteq) subseteq

    立体几何中常把 (subsetneqq) 简写作 (subset) subset

    • 集合运算

    交集,并集 (cap,cup) cap,cup
    补集 (complement_U A) complement_U A

    以上为国内教科书写法,完整符号表看[这里]({{< ref "#set" >}})

    基本初等函数

    • 对数函数 (log x,ln x,lg x) log x,ln x,lg x

    • 三角函数 (sin x,cos x, an x) sin x,cos x, an x

      全部三角函数参见这里

    向量

    • 向量符号:单个字母用vec,两个字母用overrightarrow

      (vec{a}, overrightarrow{AB}) vec{a}, overrightarrow{AB}

    逻辑

    • 或、与、非 (lor, land, lnot) lor, land, lnot
    • 全称量词(对于所有) (forall) forall
    • 存在量词 (exists) exists
    • 充分条件/可推出 (implies) implies
    • 必要条件 (impliedby) impliedby
    • 充分必要条件/充要条件/等价于/当且仅当(if and only if(iff) iff

    国内常见版本(不推荐,箭头两边无空格):

    (Rightarrow, Leftarrow, Leftrightarrow) Rightarrow, Leftarrow, Leftrightarrow

    统计与概率

    • 最小二乘法/线性回归方程

    参数的估计值(俗称 a 尖 b 尖)(hat{a},hat{b}) hat{a},hat{b}

    微积分基础

    自然对数的底数 e 要用正体 (mathrm{e}) mathrm{e}

    • 无穷大/无限 (infty) infty

    • 极限 lim_{x o 0} frac{sin x}{x}=1

      行内公式 (lim_{x o 0} frac{sin x}{x}=1)

      行间公式

      [lim_{x o 0} frac{sin x}{x}=1 ]

    • 导数/导函数 (f'(x)) f'(x)

    • 积分

      • 版本一 int_0^1 x^2\,dx(d 之前加空格 \,

        行内 (int_0^1 x^2\,dx)

        行间

        [int_0^1 x^2\,dx ]

      • 版本二

        int_0^1 x^2\,mathrm{d}x(d 之前加空格,d 用正体)

        行内 (int_0^1 x^2\,mathrm{d}x)

        行间

        [int_0^1 x^2\,mathrm{d}x ]

    复数

    虚数单位 i 要用正体 (mathrm{i}) mathrm{i}

    计数原理

    表示排列数组合数的 A 和 C 同样要用正体

    • 排列 (mathrm{A}_3^2) mathrm{A}_3^2
    • 组合 (mathrm{C}_3^2) mathrm{C}_3^2

    物理

    • 正比于 (propto) propto

    希腊字母

    正弦型函数 (y=Asin(omega x+varphi)) y=Asin(omega x+varphi)

    圆频率或角频率或角速度 (omega) omega

    初相位或初相角/辅助角公式常用字母 (varphi) varphi

    摩擦因数/动摩擦因数 (mu) mu

    平行板电容器的电容 (C=frac{varepsilon S}{4pi k d})

    介电常数 (varepsilon) varepsilon

    更多希腊字母参见这里

    完整文档

    !待整理

    参考维基百科的数学公式教程
    参考Cmd Markdown 公式指导手册

    本文为 MathJax 在 Markdown 环境下的语法指引。

    如何插入公式

    (LaTeX) 的数学公式有两种:行中公式和独立公式(行间公式)。行中公式放在文中与其它文字混编,独立公式单独成行。

    行中公式可以用如下方法表示:

    $ 数学公式 $

    独立公式可以用如下方法表示:

    $$ 数学公式 $$

    函数、符号及特殊字符

    声调 / 变音符号

    dot{a}, ddot{a}, acute{a}, grave{a}

    ({displaystyle {dot {a}},{ddot {a}},{acute {a}},{grave {a}}})

    check{a}, reve{a}, ilde{a}, ar{a}

    ({displaystyle {check {a}},{reve {a}},{ ilde {a}},{ar {a}}})

    hat{a}, widehat{a}, vec{a}

    ({displaystyle {hat {a}},{widehat {a}},{vec {a}}})

    标准函数

    指数

    exp_a b = a^b, exp b = mathrm{e}^b, 10^m

    ({displaystyle exp _{a}b=a^{b},exp b=mathrm{e}^{b},10^{m}})

    对数

    ln c, lg d, log mathrm{e}, log_{10} f

    ({displaystyle ln c,lg d,log e,log _{10}f})

    三角函数 {id="tri"}

    sin a, cos b, an c, cot d, sec e, csc f

    ({displaystyle sin a,cos b, an c,cot d,sec e,csc f})

    arcsin a, arccos b, arctan c

    ({displaystyle arcsin a,arccos b,arctan c})

    arccot d, arcsec e, arccsc f

    ({displaystyle operatorname {arccot} d,operatorname {arcsec} e,operatorname {arccsc} f})

    sinh a, cosh b, anh c, coth d

    ({displaystyle sinh a,cosh b, anh c,coth d})

    operatorname{sh}k, operatorname{ch}l, operatorname{th}m, operatorname{coth}n

    ({displaystyle operatorname {sh} k,operatorname {ch} l,operatorname {th} m,operatorname {coth} n})

    operatorname{argsh}o, operatorname{argch}p, operatorname{argth}q

    ({displaystyle operatorname {argsh} o,operatorname {argch} p,operatorname {argth} q})

    符号函数,绝对值

    sgn r, leftvert s ightvertlvert s vertleft| s ight|

    ({displaystyle operatorname {sgn} r,leftvert s ightvert })

    最大值,最小值

    min(x,y), max(x,y)

    ({displaystyle min(x,y),max(x,y)})

    界限,极限

    min x, max y, inf s, sup t

    ({displaystyle min x,max y,inf s,sup t})

    lim u, liminf v, limsup w

    ({displaystyle lim u,liminf v,limsup w})

    lim_{x o infty} frac{1}{n(n+1)}

    ({displaystyle lim_{x o infty} frac{1}{n(n+1)}})

    dim p, deg q, det m, kerphi

    ({displaystyle dim p,deg q,det m,ker phi})

    投射

    Pr j, hom l, lVert z Vert, arg z

    ({displaystyle Pr j,hom l,lVert z Vert ,arg z})

    微分及导数

    dt, mathrm{d}t, partial t, ablapsi

    ({displaystyle dt,mathrm {d} t,partial t, abla psi })

    dy/dx, mathrm{d}y/mathrm{d}x, frac{dy}{dx}, frac{mathrm{d}y}{mathrm{d}x}, frac{partial^2}{partial x_1partial x_2}y

    ({displaystyle dy/dx,mathrm {d} y/mathrm {d} x,{frac {dy}{dx}},{frac {mathrm {d} y}{mathrm {d} x}},{frac {partial ^{2}}{partial x_{1}partial x_{2}}}y})

    prime, ackprime, f^prime, f', f'', f^{(3)}, dot y, ddot y

    ({displaystyle prime ,ackprime ,f^{prime},f',f'',f^{(3)}!,{dot {y}},{ddot {y}}})

    类字母符号及常数

    infty, aleph, complement, ackepsilon, eth, Finv, hbar

    ({displaystyle infty ,aleph ,complement ,ackepsilon ,eth ,Finv ,hbar})

    Im, imath, jmath, Bbbk, ell, mho, wp, Re, circledS

    ({displaystyle Im ,imath ,jmath ,Bbbk ,ell ,mho ,wp ,Re ,circledS })

    模运算

    s_k equiv 0 pmod{m}

    ({displaystyle s_{k}equiv 0{pmod {m}}})

    a mod b

    ({displaystyle a mod b})

    gcd(m, n), operatorname{lcm}(m, n)

    ({displaystyle gcd(m,n),operatorname {lcm} (m,n)})

    mid, mid, shortmid, shortmid

    ({displaystyle mid , mid ,shortmid , shortmid})

    根号

    surd, sqrt{2}, sqrt[n]{}, sqrt[3]{frac{x^3+y^3}{2}}

    ({displaystyle surd ,{sqrt {2}},{sqrt[{n}]{}},{sqrt[{3}]{frac {x^{3}+y^{3}}{2}}}})

    运算符

    +, -, pm, mp, dotplus

    ({displaystyle +,-,pm ,mp ,dotplus})

    imes, div, divideontimes, /, ackslash

    ({displaystyle imes ,div ,divideontimes ,/,ackslash})

    cdot, * ast, star, circ, ullet

    ({displaystyle cdot ,*ast ,star ,circ ,ullet})

    oxplus, oxminus, oxtimes, oxdot

    ({displaystyle oxplus ,oxminus ,oxtimes ,oxdot})

    oplus, ominus, otimes, oslash, odot

    ({displaystyle oplus ,ominus ,otimes ,oslash ,odot})

    circleddash, circledcirc, circledast

    ({displaystyle circleddash ,circledcirc ,circledast})

    igoplus, igotimes, igodot

    ({displaystyle igoplus ,igotimes ,igodot})

    集合 {id="set"}

    { }, O empty emptyset, varnothing

    ({displaystyle {},emptyset emptyset emptyset ,varnothing })

    in, otin otin, i, ot i

    ({displaystyle in , otin ot in , i , ot i})

    cap, Cap, sqcap, igcap

    ({displaystyle cap ,Cap ,sqcap ,igcap})

    cup, Cup, sqcup, igcup, igsqcup, uplus, iguplus

    ({displaystyle cup ,Cup ,sqcup ,igcup ,igsqcup ,uplus ,iguplus})

    setminus, smallsetminus, imes

    ({displaystyle setminus ,smallsetminus , imes})

    subset, Subset, sqsubset

    ({displaystyle subset ,Subset ,sqsubset})

    supset, Supset, sqsupset

    ({displaystyle supset ,Supset ,sqsupset})

    subseteq, subseteq, subsetneq, varsubsetneq, sqsubseteq

    ({displaystyle subseteq , subseteq ,subsetneq ,varsubsetneq ,sqsubseteq})

    supseteq, supseteq, supsetneq, varsupsetneq, sqsupseteq

    ({displaystyle supseteq , supseteq ,supsetneq ,varsupsetneq ,sqsupseteq})

    subseteqq, subseteqq, subsetneqq, varsubsetneqq

    ({displaystyle subseteqq , subseteqq ,subsetneqq ,varsubsetneqq})

    supseteqq, supseteqq, supsetneqq, varsupsetneqq

    ({displaystyle supseteqq , supseteqq ,supsetneqq ,varsupsetneqq})

    关系符号

    =, e, eq, equiv, otequiv

    ({displaystyle =, eq , eq ,equiv , ot equiv})

    doteq, doteqdot, overset{underset{mathrm{def}}{}}{=}, :=

    ({displaystyle doteq ,doteqdot ,{overset {underset {mathrm {def} }{}}{=}},:=})

    sim, sim, acksim, hicksim, simeq, acksimeq, eqsim, cong, cong

    ({displaystyle sim , sim ,acksim , hicksim ,simeq ,acksimeq ,eqsim ,cong , cong})

    approx, hickapprox, approxeq, asymp, propto, varpropto

    ({displaystyle approx , hickapprox ,approxeq ,asymp ,propto ,varpropto})

    <, less, ll, otll, lll, otlll, lessdot

    ({displaystyle <, less ,ll , ot ll ,lll , ot lll ,lessdot})

    >, gtr, gg, otgg, ggg, otggg, gtrdot

    ({displaystyle>, gtr ,gg , ot gg ,ggg , ot ggg ,gtrdot })

    le, leq, lneq, leqq, leq, leqq, lneqq, lvertneqq

    ({displaystyle leq ,leq ,lneq ,leqq , leq , leqq ,lneqq ,lvertneqq})

    ge, geq, gneq, geqq, geq, geqq, gneqq, gvertneqq

    ({displaystyle geq ,geq ,gneq ,geqq , geq , geqq ,gneqq ,gvertneqq})

    lessgtr, lesseqgtr, lesseqqgtr, gtrless, gtreqless, gtreqqless

    ({displaystyle lessgtr ,lesseqgtr ,lesseqqgtr ,gtrless ,gtreqless ,gtreqqless})

    leqslant, leqslant, eqslantless

    ({displaystyle leqslant , leqslant ,eqslantless})

    geqslant, geqslant, eqslantgtr

    ({displaystyle geqslant , geqslant ,eqslantgtr})

    lesssim, lnsim, lessapprox, lnapprox

    ({displaystyle lesssim ,lnsim ,lessapprox ,lnapprox})

    gtrsim, gnsim, gtrapprox, gnapprox

    ({displaystyle gtrsim ,gnsim ,gtrapprox ,gnapprox})

    prec, prec, preceq, preceq, precneqq

    ({displaystyle prec , prec ,preceq , preceq ,precneqq})

    succ, succ, succeq, succeq, succneqq

    ({displaystyle succ , succ ,succeq , succeq ,succneqq})

    preccurlyeq, curlyeqprec

    ({displaystyle preccurlyeq ,curlyeqprec})

    succcurlyeq, curlyeqsucc

    ({displaystyle succcurlyeq ,curlyeqsucc})

    precsim, precnsim, precapprox, precnapprox

    ({displaystyle precsim ,precnsim ,precapprox ,precnapprox})

    succsim, succnsim, succapprox, succnapprox

    ({displaystyle succsim ,succnsim ,succapprox ,succnapprox})

    几何符号

    parallel, parallel, shortparallel, shortparallel

    ({displaystyle parallel , parallel ,shortparallel , shortparallel})

    perp, angle, sphericalangle, measuredangle, 45^circ

    ({displaystyle perp ,angle ,sphericalangle ,measuredangle ,45^{circ}})

    Box, lacksquare, diamond, Diamond lozenge, lacklozenge, igstar

    ({displaystyle Box ,lacksquare ,diamond ,Diamond lozenge ,lacklozenge ,igstar})

    igcirc, riangle, igtriangleup, igtriangledown

    ({displaystyle igcirc , riangle ,igtriangleup ,igtriangledown})

    vartriangle, riangledown

    ({displaystyle vartriangle , riangledown})

    lacktriangle, lacktriangledown, lacktriangleleft, lacktriangleright

    ({displaystyle lacktriangle ,lacktriangledown ,lacktriangleleft ,lacktriangleright})

    逻辑符号

    forall, exists, exists

    ({displaystyle forall ,exists , exists})

    herefore, ecause, And

    ({displaystyle herefore ,ecause ,And})

    or lor vee, curlyvee, igvee

    ({displaystyle lor ,lor ,vee ,curlyvee ,igvee})

    and land wedge, curlywedge, igwedge

    ({displaystyle land ,land ,wedge ,curlywedge ,igwedge})

    ar{q}, ar{abc}, overline{q}, overline{abc},

    lnot eg, otoperatorname{R}, ot, op

    ({displaystyle {ar {q}},{ar {abc}},{overline {q}},{overline {abc}},})

    ({displaystyle lnot eg , ot operatorname {R} ,ot , op })

    vdash dashv, vDash, Vdash, models

    ({displaystyle vdash ,dashv ,vDash ,Vdash ,models})

    Vvdash vdash Vdash vDash VDash

    ({displaystyle Vvdash , vdash , Vdash , vDash , VDash})

    ulcorner urcorner llcorner lrcorner

    ({displaystyle ulcorner urcorner llcorner lrcorner})

    箭头

    Rrightarrow, Lleftarrow

    ({displaystyle Rrightarrow ,Lleftarrow})

    Rightarrow, Rightarrow, Longrightarrow implies

    ({displaystyle Rightarrow , Rightarrow ,Longrightarrow ,implies})

    Leftarrow, Leftarrow, Longleftarrow

    ({displaystyle Leftarrow , Leftarrow ,Longleftarrow})

    Leftrightarrow, Leftrightarrow, Longleftrightarrow iff

    ({displaystyle Leftrightarrow , Leftrightarrow ,Longleftrightarrow iff})

    Uparrow, Downarrow, Updownarrow

    ({displaystyle Uparrow ,Downarrow ,Updownarrow})

    ightarrow o, rightarrow, longrightarrow

    ({displaystyle ightarrow o , rightarrow ,longrightarrow})

    leftarrow gets, leftarrow, longleftarrow

    ({displaystyle leftarrow gets , leftarrow ,longleftarrow})

    leftrightarrow, leftrightarrow, longleftrightarrow

    ({displaystyle leftrightarrow , leftrightarrow ,longleftrightarrow})

    uparrow, downarrow, updownarrow

    ({displaystyle uparrow ,downarrow ,updownarrow})

    earrow, swarrow, warrow, searrow

    ({displaystyle earrow ,swarrow , warrow ,searrow})

    mapsto, longmapsto

    ({displaystyle mapsto ,longmapsto})

    ightharpoonup ightharpoondown leftharpoonup leftharpoondown upharpoonleft upharpoonright downharpoonleft downharpoonright ightleftharpoons leftrightharpoons

    ({displaystyle ightharpoonup , ightharpoondown ,leftharpoonup ,leftharpoondown ,upharpoonleft ,upharpoonright ,downharpoonleft ,downharpoonright , ightleftharpoons ,leftrightharpoons})

    curvearrowleft circlearrowleft Lsh upuparrows ightrightarrows ightleftarrows ightarrowtail looparrowright

    ({displaystyle curvearrowleft ,circlearrowleft ,Lsh ,upuparrows , ightrightarrows , ightleftarrows , ightarrowtail ,looparrowright})

    curvearrowright circlearrowright Rsh downdownarrows leftleftarrows leftrightarrows leftarrowtail looparrowleft

    ({displaystyle curvearrowright ,circlearrowright ,Rsh ,downdownarrows ,leftleftarrows ,leftrightarrows ,leftarrowtail ,looparrowleft})

    hookrightarrow hookleftarrow multimap leftrightsquigarrow ightsquigarrow woheadrightarrow woheadleftarrow

    ({displaystyle hookrightarrow ,hookleftarrow ,multimap ,leftrightsquigarrow , ightsquigarrow , woheadrightarrow , woheadleftarrow})

    特殊符号

    省略号:数学公式中常见的省略号有两种,ldots 表示与文本底线对齐的省略号,cdots 表示与文本中线对齐的省略号。

    amalg \% dagger ddagger ldots cdots

    ({displaystyle amalg \%dagger ddagger ldots cdots})

    smile frown wr riangleleft riangleright

    ({displaystyle smile frown wr riangleleft riangleright})

    diamondsuit, heartsuit, clubsuit, spadesuit, Game, flat, atural, sharp

    ({displaystyle diamondsuit ,heartsuit ,clubsuit ,spadesuit ,Game ,flat , atural ,sharp})

    未分类

    diagup diagdown centerdot ltimes times leftthreetimes ightthreetimes

    ({displaystyle diagup ,diagdown ,centerdot ,ltimes , times ,leftthreetimes , ightthreetimes})

    eqcirc circeq riangleq umpeq Bumpeq doteqdot isingdotseq fallingdotseq

    ({displaystyle eqcirc ,circeq , riangleq ,umpeq ,Bumpeq ,doteqdot , isingdotseq ,fallingdotseq})

    intercal arwedge veebar doublebarwedge etween pitchfork

    ({displaystyle intercal ,arwedge ,veebar ,doublebarwedge ,etween ,pitchfork})

    vartriangleleft triangleleft vartriangleright triangleright

    ({displaystyle vartriangleleft , triangleleft ,vartriangleright , triangleright})

    rianglelefteq trianglelefteq rianglerighteq trianglerighteq

    ({displaystyle rianglelefteq , trianglelefteq , rianglerighteq , trianglerighteq})

    关于这些符号的更多语义,参阅 TeX Cookbook 的简述。

    上标、下标及积分等

    功能|语法|效果

    ^ 表示上标, _ 表示下标。如果上下标的内容多于一个字符,需要用 {} 将这些内容括成一个整体。上下标可以嵌套,也可以同时使用。

    上标

    a^2

    ({displaystyle a^{2}})

    下标

    a_2

    ({displaystyle a_{2}})

    组合

    a^{2+2}

    ({displaystyle a^{2+2}})

    a_{i,j}

    ({displaystyle a_{i,j}})

    结合上下标

    x_2^3

    ({displaystyle x_{2}^{3}})

    前置上下标

    {}_1^2!X_3^4

    ({displaystyle {}_{1}^{2}!X_{3}^{4}})

    导数(HTML

    x'

    ({displaystyle x'})

    导数(PNG

    x^prime

    ({displaystyle x^{prime}})

    导数(错误

    xprime

    ({displaystyle xprime})

    导数点

    dot{x}

    ({displaystyle {dot {x}}})

    ddot{y}

    ({displaystyle {ddot {y}}})

    向量

    vec{c}(只有一个字母)

    ({displaystyle {vec {c}}})

    overleftarrow{a b}

    ({displaystyle {overleftarrow {ab}}})

    overrightarrow{c d}

    ({displaystyle {overrightarrow {cd}}})

    overleftrightarrow{a b}

    ({displaystyle {overleftrightarrow {ab}}})

    widehat{e f g}

    ({displaystyle {widehat {efg}}})

    上弧

    (注: 正确应该用 overarc,但在这里行不通。要用建议的语法作为解决办法。)(使用 overarc 时需要引入 {arcs} 包。)

    overset{frown} {AB}

    ({displaystyle {overset {frown}{AB}}})

    上划线

    overline{h i j}

    ({displaystyle {overline {hij}}})

    下划线

    underline{k l m}

    ({displaystyle {underline {klm}}})

    上括号

    overbrace{1+2+cdots+100}

    ({displaystyle overbrace {1+2+cdots +100} })

    egin{matrix} 5050 \ overbrace{ 1+2+cdots+100 } end{matrix}

    ({displaystyle {egin{matrix}5050\overbrace {1+2+cdots +100} end{matrix}}})

    下括号

    underbrace{a+b+cdots+z}

    ({displaystyle underbrace {a+b+cdots +z} })

    egin{matrix} underbrace{ a+b+cdots+z } \ 26 end{matrix}

    ({displaystyle {egin{matrix}underbrace {a+b+cdots +z} \26end{matrix}}})

    求和(累加)

    sum_{k=1}^N k^2

    ({displaystyle sum _{k=1}^{N}k^{2}})

    egin{matrix} sum_{k=1}^N k^2 end{matrix}

    ({displaystyle {egin{matrix}sum _{k=1}^{N}k^{2}end{matrix}}})

    求积(累乘)

    prod_{i=1}^N x_i

    ({displaystyle prod _{i=1}^{N}x_{i}})

    egin{matrix} prod_{i=1}^N x_i end{matrix}

    ({displaystyle {egin{matrix}prod _{i=1}^{N}x_{i}end{matrix}}})

    上积

    coprod_{i=1}^N x_i

    ({displaystyle coprod _{i=1}^{N}x_{i}})

    egin{matrix} coprod_{i=1}^N x_i end{matrix}

    ({displaystyle {egin{matrix}coprod _{i=1}^{N}x_{i}end{matrix}}})

    极限

    lim_{n o infty}x_n

    ({displaystyle lim _{n o infty}x_{n}})

    egin{matrix} lim_{n o infty}x_n end{matrix}

    ({displaystyle {egin{matrix}lim _{n o infty }x_{n}end{matrix}}})

    积分

    int_{-N}^{N} e^x\, { m d}x

    ({displaystyle int _{-N}^{N}e^{x}\,{ m d} x})

    本例中 \,{ m d} 部分可省略,但建议加入,能使式子更美观。{ m d}可以用mathrm{d}等价替换。

    egin{matrix} int_{-N}^{N} e^x\, mathrm{d}x end{matrix}(矩阵中积分符号变小)

    ({displaystyle {egin{matrix}int _{-N}^{N}e^{x}\,mathrm {d} xend{matrix}}})

    双重积分

    iint_{D}^{W} \, mathrm{d}x\,mathrm{d}y

    ({displaystyle iint _{D}^{W}\,mathrm {d} x\,mathrm {d} y})

    三重积分

    iiint_{E}^{V} \, mathrm{d}x\,mathrm{d}y\,mathrm{d}z

    ({displaystyle iiint _{E}^{V}\,mathrm {d} x\,mathrm {d} y\,mathrm {d} z})

    闭合的曲线、曲面积分

    oint_{C} x^3\, mathrm{d}x + 4y^2\, mathrm{d}y

    ({displaystyle oint _{C}x^{3}\,mathrm {d} x+4y^{2}\,mathrm {d} y})

    交集

    igcap_1^{n} p

    ({displaystyle igcap _{1}^{n}p})

    并集

    igcup_1^{k} p

    ({displaystyle igcup _{1}^{k}p})

    分数

    通常使用 frac {分子} {分母} 命令产生一个分数,分数可嵌套。
    便捷情况可直接输入 frac ab 来快速生成一个 (frac ab)
    如果分式很复杂,亦可使用 分子 over 分母 命令,此时分数仅有一层。

    功能|语法|效果

    分数

    frac{2}{4}=0.5

    ({displaystyle {frac {2}{4}}=0.5})

    小型分数

    frac{2}{4} = 0.5

    ({displaystyle { frac {2}{4}}=0.5})

    连分式(大型嵌套分式)

    cfrac{2}{c + cfrac{2}{d + cfrac{2}{4}}} = a

    ({displaystyle {cfrac {2}{c+{cfrac {2}{d+{cfrac {2}{4}}}}}}=a})

    大型不嵌套分式

    dfrac{2}{4} = 0.5 qquad dfrac{2}{c + dfrac{2}{d + dfrac{2}{4}}} = a

    ({displaystyle {dfrac {2}{4}}=0.5qquad {dfrac {2}{c+{dfrac {2}{d+{dfrac {2}{4}}}}}}=a})

    二项式系数

    dbinom{n}{r}=inom{n}{n-r}=mathrm{C}_n^r=mathrm{C}_n^{n-r}

    ({displaystyle {dbinom {n}{r}}={inom {n}{n-r}}=mathrm {C} _{n}^{r}=mathrm {C} _{n}^{n-r}})

    小型二项式系数

    binom{n}{r}= binom{n}{n-r}=mathrm{C}_n^r=mathrm{C}_n^{n-r}

    ({displaystyle { binom {n}{r}}={ binom {n}{n-r}}=mathrm {C} _{n}^{r}=mathrm {C} _{n}^{n-r}})

    大型二项式系数

    inom{n}{r}=dbinom{n}{n-r}=mathrm{C}_n^r=mathrm{C}_n^{n-r}

    ({displaystyle {inom {n}{r}}={dbinom {n}{n-r}}=mathrm {C} _{n}^{r}=mathrm {C} _{n}^{n-r}})

    在以e为底的指数函数、极限和积分中尽量不要使用 frac 符号:它会使整段函数看起来很怪,而且可能产生歧义。也正是因此它在专业数学排版中几乎从不出现。
    横着写这些分式,中间使用斜线间隔 / (用斜线代替分数线)。

    • 例子:
    egin{array}{cc}
    mathrm{Bad} & mathrm{Better} \
    hline \
    e^{ifrac{pi}2} quad e^{frac{ipi}2}& e^{ipi/2} \
    int_{-fracpi2}^fracpi2 sin x\,dx & int_{-pi/2}^{pi/2}sin x\,dx \
    end{array}
    
    • 显示:

    [egin{array}{cc} mathrm{Bad} & mathrm{Better} \ hline \ e^{ifrac{pi}2} quad e^{frac{ipi}2}& e^{ipi/2} \ int_{-fracpi2}^fracpi2 sin x\,dx & int_{-pi/2}^{pi/2}sin x\,dx \ end{array} ]

    矩阵、条件表达式、方程组

    语法:

    egin{类型}
    公式内容
    end{类型}
    

    类型可以是:矩阵 matrix pmatrix bmatrix Bmatrix vmatrix Vmatrix、条件表达式 cases、多行对齐方程式 aligned、数组 array

    在公式内容中:在每一行中插入 & 来指定需要对齐的内容,在每行结尾处使用 \ 换行

    无框矩阵

    在开头使用 begin{matrix},在结尾使用 end{matrix},在中间插入矩阵元素,每个元素之间插入 & ,并在每行结尾处使用 \

    egin{matrix}
    x & y \
    z & v
    end{matrix}
    

    ({displaystyle {egin{matrix}x&y\z&vend{matrix}}})

    有框矩阵

    在开头将 matrix 替换为 pmatrix bmatrix Bmatrix vmatrix Vmatrix

    egin{vmatrix}
    x & y \
    z & v
    end{vmatrix}
    

    ({displaystyle {egin{vmatrix}x&y\z&vend{vmatrix}}})

    egin{Vmatrix}
    x & y \
    z & v
    end{Vmatrix}
    

    ({displaystyle {egin{Vmatrix}x&y\z&vend{Vmatrix}}})

    使用 cdots (cdots) , ddots (ddots) , vdots (vdots) 来输入省略符号

    egin{bmatrix}
    0      & cdots & 0      \
    vdots & ddots & vdots \
    0      & cdots & 0
    end{bmatrix}
    

    ({displaystyle {egin{bmatrix}0&cdots &0\vdots &ddots &vdots \0&cdots &0end{bmatrix}}})

    egin{Bmatrix}
    x & y \
    z & v
    end{Bmatrix}
    

    ({displaystyle {egin{Bmatrix}x&y\z&vend{Bmatrix}}})

    egin{pmatrix}
    x & y \
    z & v
    end{pmatrix}
    

    ({displaystyle {egin{pmatrix}x&y\z&vend{pmatrix}}})

    条件表达式

    f(n) =
    egin{cases} 
    n/2,  & 	ext{if }n	ext{ is even} \
    3n+1, & 	ext{if }n	ext{ is odd}
    end{cases}
    

    ({displaystyle f(n)={egin{cases}n/2,&{ ext{if }}n{ ext{ is even}}\3n+1,&{ ext{if }}n{ ext{ is odd}}end{cases}}})

    多行等式、同余式

    人们经常想要一列整齐且居中的方程式序列。使用 egin{aligned}…end{aligned}

    egin{aligned}
    f(x) & = (m+n)^2 \
         & = m^2+2mn+n^2 \
    end{aligned}
    
    

    ({displaystyle {egin{aligned}f(x)&=(m+n)^{2}\&=m^{2}+2mn+n^{2}\end{aligned}}})

    begin{aligned}
    3^{6n+3}+4^{6n+3} 
    & equiv (3^3)^{2n+1}+(4^3)^{2n+1}\  
    & equiv 27^{2n+1}+64^{2n+1}\  
    & equiv 27^{2n+1}+(-27)^{2n+1}\ 
    & equiv 27^{2n+1}-27^{2n+1}\
    & equiv 0 pmod{91}\
    end{aligned}
    

    ({displaystyle {egin{aligned}3^{6n+3}+4^{6n+3}&equiv (3^{3})^{2n+1}+(4^{3})^{2n+1}\&equiv 27^{2n+1}+64^{2n+1}\&equiv 27^{2n+1}+(-27)^{2n+1}\&equiv 27^{2n+1}-27^{2n+1}\&equiv 0{pmod {91}}\end{aligned}}})

    egin{alignedat}{3}
    f(x) & = (m-n)^2 \
    f(x) & = (-m+n)^2 \
         & = m^2-2mn+n^2 \
    end{alignedat}
    

    ({displaystyle {egin{alignedat}{3}f(x)&=(m-n)^{2}\f(x)&=(-m+n)^{2}\&=m^{2}-2mn+n^{2}\end{alignedat}}})

    方程组

    egin{cases}
    3x + 5y +  z \
    7x - 2y + 4z \
    -6x + 3y + 2z
    end{cases}
    

    [{displaystyle {egin{cases}3x+5y+z\7x-2y+4z\-6x+3y+2zend{cases}}} ]

    left{egin{aligned}
    3x + 5y +  z \
    7x - 2y + 4z \
    -6x + 3y + 2z
    end{aligned}
    ight.
    

    [left{egin{aligned} 3x + 5y + z \ 7x - 2y + 4z \ -6x + 3y + 2z end{aligned} ight. ]

    数组与表格

    通常,一个格式化后的表格比单纯的文字或排版后的文字更具有可读性。数组和表格均以 egin{array} 开头,并在其后定义列数及每一列的文本对齐属性,c l r 分别代表居中、左对齐及右对齐。若需要插入垂直分割线,在定义式中插入 | ,若要插入水平分割线,在下一行输入前插入 hline 。与矩阵相似,每行元素间均须要插入 & ,每行元素以 \ 结尾,最后以 end{array} 结束数组。

    • 例子:
    egin{array}{c|lcr}
    n & 	ext{左对齐} & 	ext{居中对齐} & 	ext{右对齐} \
    hline
    1 & 0.24 & 1 & 125 \
    2 & -1 & 189 & -8 \
    3 & -20 & 2000 & 1+10i
    end{array}
    
    • 显示:

    [egin{array}{c|lcr} n & ext{左对齐} & ext{居中对齐} & ext{右对齐} \ hline 1 & 0.24 & 1 & 125 \ 2 & -1 & 189 & -8 \ 3 & -20 & 2000 & 1+10i end{array} ]

    • 例子:
    egin{array}{lcl}
    z        & = & a \
    f(x,y,z) & = & x + y + z 
    end{array}
    
    • 显示:

    ({displaystyle {egin{array}{lcl}z&=&a\f(x,y,z)&=&x+y+zend{array}}})

    • 例子:
    egin{array}{lcr}
    z        & = & a \
    f(x,y,z) & = & x + y + z    
    end{array}
    
    • 显示:

    ({displaystyle {egin{array}{lcr}z&=&a\f(x,y,z)&=&x+y+zend{array}}})

    • 例子:
    egin{array}{ccc}
    a & b & S \
    hline
    0&0&1\
    0&1&1\
    1&0&1\
    1&1&0\
    end{array}
    
    • 显示:

    [{displaystyle {egin{array}{ccc}a&b&S\hline 0&0&1\0&1&1\1&0&1\1&1&0\end{array}}} ]

    嵌套数组或表格

    多个数组/表格可 互相嵌套 并组成一组数组/一组表格。
    使用嵌套前必须声明 $$ 符号。

    • 例子:
    % outer vertical array of arrays 外层垂直表格
    egin{array}{c}
        % inner horizontal array of arrays 内层水平表格
        egin{array}{cc}
            % inner array of minimum values 内层"最小值"数组
            egin{array}{c|cccc}
            	ext{min} & 0 & 1 & 2 & 3\
            hline
            0 & 0 & 0 & 0 & 0\
            1 & 0 & 1 & 1 & 1\
            2 & 0 & 1 & 2 & 2\
            3 & 0 & 1 & 2 & 3
            end{array}
        &
            % inner array of maximum values 内层"最大值"数组
            egin{array}{c|cccc}
            	ext{max}&0&1&2&3\
            hline
            0 & 0 & 1 & 2 & 3\
            1 & 1 & 1 & 2 & 3\
            2 & 2 & 2 & 2 & 3\
            3 & 3 & 3 & 3 & 3
            end{array}
        end{array}
        % 内层第一行表格组结束
        \
        % inner array of delta values 内层第二行Delta值数组
            egin{array}{c|cccc}
            Delta&0&1&2&3\
            hline
            0 & 0 & 1 & 2 & 3\
            1 & 1 & 0 & 1 & 2\
            2 & 2 & 1 & 0 & 1\
            3 & 3 & 2 & 1 & 0
            end{array}
            % 内层第二行表格组结束
    end{array}
    
    • 显示:

    [% outer vertical array of arrays 外层垂直表格 egin{array}{c} % inner horizontal array of arrays 内层水平表格 egin{array}{cc} % inner array of minimum values 内层"最小值"数组 egin{array}{c|cccc} ext{min} & 0 & 1 & 2 & 3\ hline 0 & 0 & 0 & 0 & 0\ 1 & 0 & 1 & 1 & 1\ 2 & 0 & 1 & 2 & 2\ 3 & 0 & 1 & 2 & 3 end{array} & % inner array of maximum values 内层"最大值"数组 egin{array}{c|cccc} ext{max}&0&1&2&3\ hline 0 & 0 & 1 & 2 & 3\ 1 & 1 & 1 & 2 & 3\ 2 & 2 & 2 & 2 & 3\ 3 & 3 & 3 & 3 & 3 end{array} end{array} % 内层第一行表格组结束 \ % inner array of delta values 内层第二行Delta值数组 egin{array}{c|cccc} Delta&0&1&2&3\ hline 0 & 0 & 1 & 2 & 3\ 1 & 1 & 0 & 1 & 2\ 2 & 2 & 1 & 0 & 1\ 3 & 3 & 2 & 1 & 0 end{array} % 内层第二行表格组结束 end{array} ]

    用数组实现带分割符号的矩阵

    • 例子:
    $$
    left[
        egin{array}{cc|c}
          1&2&3\
          4&5&6
        end{array}
    
    ight]
    $$
    
    • 显示:

    [left[ egin{array}{cc|c} 1&2&3\ 4&5&6 end{array} ight] ]

    其中 cc|c 代表在一个三列矩阵中的第二和第三列之间插入分割线。

    字体

    希腊字母

    输入 小写希腊字母英文全称首字母大写希腊字母英文全称 来分别输入小写和大写希腊字母。

    Alpha Beta Gamma Delta Epsilon eta Eta Theta

    ({displaystyle mathrm {A} mathrm {B} Gamma Delta mathrm {E} mathrm {Z} mathrm {H} Theta })

    Iota Kappa Lambda Mu Nu Xi Omicron Pi

    ({displaystyle mathrm {I} mathrm {K} Lambda mathrm {M} mathrm {N} mathrm {O} Xi Pi })

    Rho Sigma Tau Upsilon Phi Chi Psi Omega

    ({displaystyle mathrm {P} Sigma mathrm {T} Upsilon Phi mathrm {X} Psi Omega })

    alpha eta gamma delta epsilon zeta eta heta

    ({displaystyle alpha eta gamma delta epsilon zeta eta heta})

    iota kappa lambda mu u omicron xi pi

    ({displaystyle iota kappa lambda mu u mathrm {o} xi pi })

    ho sigma au upsilon phi chi psi omega

    ({displaystyle ho sigma au upsilon phi chi psi omega})

    部分字母有变量专用形式,以 var- 开头。

    varepsilon digamma varkappa varpi

    ({displaystyle varepsilon digamma varkappa varpi})

    varrho varsigma vartheta varphi

    ({displaystyle varrho varsigma vartheta varphi})

    希伯来符号

    aleph eth gimel daleth

    ({displaystyle aleph eth gimel daleth})

    部分字体的简称

    若要对公式的某一部分字符进行字体转换,可以用 {字体 {需转换的部分字符}} 命令,其中 字体 部分可以参照下表选择合适的字体。一般情况下,公式默认为意大利体 (italic)

    输入 说明 显示 输入 说明 显示
    m 罗马体 ( m{Sample}) cal 花体 (cal{SAMPLE})
    it 意大利体 (it{Sample}) Bbb 黑板粗体 (Bbb{SAMPLE})
    f 粗体 (f{Sample}) mit 数学斜体 (mit{SAMPLE})
    sf 等线体 (sf{Sample}) scr 手写体 (scr{SAMPLE})
    t 打字机体 ( t{Sample}) frak 旧德式字体 (frak{Sample})

    所有字体

    黑板报粗体

    mathbb{ABCDEFGHI}

    ({displaystyle mathbb {ABCDEFGHI} })

    mathbb{JKLMNOPQR}

    ({displaystyle mathbb {JKLMNOPQR} })

    mathbb{STUVWXYZ}

    ({displaystyle mathbb {STUVWXYZ} })

    粗体

    mathbf{ABCDEFGHI}

    ({displaystyle mathbf {ABCDEFGHI} })

    mathbf{JKLMNOPQR}

    ({displaystyle mathbf {JKLMNOPQR} })

    mathbf{STUVWXYZ}

    ({displaystyle mathbf {STUVWXYZ} })

    mathbf{abcdefghijklm}

    ({displaystyle mathbf {abcdefghijklm} })

    mathbf{nopqrstuvwxyz}

    ({displaystyle mathbf {nopqrstuvwxyz} })

    mathbf{0123456789}

    ({displaystyle mathbf {0123456789} })

    粗体希腊字母

    oldsymbol{AlphaBetaGammaDeltaEpsilonetaEtaTheta}

    ({displaystyle {oldsymbol {mathrm {A} mathrm {B} Gamma Delta mathrm {E} mathrm {Z} mathrm {H} Theta }}})

    oldsymbol{IotaKappaLambdaMuNuXiPiRho}

    ({displaystyle {oldsymbol {mathrm {I} mathrm {K} Lambda mathrm {M} mathrm {N} Xi Pi mathrm {P} }}})

    oldsymbol{SigmaTauUpsilonPhiChiPsiOmega}

    ({displaystyle {oldsymbol {Sigma mathrm {T} Upsilon Phi mathrm {X} Psi Omega }}})

    oldsymbol{alphaetagammadeltaepsilonzetaeta heta}

    ({displaystyle {oldsymbol {alpha eta gamma delta epsilon zeta eta heta}}})

    oldsymbol{iotakappalambdamu uxipi ho}

    ({displaystyle {oldsymbol {iota kappa lambda mu u xi pi ho}}})

    oldsymbol{sigma auupsilonphichipsiomega}

    ({displaystyle {oldsymbol {sigma au upsilon phi chi psi omega}}})

    oldsymbol{varepsilondigammavarkappavarpi}

    ({displaystyle {oldsymbol {varepsilon digamma varkappa varpi}}})

    oldsymbol{varrhovarsigmavarthetavarphi}

    ({displaystyle {oldsymbol {varrho varsigma vartheta varphi}}})

    斜体(拉丁字母默认)

    mathit{0123456789}

    ({displaystyle {mathit {0123456789}}})

    斜体希腊字母(小写字母默认)

    mathit{AlphaBetaGammaDeltaEpsilonetaEtaTheta}

    ({displaystyle {mathit {mathrm {A} mathrm {B} Gamma Delta mathrm {E} mathrm {Z} mathrm {H} Theta }}})

    mathit{IotaKappaLambdaMuNuXiPiRho}

    ({displaystyle {mathit {mathrm {I} mathrm {K} Lambda mathrm {M} mathrm {N} Xi Pi mathrm {P} }}})

    mathit{SigmaTauUpsilonPhiChiPsiOmega}

    ({displaystyle {mathit {Sigma mathrm {T} Upsilon Phi mathrm {X} Psi Omega }}})

    罗马体

    mathrm{ABCDEFGHI}

    ({displaystyle mathrm {ABCDEFGHI} })

    mathrm{JKLMNOPQR}

    ({displaystyle mathrm {JKLMNOPQR} })

    mathrm{STUVWXYZ}

    ({displaystyle mathrm {STUVWXYZ} })

    mathrm{abcdefghijklm}

    ({displaystyle mathrm {abcdefghijklm} })

    mathrm{nopqrstuvwxyz}

    ({displaystyle mathrm {nopqrstuvwxyz} })

    mathrm{0123456789}

    ({displaystyle mathrm {0123456789} })

    无衬线体

    mathsf{ABCDEFGHI}

    ({displaystyle {mathsf {ABCDEFGHI}}})

    mathsf{JKLMNOPQR}

    ({displaystyle {mathsf {JKLMNOPQR}}})

    mathsf{STUVWXYZ}

    ({displaystyle {mathsf {STUVWXYZ}}})

    mathsf{abcdefghijklm}

    ({displaystyle {mathsf {abcdefghijklm}}})

    mathsf{nopqrstuvwxyz}

    ({displaystyle {mathsf {nopqrstuvwxyz}}})

    mathsf{0123456789}

    ({displaystyle {mathsf {0123456789}}})

    无衬线体希腊字母(仅大写)

    mathsf{Alpha Beta Gamma Delta Epsilon eta Eta Theta}

    ({displaystyle {mathsf {mathrm {A} mathrm {B} Gamma Delta mathrm {E} mathrm {Z} mathrm {H} Theta }}})

    mathsf{Iota Kappa Lambda Mu Nu Xi Pi Rho}

    ({displaystyle {mathsf {mathrm {I} mathrm {K} Lambda mathrm {M} mathrm {N} Xi Pi mathrm {P} }}})

    mathsf{Sigma Tau Upsilon Phi Chi Psi Omega}

    ({displaystyle {mathsf {Sigma mathrm {T} Upsilon Phi mathrm {X} Psi Omega }}})

    手写体 / 花体

    mathcal{ABCDEFGHI}

    ({displaystyle {mathcal {ABCDEFGHI}}})

    mathcal{JKLMNOPQR}

    ({displaystyle {mathcal {JKLMNOPQR}}})

    mathcal{STUVWXYZ}

    ({displaystyle {mathcal {STUVWXYZ}}})

    Fraktur 体

    mathfrak{ABCDEFGHI}

    ({displaystyle {mathfrak {ABCDEFGHI}}})

    mathfrak{JKLMNOPQR}

    ({displaystyle {mathfrak {JKLMNOPQR}}})

    mathfrak{STUVWXYZ}

    ({displaystyle {mathfrak {STUVWXYZ}}})

    mathfrak{abcdefghijklm}

    ({displaystyle {mathfrak {abcdefghijklm}}})

    mathfrak{nopqrstuvwxyz}

    ({displaystyle {mathfrak {nopqrstuvwxyz}}})

    mathfrak{0123456789}

    ({displaystyle {mathfrak {0123456789}}})

    小型手写体

    {scriptstyle ext{abcdefghijklm}}

    ({displaystyle {scriptstyle { ext{abcdefghijklm}}}})

    混合字体

    特征|语法|渲染效果

    斜体字符(忽略空格)

    x y z

    ({displaystyle xyz})

    非斜体字符

    ext{x y z}

    ({displaystyle { ext{x y z}}})

    混合斜体(差)

    ext{if} n ext{is even}

    ({displaystyle { ext{if}}n{ ext{is even}}})

    混合斜体(好)

    ext{if }n ext{ is even}

    ({displaystyle { ext{if }}n{ ext{ is even}}})

    混合斜体(替代品:~ 或者 强制空格)

    ext{if}~n ext{is even}

    ({displaystyle { ext{if}}~n { ext{is even}}})

    注释文本

    使用 ext {文字} 来添加注释文本(注释文本不会被识别为公式,不用斜体显示)。 ext {文字}中仍可以使用 $公式$ 插入其它公式。

    • 例子:
    f(n)= egin{cases}
    n/2, & 	ext {if $n$ is even} \
    3n+1, &	ext{if $n$ is odd}
    end{cases} 
    
    • 显示:

    [f(n)= egin{cases} n/2, & ext {if} n ext{is even} \ 3n+1, & ext {if} n ext{is odd} end{cases} ]

    括号

    ()[]| 表示符号本身,使用 {} 来表示 {}

    功能|语法|显示

    短括号

    frac{1}{2}

    ({displaystyle ({frac {1}{2}})})

    长括号

    left(frac{1}{2} ight

    ({displaystyle left({frac {1}{2}} ight)})

    使用 left ight 来创建自动匹配高度的 (圆括号),[方括号] 和 {花括号} 。

    功能|语法|显示

    圆括号,小括号

    left( frac{a}{b} ight)

    ({displaystyle left({frac {a}{b}} ight)})

    方括号,中括号

    left[ frac{a}{b} ight]

    ({displaystyle left[{frac {a}{b}} ight]})

    花括号,大括号

    left{ frac{a}{b} ight}

    ({displaystyle left{{frac {a}{b}} ight}})

    角括号

    left langle frac{a}{b} ight angle

    ({displaystyle leftlangle {frac {a}{b}} ight angle })

    单竖线,绝对值

    left| frac{a}{b} ight|

    ({displaystyle left| frac{a}{b} ight|})

    双竖线,范

    left | frac{a}{b} ight |

    ({displaystyle left|{frac {a}{b}} ight|})

    取整函数

    left lfloor frac{a}{b} ight floor

    ({displaystyle leftlfloor {frac {a}{b}} ight floor })

    取顶函数

    left lceil frac{c}{d} ight ceil

    ({displaystyle leftlceil {frac {c}{d}} ight ceil })

    斜线与反斜线

    left / frac{a}{b} ight ackslash

    ({displaystyle left/{frac {a}{b}} ightackslash })

    上下箭头

    left uparrow frac{a}{b} ight downarrow

    ({displaystyle leftuparrow {frac {a}{b}} ightdownarrow })

    left Uparrow frac{a}{b} ight Downarrow

    ({displaystyle leftUparrow {frac {a}{b}} ightDownarrow })

    left updownarrow frac{a}{b} ight Updownarrow

    ({displaystyle leftupdownarrow {frac {a}{b}} ightUpdownarrow })

    混合括号

    left[ 0,1 ight)

    ({displaystyle left[0,1 ight)})

    left langle psi ight |

    (left langle psi ight |)

    如果括号只有一边,要用 left. ight. 匹配另一边。

    单左括号

    left {frac{a}{b} ight.

    ({displaystyle left{{frac {a}{b}} ight.})

    单右括号

    left. frac{a}{b} ight }

    ({displaystyle left.{frac {a}{b}} ight}})

    备注:

    • 可以使用 ig, Big, igg, Bigg 控制括号的大小,比如代码

      Bigg ( igg [ Big { ig langle left | | frac{a}{b} | ight | ig angle Big } igg ] Bigg )

      显示︰

      [Bigg ( igg [ Big { ig langle left | | frac{a}{b} | ight | ig angle Big } igg ] Bigg ) ]

    空格

    注意 TeX 能够自动处理大多数的空格,但是您有时候需要自己来控制。

    功能|语法|显示|宽度

    2 个 quad 空格

    alphaqquadeta

    ({displaystyle alpha qquad eta})

    ({displaystyle mm})

    quad 空格

    alphaquadeta

    ({displaystyle alpha quad eta})

    ({displaystyle m})

    大空格

    alpha eta

    ({displaystyle alpha eta})

    ({displaystyle {frac{m}{3}}})

    中等空格

    alpha;eta

    ({displaystyle alpha ;eta})

    ({displaystyle {frac {2m}{7}}})

    小空格

    alpha\,eta

    ({displaystyle alpha \,eta})

    ({displaystyle {frac {m}{6}}})

    没有空格

    alphaeta

    ({displaystyle alpha eta })

    ({displaystyle 0})

    紧贴

    alpha!eta

    ({displaystyle alpha !eta})

    ({displaystyle -{frac {m}{6}}})

    颜色

    Cmd Markdown 公式指导手册里是这样写的:

    使用 color{颜色}{文字} 来更改特定的文字颜色。
    更改文字颜色 需要浏览器支持 ,如果浏览器不知道你所需的颜色,那么文字将被渲染为黑色。

    对于较旧的浏览器(HTML4与CSS2),以下颜色是被支持的:

    输入 显示 输入 显示
    black (color{black}{text}) grey (color{grey}{text})
    silver (color{silver}{text}) white (color{white}{text})
    maroon (color{maroon}{text}) red (color{red}{text})
    yellow (color{yellow}{text}) lime (color{lime}{text})
    olive (color{olive}{text}) green (color{green}{text})
    teal (color{teal}{text}) auqa (color{auqa}{text})
    blue (color{blue}{text}) navy (color{navy}{text})
    purple (color{purple}{text}) fuchsia (color{fuchsia}{text})

    对于较新的浏览器(HTML5与CSS3),额外的124种颜色将被支持:

    输入 color {#rgb} {text} 来自定义更多的颜色,其中 #rgbr g b 可输入 0-9a-f 来表示红色、绿色和蓝色的纯度(饱和度)。

    • 例子:
    egin{array}{|rrrrrrrr|}hline
    verb+#000+ & color{#000}{text} & & &
    verb+#00F+ & color{#00F}{text} & & \
    & & verb+#0F0+ & color{#0F0}{text} &
    & & verb+#0FF+ & color{#0FF}{text}\
    verb+#F00+ & color{#F00}{text} & & &
    verb+#F0F+ & color{#F0F}{text} & & \
    & & verb+#FF0+ & color{#FF0}{text} &
    & & verb+#FFF+ & color{#FFF}{text}\
    hline
    end{array}
    
    • 显示:

    [egin{array}{|rrrrrrrr|}hline verb+#000+ & color{#000}{text} & & & verb+#00F+ & color{#00F}{text} & & \ & & verb+#0F0+ & color{#0F0}{text} & & & verb+#0FF+ & color{#0FF}{text}\ verb+#F00+ & color{#F00}{text} & & & verb+#F0F+ & color{#F0F}{text} & & \ & & verb+#FF0+ & color{#FF0}{text} & & & verb+#FFF+ & color{#FFF}{text}\ hline end{array} ]

    • 例子:
    egin{array}{|rrrrrrrr|}
    hline
    verb+#000+ & color{#000}{text} & verb+#005+ & color{#005}{text} & verb+#00A+ & color{#00A}{text} & verb+#00F+ & color{#00F}{text}  \
    verb+#500+ & color{#500}{text} & verb+#505+ & color{#505}{text} & verb+#50A+ & color{#50A}{text} & verb+#50F+ & color{#50F}{text}  \
    verb+#A00+ & color{#A00}{text} & verb+#A05+ & color{#A05}{text} & verb+#A0A+ & color{#A0A}{text} & verb+#A0F+ & color{#A0F}{text}  \
    verb+#F00+ & color{#F00}{text} & verb+#F05+ & color{#F05}{text} & verb+#F0A+ & color{#F0A}{text} & verb+#F0F+ & color{#F0F}{text}  \
    hline
    verb+#080+ & color{#080}{text} & verb+#085+ & color{#085}{text} & verb+#08A+ & color{#08A}{text} & verb+#08F+ & color{#08F}{text}  \
    verb+#580+ & color{#580}{text} & verb+#585+ & color{#585}{text} & verb+#58A+ & color{#58A}{text} & verb+#58F+ & color{#58F}{text}  \
    verb+#A80+ & color{#A80}{text} & verb+#A85+ & color{#A85}{text} & verb+#A8A+ & color{#A8A}{text} & verb+#A8F+ & color{#A8F}{text}  \
    verb+#F80+ & color{#F80}{text} & verb+#F85+ & color{#F85}{text} & verb+#F8A+ & color{#F8A}{text} & verb+#F8F+ & color{#F8F}{text}  \
    hline
    verb+#0F0+ & color{#0F0}{text} & verb+#0F5+ & color{#0F5}{text} & verb+#0FA+ & color{#0FA}{text} & verb+#0FF+ & color{#0FF}{text}  \
    verb+#5F0+ & color{#5F0}{text} & verb+#5F5+ & color{#5F5}{text} & verb+#5FA+ & color{#5FA}{text} & verb+#5FF+ & color{#5FF}{text}  \
    verb+#AF0+ & color{#AF0}{text} & verb+#AF5+ & color{#AF5}{text} & verb+#AFA+ & color{#AFA}{text} & verb+#AFF+ & color{#AFF}{text}  \
    verb+#FF0+ & color{#FF0}{text} & verb+#FF5+ & color{#FF5}{text} & verb+#FFA+ & color{#FFA}{text} & verb+#FFF+ & color{#FFF}{text}  \
    hline
    end{array}
    
    • 显示:

    [egin{array}{|rrrrrrrr|} hline verb+#000+ & color{#000}{text} & verb+#005+ & color{#005}{text} & verb+#00A+ & color{#00A}{text} & verb+#00F+ & color{#00F}{text} \ verb+#500+ & color{#500}{text} & verb+#505+ & color{#505}{text} & verb+#50A+ & color{#50A}{text} & verb+#50F+ & color{#50F}{text} \ verb+#A00+ & color{#A00}{text} & verb+#A05+ & color{#A05}{text} & verb+#A0A+ & color{#A0A}{text} & verb+#A0F+ & color{#A0F}{text} \ verb+#F00+ & color{#F00}{text} & verb+#F05+ & color{#F05}{text} & verb+#F0A+ & color{#F0A}{text} & verb+#F0F+ & color{#F0F}{text} \ hline verb+#080+ & color{#080}{text} & verb+#085+ & color{#085}{text} & verb+#08A+ & color{#08A}{text} & verb+#08F+ & color{#08F}{text} \ verb+#580+ & color{#580}{text} & verb+#585+ & color{#585}{text} & verb+#58A+ & color{#58A}{text} & verb+#58F+ & color{#58F}{text} \ verb+#A80+ & color{#A80}{text} & verb+#A85+ & color{#A85}{text} & verb+#A8A+ & color{#A8A}{text} & verb+#A8F+ & color{#A8F}{text} \ verb+#F80+ & color{#F80}{text} & verb+#F85+ & color{#F85}{text} & verb+#F8A+ & color{#F8A}{text} & verb+#F8F+ & color{#F8F}{text} \ hline verb+#0F0+ & color{#0F0}{text} & verb+#0F5+ & color{#0F5}{text} & verb+#0FA+ & color{#0FA}{text} & verb+#0FF+ & color{#0FF}{text} \ verb+#5F0+ & color{#5F0}{text} & verb+#5F5+ & color{#5F5}{text} & verb+#5FA+ & color{#5FA}{text} & verb+#5FF+ & color{#5FF}{text} \ verb+#AF0+ & color{#AF0}{text} & verb+#AF5+ & color{#AF5}{text} & verb+#AFA+ & color{#AFA}{text} & verb+#AFF+ & color{#AFF}{text} \ verb+#FF0+ & color{#FF0}{text} & verb+#FF5+ & color{#FF5}{text} & verb+#FFA+ & color{#FFA}{text} & verb+#FFF+ & color{#FFF}{text} \ hline end{array} ]

    维基百科的数学公式教程里是这样写的:

    语法:{color{颜色}表达式}

    作者实测:在部分浏览器中,上面的语法可能是错误的(只将表达式的第一个字符着色),color{颜色}{文字}的语法才是正确的。例如:

    {color{Red}abc}显示({color{Red}abc})
    color{Red}{abc}显示(color{Red}{abc})

    支持色调表:

    ({displaystyle color {Apricot}{ ext{Apricot}}})

    ({displaystyle color {Aquamarine}{ ext{Aquamarine}}})

    ({displaystyle color {Bittersweet}{ ext{Bittersweet}}})

    ({displaystyle color {Black}{ ext{Black}}})

    ({displaystyle color {Blue}{ ext{Blue}}})

    ({displaystyle color {BlueGreen}{ ext{BlueGreen}}})

    ({displaystyle color {BlueViolet}{ ext{BlueViolet}}})

    ({displaystyle color {BrickRed}{ ext{BrickRed}}})

    ({displaystyle color {Brown}{ ext{Brown}}})

    ({displaystyle color {BurntOrange}{ ext{BurntOrange}}})

    ({displaystyle color {CadetBlue}{ ext{CadetBlue}}})

    ({displaystyle color {CarnationPink}{ ext{CarnationPink}}})

    ({displaystyle color {Cerulean}{ ext{Cerulean}}})

    ({displaystyle color {CornflowerBlue}{ ext{CornflowerBlue}}})

    ({displaystyle color {Cyan}{ ext{Cyan}}})

    ({displaystyle color {Dandelion}{ ext{Dandelion}}})

    ({displaystyle color {DarkOrchid}{ ext{DarkOrchid}}})

    ({displaystyle color {Emerald}{ ext{Emerald}}})

    ({displaystyle color {ForestGreen}{ ext{ForestGreen}}})

    ({displaystyle color {Fuchsia}{ ext{Fuchsia}}})

    ({displaystyle color {Goldenrod}{ ext{Goldenrod}}})

    ({displaystyle color {Gray}{ ext{Gray}}})

    ({displaystyle color {Green}{ ext{Green}}})

    ({displaystyle color {GreenYellow}{ ext{GreenYellow}}})

    ({displaystyle color {JungleGreen}{ ext{JungleGreen}}})

    ({displaystyle color {Lavender}{ ext{Lavender}}})

    ({displaystyle color {LimeGreen}{ ext{LimeGreen}}})

    ({displaystyle color {Magenta}{ ext{Magenta}}})

    ({displaystyle color {Mahogany}{ ext{Mahogany}}})

    ({displaystyle color {Maroon}{ ext{Maroon}}})

    ({displaystyle color {Melon}{ ext{Melon}}})

    ({displaystyle color {MidnightBlue}{ ext{MidnightBlue}}})

    ({displaystyle color {Mulberry}{ ext{Mulberry}}})

    ({displaystyle color {NavyBlue}{ ext{NavyBlue}}})

    ({displaystyle color {OliveGreen}{ ext{OliveGreen}}})

    ({displaystyle color {Orange}{ ext{Orange}}})

    ({displaystyle color {OrangeRed}{ ext{OrangeRed}}})

    ({displaystyle color {Orchid}{ ext{Orchid}}})

    ({displaystyle color {Peach}{ ext{Peach}}})

    ({displaystyle color {Periwinkle}{ ext{Periwinkle}}})

    ({displaystyle color {PineGreen}{ ext{PineGreen}}})

    ({displaystyle color {Plum}{ ext{Plum}}})

    ({displaystyle color {ProcessBlue}{ ext{ProcessBlue}}})

    ({displaystyle color {Purple}{ ext{Purple}}})

    ({displaystyle color {RawSienna}{ ext{RawSienna}}})

    ({displaystyle color {Red}{ ext{Red}}})

    ({displaystyle color {RedOrange}{ ext{RedOrange}}})

    ({displaystyle color {RedViolet}{ ext{RedViolet}}})

    ({displaystyle color {Rhodamine}{ ext{Rhodamine}}})

    ({displaystyle color {RoyalBlue}{ ext{RoyalBlue}}})

    ({displaystyle color {RoyalPurple}{ ext{RoyalPurple}}})

    ({displaystyle color {RubineRed}{ ext{RubineRed}}})

    ({displaystyle color {Salmon}{ ext{Salmon}}})

    ({displaystyle color {SeaGreen}{ ext{SeaGreen}}})

    ({displaystyle color {Sepia}{ ext{Sepia}}})

    ({displaystyle color {SkyBlue}{ ext{SkyBlue}}})

    ({displaystyle color {SpringGreen}{ ext{SpringGreen}}})

    ({displaystyle color {Tan}{ ext{Tan}}})

    ({displaystyle color {TealBlue}{ ext{TealBlue}}})

    ({displaystyle color {Thistle}{ ext{Thistle}}})

    ({displaystyle color {Turquoise}{ ext{Turquoise}}})

    ({displaystyle color {Violet}{ ext{Violet}}})

    ({displaystyle color {VioletRed}{ ext{VioletRed}}})

    ({displaystyle color {White}{ ext{White}}})

    ({displaystyle color {WildStrawberry}{ ext{WildStrawberry}}})

    ({displaystyle color {Yellow}{ ext{Yellow}}})

    ({displaystyle color {YellowGreen}{ ext{YellowGreen}}})

    ({displaystyle color {YellowOrange}{ ext{YellowOrange}}})

    注︰输入时第一个字母必需以大写输入,如color{OliveGreen}

    例子

    • {color{Blue}x^2}+{color{Brown}2x} - {color{OliveGreen}1}

      ({displaystyle {color {Blue}x^{2}}+{color {Brown}2x}-{color {OliveGreen}1}})

    • x_{color{Maroon}1,2}=frac{-bpmsqrt{{color{Maroon}b^2-4ac}}}{2a}

      ({displaystyle x_{color {Maroon}1,2}={frac {-bpm {sqrt {color {Maroon}b^{2}-4ac}}}{2a}}})

    外部链接

  • 相关阅读:
    算法
    autoreleasepool和weak
    记录一下锁如何使用
    RunLoop相关知识
    NSTimer内存泄漏的解决方案
    ARC下block循环引用的解决方式
    MGJRouter源码解析及使用方法
    Instruments 中Time Profile的使用
    NSFileManager的基本使用
    Runtime相关知识
  • 原文地址:https://www.cnblogs.com/1024th/p/15269659.html
Copyright © 2011-2022 走看看