使用方法/数学公式:修订间差异
来自康健生活
< 使用方法
| (未显示同一用户的17个中间版本) | |||
| 第60行: | 第60行: | ||
| 不支持 || || | | 不支持 || || | ||
|} | |} | ||
== 绘图 == | |||
== 运算 == | == 运算 == | ||
| 第118行: | 第120行: | ||
| <math>\dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</math> || 大型分数(不嵌套) || <syntaxhighlight lang="latex" inline>\dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</syntaxhighlight> | | <math>\dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</math> || 大型分数(不嵌套) || <syntaxhighlight lang="latex" inline>\dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</syntaxhighlight> | ||
|} | |} | ||
== | == 大型运算 == | ||
=== 求和 === | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| 第125行: | 第129行: | ||
| <math>\sum</math> || 求和 || <syntaxhighlight lang="latex" inline>\sum</syntaxhighlight> | | <math>\sum</math> || 求和 || <syntaxhighlight lang="latex" inline>\sum</syntaxhighlight> | ||
|- | |- | ||
| <math>p = \sum\limits_{n=1}^N a_n</math> || 求和 || <syntaxhighlight lang="latex" inline>p = \sum\limits_{n=1}^N a_n</syntaxhighlight> | | <math>\sum_{y}^{x}</math> || 求和 || <syntaxhighlight lang="latex" inline>\sum_{y}^{x}</syntaxhighlight> | ||
|- | |||
| <math>p = \sum\limits_{n=1}^{N} a_n</math> || 求和 || <syntaxhighlight lang="latex" inline>p = \sum\limits_{n=1}^{N} a_n</syntaxhighlight> | |||
|- | |- | ||
| <math>p = \sum\nolimits_{n=1}^N a_n</math> || 求和 || <syntaxhighlight lang="latex" inline>p = \sum\nolimits_{n=1}^N a_n</syntaxhighlight> | | <math>p = \sum\nolimits_{n=1}^N a_n</math> || 求和 || <syntaxhighlight lang="latex" inline>p = \sum\nolimits_{n=1}^N a_n</syntaxhighlight> | ||
|} | |||
=== 连乘 === | |||
{| class="wikitable" | |||
|- | |||
! 符号 !! 名称 !! | |||
|- | |- | ||
| <math>\prod_{i=1}^{n}</math> || 连乘 || <syntaxhighlight lang="latex" inline>\prod_{i=1}^{n}</syntaxhighlight> | | <math>\prod_{i=1}^{n}</math> || 连乘 || <syntaxhighlight lang="latex" inline>\prod_{i=1}^{n}</syntaxhighlight> | ||
|- | |||
| <math>\coprod_{i=1}^{n}</math> || 连乘 || <syntaxhighlight lang="latex" inline>\coprod_{i=1}^{n}</syntaxhighlight> | |||
|- | |- | ||
| <math>\prod \limits_{i=0}^n</math> || 连乘 || <syntaxhighlight lang="latex" inline>\prod \limits_{i=0}^n</syntaxhighlight> | | <math>\prod \limits_{i=0}^n</math> || 连乘 || <syntaxhighlight lang="latex" inline>\prod \limits_{i=0}^n</syntaxhighlight> | ||
| | |} | ||
=== 开方 === | |||
{| class="wikitable" | |||
|- | |||
! 符号 !! 名称 !! | |||
|- | |- | ||
| <math>\sqrt{x}</math> || 开方 || <syntaxhighlight lang="latex" inline>\sqrt{x}</syntaxhighlight> | | <math>\sqrt{x}</math> || 开方 || <syntaxhighlight lang="latex" inline>\sqrt{x}</syntaxhighlight> | ||
| 第139行: | 第159行: | ||
| <math>\sqrt[n]{x}</math> || 开n次方 || <syntaxhighlight lang="latex" inline>\sqrt[n]{x}</syntaxhighlight> | | <math>\sqrt[n]{x}</math> || 开n次方 || <syntaxhighlight lang="latex" inline>\sqrt[n]{x}</syntaxhighlight> | ||
|} | |} | ||
=== 其他 === | |||
{| class="wikitable" | |||
|- | |||
! 符号 !! 名称 !! | |||
|- | |||
| <math>\bigcup_{y}^{x}</math> || || <syntaxhighlight lang="latex" inline>\bigcup_{y}^{x}</syntaxhighlight> | |||
|- | |||
| <math>\bigcap_{y}^{x}</math> || || <syntaxhighlight lang="latex" inline>\bigcap_{y}^{x}</syntaxhighlight> | |||
|- | |||
| <math>\bigvee_{y}^{x}</math> || || <syntaxhighlight lang="latex" inline>\bigvee_{y}^{x}</syntaxhighlight> | |||
|- | |||
| <math>\bigwedge_{y}^{x}</math> || || <syntaxhighlight lang="latex" inline>\bigwedge_{y}^{x}</syntaxhighlight> | |||
|}= | |||
== 集合 == | == 集合 == | ||
{| class="wikitable" | {| class="wikitable" | ||
| 第336行: | 第370行: | ||
|- | |- | ||
| <math>\arccsc</math> || || <syntaxhighlight lang="latex" inline>\arccsc</syntaxhighlight> || <math>\arccsc m</math> | | <math>\arccsc</math> || || <syntaxhighlight lang="latex" inline>\arccsc</syntaxhighlight> || <math>\arccsc m</math> | ||
|} | |} | ||
| 第528行: | 第560行: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! 符号 !! 名称 !! | ! 符号 !! 名称 !! !! 示例 !! | ||
|- | |||
| <math>\iint</math> || 二重积分 || <syntaxhighlight lang="latex" inline>\iint</syntaxhighlight> || || | |||
|- | |||
| <math>\iiint</math> || 三重积分 || <syntaxhighlight lang="latex" inline>\iiint</syntaxhighlight> || || | |||
|- | |- | ||
| <math>\int_{1}^{2}{4x^2}\mathrm{d}x</math> || 定积分 || <syntaxhighlight lang="latex" inline>\int_{1}^{2}{4x^2}\mathrm{d}x</syntaxhighlight> | | <math>\int_{1}^{2}{4x^2}\mathrm{d}x</math> || 定积分 || <syntaxhighlight lang="latex" inline>\int_{1}^{2}{4x^2}\mathrm{d}x</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\int{4x^2}\mathrm{d}x</math> || 不定积分 || <syntaxhighlight lang="latex" inline>\int{4x^2}\mathrm{d}x</syntaxhighlight> | | <math>\int{4x^2}\mathrm{d}x</math> || 不定积分 || <syntaxhighlight lang="latex" inline>\int{4x^2}\mathrm{d}x</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\ | | <math>\oint</math> || 曲面积分 || <syntaxhighlight lang="latex" inline>\oint</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\ | | <math>\oiint</math> || || <syntaxhighlight lang="latex" inline>\oiint</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\ | | <math>\oiiint</math> || || <syntaxhighlight lang="latex" inline>\oiiint</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\frac{\partial^2 u}{\partial z^2}</math> || 偏导数 || <syntaxhighlight lang="latex" inline>\frac{\partial^2 u}{\partial z^2}</syntaxhighlight> | | <math>\frac{\partial^2 u}{\partial z^2}</math> || 偏导数 || <syntaxhighlight lang="latex" inline>\frac{\partial^2 u}{\partial z^2}</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\lim\limits_{x\to\infty}</math> || 极限 || <syntaxhighlight lang="latex" inline>\lim\limits_{x\to\infty}</syntaxhighlight> | | <math>\lim\limits_{x\to\infty}</math> || 极限 || <syntaxhighlight lang="latex" inline>\lim\limits_{x\to\infty}</syntaxhighlight> || || | ||
|- | |- | ||
| <math>\mathrm{d}x</math> || 导数 || <syntaxhighlight lang="latex" inline>\mathrm{d}x</syntaxhighlight> | | <math>\mathrm{d}x</math> || 导数 || <syntaxhighlight lang="latex" inline>\mathrm{d}x</syntaxhighlight> || || | ||
|} | |} | ||
== 数学结构 == | == 数学结构 == | ||
| 第1,500行: | 第1,537行: | ||
* 一个介绍 TeX 的 PDF 文档(英文):[http://www.ctan.org/tex-archive/info/gentle/gentle.pdf ctan.org: gentle.pdf] | * 一个介绍 TeX 的 PDF 文档(英文):[http://www.ctan.org/tex-archive/info/gentle/gentle.pdf ctan.org: gentle.pdf] | ||
* 完整的参考列表(英文):[http://wso.williams.edu/how/lshort2e/node61.html wso.williams:node61] | * 完整的参考列表(英文):[http://wso.williams.edu/how/lshort2e/node61.html wso.williams:node61] | ||
* https://www.processon.com/latex | |||
=== 附件 === | === 附件 === | ||
{| class="wikitable" | {| class="wikitable" | ||
2025年2月20日 (四) 05:53的最新版本
数学公式
从2003年1月始,Wikipedia开始使用TeX标记来处理数学公式。它会根据用户的设定以及公式的复杂程度,自动生成PNG图像或者简单的HTML标记。
数学记号应该放在<math> ... </math>标记中。关于TeX显示的讨论或者您有任何建议,请到英文Wikipedia的相关页面(直接点击本页左方的链接)。
环境(environment)
| none | 无环境,不进行特殊排版。 | ||
|---|---|---|---|
| array-left | \begin{array}{l} \end{array} |
左对齐的数组环境,用于排版多列内容。 | |
| array-right | \begin{array}{r} \end{array} |
右对齐的数组环境,用于排版多列内容。 | |
| displaylines | \displaylines{ } |
排版多行公式,不支持对齐符号,不编号。 | |
| align | \begin{align} \end{align} |
排版多行公式,支持对齐符号(如等号),自动编号。 | |
| equation | \begin{equation} \end{equation} |
排版单行公式,自动编号。 | |
| gather | 不支持 | \begin{gather} \end{gather} |
排版多行公式,居中对齐,不支持对齐符号。 |
| cases | \begin{cases} \end{cases} |
排版分段函数,条件与表达式自动对齐。 | |
| matrix | \begin{matrix} \end{matrix} |
无边框的矩阵环境。 | |
| pmatrix | \begin{pmatrix} \end{pmatrix} |
带圆括号的矩阵环境。 | |
| bmatrix | \begin{bmatrix} \end{bmatrix} |
带方括号的矩阵环境。 | |
| vmatrix | \begin{vmatrix} \end{vmatrix} |
带单竖线的矩阵环境。 | |
| Vmatrix | \begin{Vmatrix} \end{Vmatrix} |
带双竖线的矩阵环境。 | |
| split | 不支持 |
绘图
运算
| 符号 | 名称 | |
|---|---|---|
| 加法 | +
| |
| 减法 | -
| |
| 加减 | \pm
| |
| 减加 | \mp
| |
| 乘法 | \times
| |
| 点乘 | \cdot
| |
| 星乘 | \ast
| |
| 除法 | \div
| |
| 斜除 | /
| |
| 绝对值 | \mid a \mid
|
根号
| 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|
| \sqrt{x} | \sqrt[n]{x} |
分式
| 符号 | 名称 | |
|---|---|---|
| 分式 | \frac{a}{b}
| |
| 分式 | {a} \over {b}
| |
| 小型分数 | \tfrac{a}{b}
| |
| 大型分数(嵌套) | \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a
| |
| 大型分数(不嵌套) | \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a
|
大型运算
求和
| 符号 | 名称 | |
|---|---|---|
| 求和 | \sum
| |
| 求和 | \sum_{y}^{x}
| |
| 求和 | p = \sum\limits_{n=1}^{N} a_n
| |
| 求和 | p = \sum\nolimits_{n=1}^N a_n
|
连乘
| 符号 | 名称 | |
|---|---|---|
| 连乘 | \prod_{i=1}^{n}
| |
| 连乘 | \coprod_{i=1}^{n}
| |
| 连乘 | \prod \limits_{i=0}^n
|
开方
| 符号 | 名称 | |
|---|---|---|
| 开方 | \sqrt{x}
| |
| 开n次方 | \sqrt[n]{x}
|
其他
| 符号 | 名称 | |
|---|---|---|
\bigcup_{y}^{x}
| ||
\bigcap_{y}^{x}
| ||
\bigvee_{y}^{x}
| ||
\bigwedge_{y}^{x}
|
=
集合
| 符号 | 名称 | |
|---|---|---|
| 任意 | \forall
| |
| 任意 | \exists
| |
| 属于 | \in
| |
| 属于 | \ni
| |
| 不属于 | \notin
| |
| 不属于 | \not\in
| |
| 子集 | \subset
| |
| 子集 | \supset
| |
| 真子集 | \subseteq
| |
| 真子集 | \supseteq
| |
| 非真子集 | \subsetneq
| |
| 非真子集 | \supsetneq
| |
| 非子集 | \not\subset
| |
| 非子集 | \not\supset
| |
\sqsupset
| ||
\sqsupseteq
| ||
\sqsubset
| ||
\sqsubseteq
| ||
\sqcup
| ||
| 并集 | \cup
| |
| 交集 | \cap
| |
\Cup
| ||
\Cap
| ||
\bigcup
| ||
\bigcap
| ||
\biguplus
| ||
\bigsqcup
| ||
| 差集 | \setminus
| |
| 同或 | \bigodot
| |
| 同与 | \bigotimes
| |
| 实数集合 | \mathbb{R}
| |
| 自然数集合 | \mathbb{z}
| |
| 空集 | \empty
| |
| 空集 | \emptyset
| |
| 空集 | \varnothing
|
特殊字符
| 符号 | 名称 | |
|---|---|---|
| 省略号 | \cdots
| |
| 竖省略号 | \vdots
| |
| 斜省略号 | \ddots
| |
| 无限 | \infty
| |
\nabla
| ||
| 反斜线 | ||
\cancel{xyz}
|
角、度与垂直
| 符号 | 名称 | |
|---|---|---|
| 角 | \angle
| |
| 角度 | ^{\circ}
| |
| 角分 | ^{\prime}
| |
| 垂直 | \bot
|
标准数学函数
函数
| 符号 | 名称 | 示例 | |
|---|---|---|---|
\max |
|||
\min |
|||
\ln |
|||
\operatorname{sh} |
|||
\operatorname{argsh} |
|||
\operatorname{ch} |
|||
\operatorname{argch} |
|||
\operatorname{th} |
|||
\operatorname{argth} |
|||
\Pr |
|||
\lim |
|||
\limsup |
|||
\liminf |
|||
\gcd |
|||
\dim |
|||
\sup |
|||
\lg |
|||
\log |
、 | ||
\det |
|||
\deg |
|||
\inf |
|||
\ker |
|||
\arg |
|||
\exp |
|||
\hom |
三角函数
| 符号 | 名称 | 示例 | |
|---|---|---|---|
\sin |
|||
\sec |
|||
\cot |
|||
\tan |
|||
\cos |
|||
\csc |
| 符号 | 名称 | 示例 | |
|---|---|---|---|
\arcsin |
|||
\arcsec |
|||
\arccot |
|||
\arctan |
|||
\arccos |
|||
\arccsc |
双曲三角函数
| 符号 | 名称 | 示例 | |
|---|---|---|---|
\sinh |
|||
| 不支持 | \sech |
||
\coth |
|||
\tanh |
|||
| 不支持 | \csch |
||
\cosh |
| 符号 | 名称 | 示例 | |
|---|---|---|---|
\sinh^{ -1 } |
|||
| 不支持 | \sech^{ -1 } |
||
\coth^{ -1 } |
|||
\tanh^{ -1 } |
|||
| 不支持 | \csch^{ -1 } |
||
\cosh^{ -1 } |
| 符号 | 名称 | 示例 | |
|---|---|---|---|
| 不支持 | \arcsinh |
||
| 不支持 | \arcsech |
||
| 不支持 | \arccoth |
||
| 不支持 | \arctanh |
||
| 不支持 | \arccosh |
||
| 不支持 | \arccsch |
占位符(空格)
注意TeX能够自动处理大多数的空格,但是您有时候需要自己来控制。
| 符号 | 名称 | 宽度 | |
|---|---|---|---|
| quad空格 | a \quad b |
||
| 两个quad空格 | a \qquad b |
||
| 大空格 | a\ b |
||
| 中等空格 | a\;b |
||
| 小空格 | a\,b |
||
| 没有空格 | ab |
||
| 紧贴 | a\!b |
缩进 |
大字符
| 符号 | 名称 | |
|---|---|---|
()
| ||
\big( \big)
| ||
\Big( \Big)
| ||
\bigg( \bigg)
| ||
\Bigg( \Bigg)
|
等式与不等式
| 符号 | 名称 | |
|---|---|---|
| 等于 | =
| |
| 大于 | >
| |
| 小于 | <
| |
| 大于等于 | \ge
| |
| 大于等于 | \geq
| |
\geqq
| ||
| 小于等于 | \leq
| |
\leqq
| ||
| 不等于 | \ne
| |
| 不等于 | \neq
| |
| 不大于等于 | \ngeq
| |
\not\geq
| ||
| 不小于等于 | \nleq
| |
\not\leq
| ||
| 远大于 | \gg
| |
\ggg
| ||
| 远小于 | \ll
| |
\lll
| ||
| 恒等于 | \dot=
| |
| 恒等于 | \equiv
| |
\not\equiv
| ||
\sim
| ||
| 约等于 | \approx
| |
\simeq
| ||
\cong
| ||
\propto
|
逻辑
| 符号 | 名称 | |
|---|---|---|
| 因为 | \because
| |
| 所以 | \therefore
| |
p
| ||
\bar{q} \to p
| ||
\lnot
| ||
\land
| ||
\lor
| ||
\neg q
| ||
\wedge
| ||
\vee
| ||
\veebar
| ||
\bigwedge
| ||
\bigvee
| ||
\setminus
| ||
\smallsetminus
| ||
\And
|
导数、积分与极限
| 符号 | 名称 | 示例 | ||
|---|---|---|---|---|
| 二重积分 | \iint |
|||
| 三重积分 | \iiint |
|||
| 定积分 | \int_{1}^{2}{4x^2}\mathrm{d}x |
|||
| 不定积分 | \int{4x^2}\mathrm{d}x |
|||
| 曲面积分 | \oint |
|||
\oiint |
||||
\oiiint |
||||
| 偏导数 | \frac{\partial^2 u}{\partial z^2} |
|||
| 极限 | \lim\limits_{x\to\infty} |
|||
| 导数 | \mathrm{d}x |
数学结构
上标
| 符号 | 名称 | |
|---|---|---|
| 角号 | \hat{a}
| |
\widehat{a}
| ||
\overset{\frown}{a}
| ||
| 上划线 | \overline{abc}
| |
\bar{a}
| ||
| 上波浪线 | \tilde{a}
| |
\widetilde{a}
| ||
\acute{a}
| ||
\grave{a}
| ||
\breve{a}
| ||
\check{a}
| ||
| 点 | \dot{a}
| |
| 双点 | \ddot{a}
| |
\overleftarrow{a b}
| ||
\overrightarrow{c d}
|
下标
| 符号 | 名称 | |
|---|---|---|
|
特殊符号(图形)
| 符号 | 名称 | |
|---|---|---|
\S
| ||
\P
| ||
*
| ||
\star
| ||
\wr
| ||
\smile
| ||
\frown
| ||
\triangle
| ||
\Box
| ||
\Diamond
| ||
\diamondsuit
| ||
\heartsuit
| ||
\clubsuit
| ||
\spadesuit
| ||
\Game
| ||
\flat
| ||
\natural
| ||
\sharp
| ||
\%
| ||
\dagger
| ||
\ddagger
|
箭头符号
| 符号 | 名称 | |
|---|---|---|
\leftarrow
| ||
\gets
| ||
\longleftarrow
| ||
\rightarrow
| ||
\to
| ||
\longrightarrow
| ||
\uparrow
| ||
\downarrow
| ||
\updownarrow
| ||
\nearrow
| ||
\searrow
| ||
\swarrow
| ||
\nwarrow
| ||
\leftrightarrow
| ||
\mapsto
| ||
\longmapsto
| ||
\Leftarrow
| ||
\Rightarrow
| ||
\Leftrightarrow
| ||
\Longleftarrow
| ||
\Longrightarrow
| ||
\Longleftrightarrow
| ||
\iff
| ||
\Uparrow
| ||
\Downarrow
| ||
\Updownarrow
| ||
\hookrightarrow
| ||
\hookleftarrow
| ||
\rightharpoonup
| ||
\rightharpoondown
| ||
\leftharpoonup
| ||
\leftharpoondown
| ||
\upharpoonleft
| ||
\upharpoonright
| ||
\downharpoonleft
| ||
\downharpoonright
|
多行公式
cases 环境
| 符号 | 名称 | |
|---|---|---|
\begin{cases}
F_{t1} = \frac{2T_1}{d_1}
\\
F_{r1} = F_{t1}\tan\alpha
\\
F_n = \frac{F_{t1}}{\cos\alpha}
\end{cases} |
矩阵与行列式
| 符号 | 名称 | |
|---|---|---|
\begin{matrix}
x & y
\\
z & v
\end{matrix} | ||
\begin{vmatrix}
x & y
\\
z & v
\end{vmatrix} | ||
\begin{Vmatrix}
x & y
\\
z & v
\end{Vmatrix} | ||
A=\left[
\begin{matrix}
1 &2 &3
\\
2 &2 &3
\\
3 &2 &3
\end{matrix}
\right] | ||
\begin{bmatrix}
0 &\cdots &0
\\
\vdots &\ddots &\vdots
\\
0 &\cdots &0
\end{bmatrix} | ||
\begin{Bmatrix}
x & y
\\
z & v
\end{Bmatrix} | ||
\begin{pmatrix}
x & y
\\
z & v
\end{pmatrix} | ||
\begin{array}{c|lll}
{\downarrow}&{a}&{b}&{c}\\
\hline {R_1}&{c}&{b}&{a}\\
{R_2}&{b}&{c}&{c}\\
\end{array} |
函数、符号及特殊字符
other
| <math>\frac { 7 }{ 22 }</math> | |
| <math>\tfrac { 7 }{ 22 }</math> | |
| <math>\dfrac { 7 }{ 22 }</math> | |
| <math>7/22</math> | |
| <math>7\Big/22</math> | |
| <math>a^{ 2 }</math> | |
| <math>a_{ 5 }</math> | |
| <math>a_{ 5 }^{ 2 }</math> |
同余
| 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|
| \pmod{m} | a \bmod b |
微分
| 语法 | 效果 | 语法 | 效果 | 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|---|---|---|---|
| \nabla | \partial x | dx | \dot x | ||||
| \ddot y | dy/dx | \frac{dy}{dx} | \frac{\partial^2 y}{\partial x_1\,\partial x_2} |
几何符号
| 语法 | 效果 | 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|---|---|
| \diamond | |||||
| \perp | \mid | ||||
| \nmid | \| | 45^\circ |
特殊符号
| 语法 | 效果 | 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|---|---|
| \oplus | \bigoplus | \otimes | |||
| \bullet |
| 语法 | 效果 | 语法 | 效果 | 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|---|---|---|---|
| \triangleleft | \triangleright | ||||||
| \top | \vdash | \vDash | \Vdash | ||||
| \models | \lVert | \rVert |
| 语法 | 效果 | 语法 | 效果 | 语法 | 效果 |
|---|---|---|---|---|---|
| \imath | \hbar | \ell | |||
| \mho | \Finv | \Re | |||
| \Im | \wp | \complement |
上标、下标及积分等
| 功能 | 语法 | 效果 |
|---|---|---|
| 上标 | a^2
|
|
| 下标 | a_2
|
|
| 组合 | a^{2+2}
|
|
a_{i,j}
|
||
| 结合上下标 | x_2^3
|
|
| 前置上下标 | {}_1^2\!X_3^4
|
|
| 导数 (HTML) |
x'
|
|
| 导数 (PNG) |
x^\prime
|
|
| 导数 (错误) |
x\prime
|
|
| 导数点 | \dot{x}
|
|
\ddot{y}
|
||
| 向量 | \vec{c}
|
|
\overleftarrow{a b}
|
||
\overrightarrow{c d}
|
||
\widehat{e f g}
|
||
| 上划线 | \overline{h i j}
|
|
| 下划线 | \underline{k l m}
|
|
| 上括号 | \overbrace{1+2+\cdots+100}
|
|
\begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}
|
||
| 下括号 | \underbrace{a+b+\cdots+z}
|
|
\begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}
|
||
| 求和 | \sum_{k=1}^N k^2
|
|
\begin{matrix} \sum_{k=1}^N k^2 \end{matrix}
|
||
| 求积 | \prod_{i=1}^N x_i
|
|
\begin{matrix} \prod_{i=1}^N x_i \end{matrix}
|
||
| 上积 | \coprod_{i=1}^N x_i
|
|
\begin{matrix} \coprod_{i=1}^N x_i \end{matrix}
|
||
| 极限 | \lim_{n \to \infty}x_n
|
|
\begin{matrix} \lim_{n \to \infty}x_n \end{matrix}
|
||
| 积分 | \int_{-N}^{N} e^x\, dx
|
|
\begin{matrix} \int_{-N}^{N} e^x\, dx \end{matrix}
|
||
| 双重积分 | \iint_{D}^{W} \, dx\,dy
|
|
| 三重积分 | \iiint_{E}^{V} \, dx\,dy\,dz
|
|
| 四重积分 | \iiiint_{F}^{U} \, dx\,dy\,dz\,dt
|
|
| 路径积分 | \oint_{C} x^3\, dx + 4y^2\, dy | |
| 交集 | \bigcap_1^{n} p
|
|
| 并集 | \bigcup_1^{k} p
|
分数及多行显示
| 功能 | 语法 | 效果 |
|---|---|---|
| 分数 | \frac{2}{4}或者{2 \over 4} = 0.5
|
|
| 小型分数 | \begin{matrix} \frac{2}{4} \end{matrix} = 0.5
|
|
| 二项式系数 | {n \choose k}
|
|
| 矩阵 | \begin{pmatrix} x & y \\ z & v \end{pmatrix}
|
|
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix}
|
||
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}
|
||
\begin{vmatrix} x & y \\ z & v \end{vmatrix}
|
||
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}
|
||
\begin{matrix} x & y \\ z & v \end{matrix}
|
||
| 条件定义 | f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}
|
|
| 多行等式 | \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix}
|
|
| 联立方程 | \begin{cases} 3 x + 5 y + z \\ 7 x - 2 y + 4 z \\ -6 x + 3 y + 2 z \end{cases}
|
字母
希腊字母
| \Alpha | \Beta | \Gamma | \Delta | \Epsilon | \Zeta | ||||||
| \Eta | \Theta | \Iota | \Kappa | \Lambda | \Mu | ||||||
| \Nu | \Xi | O1 | O | \Pi | \Rho | \Sigma | |||||
| \Tau | \Upsilon | \Phi | \Chi | \Psi | \Omega | ||||||
| \alpha | \beta | \gamma | \delta | \epsilon | \zeta | ||||||
| \eta | \theta | \iota | \kappa | \lambda | \mu | ||||||
| \nu | \xi | o1 | \pi | \rho | \sigma | ||||||
| \tau | \upsilon | \phi | \chi | \psi | \omega | ||||||
| \varepsilon | \digamma | \vartheta | \varkappa | ||||
| \varpi | \varrho | \varsigma | \varphi | ||||
备注:
- 希腊字母 Ο (Omicron)与拉丁字母 O 外形相同,故直接使用拉丁字母
O和o而不是语法\Omicron和\omicrion显示希腊字母Omicron。 - 斜体小写希腊字母一般用于在方程中显示变量。
希伯来字母
- 语法
\aleph \beth \gimel \daleth- 效果
括号
| 功能 | 语法 | 显示 |
|---|---|---|
| 不好看 | ( \frac{1}{2} ) | |
| 好一点 | \left( \frac{1}{2} \right) |
您可以使用\left和\right来显示不同的括号:
| 功能 | 语法 | 显示 |
|---|---|---|
| 圆括号,小括号 | \left(\frac{a}{b} \right) | |
| 方括号,中括号 | \left[\frac{a}{b} \right] | |
| 花括号,大括号 | \left\{\frac{a}{b} \right\} | |
| 角括号 | \left\langle\frac{a}{b} \right\rangle | |
| 单竖线,绝对值 | \left|\frac{a}{b} \right| | |
| 双竖线,范 | \left\|\frac{a}{b} \right\| | |
| 取整函数 (Floor function) |
\left\lfloor\frac{a}{b} \right\rfloor | |
| 取顶函数 (Ceiling function) |
\left\lceil\frac{c}{d} \right\rceil | |
| 斜线与反斜线 | \left/\frac{a}{b} \right\backslash | |
| 上下箭头 | \left\uparrow\frac{a}{b} \right\downarrow | |
| \left\Uparrow\frac{a}{b} \right\Downarrow | ||
| \left\updownarrow\frac{a}{b} \right\Updownarrow | ||
| 混合括号 | \left [ 0,1 \right ) \left \langle \psi \right | |
|
| 单左括号 | \left \{ \frac{a}{b}\right . | |
| 单右括号 | \left .\frac{a}{b} \right \} |
备注:
- 可以使用
\big, \Big, \bigg, \Bigg控制括号的大小,比如代码\Bigg(\bigg[\Big\{\big\langle \left | \| \frac{a}{b} \| \right |\big\rangle\Big\}\bigg]\Bigg)显示
颜色
- 语法
\{\color{颜色名}表达式}- 例子
{\color{Blue}x^2}+{\color{Brown}2x}-{\color{OliveGreen}1}
x_{1,2}=\frac{-b\pm\sqrt{\color{Red}b^2-4ac}}{2a}
插入书写字体
| 符号 | 名称 | 描述 | |
|---|---|---|---|
\text{康五一} |
插入文本 | ||
| 罗马体 | \mathrm{d} |
使用数字和字母 | |
\rm{m / s^2} |
适用于平级 | ||
| 黑板粗体 | \mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ} |
表示向量或集合的符号 | |
| 正粗体 | \mathbf{0 \ 1 \ 2 \ 3 \ a \ b \ c \ A \ B \ C} |
只能使用拉丁字母和数字 | |
| 斜粗体 | \boldsymbol{0 \ 1 \ 2 \ 3 \ a \ b \ c \ A \ B \ C \alpha \ \beta \ \gamma} |
加粗所有合法的符号 | |
| 斜体 | \mathit{0 \ 1 \ 2 \ 3 \ 4 \ 5 \ 6 \ 7 \ 8 \ 9} |
仅支持数字 | |
| 哥特体 | \mathfrak{0 \ 1 \ 2 \ a \ b \ c} |
数字和字母 | |
| 手写体 | \mathcal{A \ B \ C \ D \ E \ F} |
仅支持大写字母 |
外部链接
- 一个介绍 TeX 的 PDF 文档(英文):ctan.org: gentle.pdf
- 完整的参考列表(英文):wso.williams:node61
- https://www.processon.com/latex
附件
| File:ctan-org-gentle.pdf |