帮助:数学公式

本页使用了标题或全文手工转换,现处于中国大陆简体模式
帮助页面

这里所使用的LaTeX版本是AMS-LaTeX标记的一个子集,LaTeX标记的一个超集,用于数学公式。只有TeX语言的有限的一部分得到支持。[a]

与其他网站使用MediaWiki插件提供MathML不同,本网站采用外挂MathJax的方式实现数学公式。数学记号应该放在<math></math>的标记之间。

函数、符号及特殊字符

声调/变音符号

\dot{a}, \ddot{a}, \acute{a}, \grave{a}
[math]\displaystyle{ \dot{a}, \ddot{a}, \acute{a}, \grave{a} }[/math]
\check{a}, \breve{a}, \tilde{a}, \bar{a}
[math]\displaystyle{ \check{a}, \breve{a}, \tilde{a}, \bar{a} }[/math]
\hat{a}, \widehat{a}, \vec{a}
[math]\displaystyle{ \hat{a}, \widehat{a}, \vec{a} }[/math]

标准函数

\exp_a b = a^b, \exp b = e^b, 10^m
[math]\displaystyle{ \exp_a b = a^b, \exp b = e^b, 10^m }[/math]
\ln c, \lg d = \log e, \log_{10} f
[math]\displaystyle{ \ln c, \lg d = \log e, \log_{10} f }[/math]
\sin a, \cos b, \tan c, \cot d, \sec e, \csc f
[math]\displaystyle{ \sin a, \cos b, \tan c, \cot d, \sec e, \csc f }[/math]
\arcsin a, \arccos b, \arctan c
[math]\displaystyle{ \arcsin a, \arccos b, \arctan c }[/math]
\arccot d, \arcsec e, \arccsc f
[math]\displaystyle{ \arccot d, \arcsec e, \arccsc f }[/math]
\sinh a, \cosh b, \tanh c, \coth d
[math]\displaystyle{ \sinh a, \cosh b, \tanh c, \coth d }[/math]
\operatorname{sh}k, \operatorname{ch}l, \operatorname{th}m, \operatorname{coth}n
[math]\displaystyle{ \operatorname{sh}k, \operatorname{ch}l, \operatorname{th}m, \operatorname{coth}n }[/math]
\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q
[math]\displaystyle{ \operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q }[/math]
\sgn r, \left\vert s \right\vert
[math]\displaystyle{ \sgn r, \left\vert s \right\vert }[/math]
\min(x,y), \max(x,y)
[math]\displaystyle{ \min(x,y), \max(x,y) }[/math]

界限

\min x, \max y, \inf s, \sup t
[math]\displaystyle{ \min x, \max y, \inf s, \sup t }[/math]
\lim u, \liminf v, \limsup w
[math]\displaystyle{ \lim u, \liminf v, \limsup w }[/math]
\dim p, \deg q, \det m, \ker\phi
[math]\displaystyle{ \dim p, \deg q, \det m, \ker\phi }[/math]

投射

\Pr j, \hom l, \lVert z \rVert, \arg z
[math]\displaystyle{ \Pr j, \hom l, \lVert z \rVert, \arg z }[/math]

微分及导数

dt, \mathrm{d}t, \partial t, \nabla\psi
[math]\displaystyle{ dt, \mathrm{d}t, \partial t, \nabla\psi }[/math]
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
[math]\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 }[/math]
\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y
[math]\displaystyle{ \prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y }[/math]

类字母符号及常数

\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar
[math]\displaystyle{ \infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar }[/math]
\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS, \S, \P, \AA
[math]\displaystyle{ \Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS, \S, \P, \AA }[/math]

模算数

s_k \equiv 0 \pmod{m}
[math]\displaystyle{ s_k \equiv 0 \pmod{m} }[/math]
a \bmod b
[math]\displaystyle{ a \bmod b }[/math]
\gcd(m, n), \operatorname{lcm}(m, n)
[math]\displaystyle{ \gcd(m, n), \operatorname{lcm}(m, n) }[/math]
\mid, \nmid, \shortmid, \nshortmid
[math]\displaystyle{ \mid, \nmid, \shortmid, \nshortmid }[/math]

根号

\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{\frac{x^3+y^3}{2}}
[math]\displaystyle{ \surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{\frac{x^3+y^3}{2}} }[/math]

运算符

+, -, \pm, \mp, \dotplus
[math]\displaystyle{ +, -, \pm, \mp, \dotplus }[/math]
\times, \div, \divideontimes, /, \backslash
[math]\displaystyle{ \times, \div, \divideontimes, /, \backslash }[/math]
\cdot, * \ast, \star, \circ, \bullet
[math]\displaystyle{ \cdot, * \ast, \star, \circ, \bullet }[/math]
\boxplus, \boxminus, \boxtimes, \boxdot
[math]\displaystyle{ \boxplus, \boxminus, \boxtimes, \boxdot }[/math]
\oplus, \ominus, \otimes, \oslash, \odot
[math]\displaystyle{ \oplus, \ominus, \otimes, \oslash, \odot }[/math]
\circleddash, \circledcirc, \circledast
[math]\displaystyle{ \circleddash, \circledcirc, \circledast }[/math]
\bigoplus, \bigotimes, \bigodot
[math]\displaystyle{ \bigoplus, \bigotimes, \bigodot }[/math]

集合

\{ \}, \O \empty \emptyset, \varnothing
[math]\displaystyle{ \{ \}, \O \empty \emptyset, \varnothing }[/math]
\in, \notin \not\in, \ni, \not\ni
[math]\displaystyle{ \in, \notin \not\in, \ni, \not\ni }[/math]
\cap, \Cap, \sqcap, \bigcap
[math]\displaystyle{ \cap, \Cap, \sqcap, \bigcap }[/math]
\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus
[math]\displaystyle{ \cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus }[/math]
\setminus, \smallsetminus, \times
[math]\displaystyle{ \setminus, \smallsetminus, \times }[/math]
\subset, \Subset, \sqsubset
[math]\displaystyle{ \subset, \Subset, \sqsubset }[/math]
\supset, \Supset, \sqsupset
[math]\displaystyle{ \supset, \Supset, \sqsupset }[/math]
\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq
[math]\displaystyle{ \subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq }[/math]
\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq
[math]\displaystyle{ \supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq }[/math]
\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq
[math]\displaystyle{ \subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq }[/math]
\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq
[math]\displaystyle{ \supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq }[/math]

关系符号

=, \ne, \neq, \equiv, \not\equiv
[math]\displaystyle{ =, \ne, \neq, \equiv, \not\equiv }[/math]
\doteq, \doteqdot,
\overset{\underset{\mathrm{def}}{}}{=},
:=
[math]\displaystyle{ \doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, := }[/math]
\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong
[math]\displaystyle{ \sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong }[/math]
\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto
[math]\displaystyle{ \approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto }[/math]
<, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot
[math]\displaystyle{ \lt , \nless, \ll, \not\ll, \lll, \not\lll, \lessdot }[/math]
>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot
[math]\displaystyle{ \gt , \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot }[/math]
\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq
[math]\displaystyle{ \le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq }[/math]
\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq
[math]\displaystyle{ \ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq }[/math]
\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless
[math]\displaystyle{ \lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless }[/math]
\leqslant, \nleqslant, \eqslantless
[math]\displaystyle{ \leqslant, \nleqslant, \eqslantless }[/math]
\geqslant, \ngeqslant, \eqslantgtr
[math]\displaystyle{ \geqslant, \ngeqslant, \eqslantgtr }[/math]
\lesssim, \lnsim, \lessapprox, \lnapprox
[math]\displaystyle{ \lesssim, \lnsim, \lessapprox, \lnapprox }[/math]
\gtrsim, \gnsim, \gtrapprox, \gnapprox
[math]\displaystyle{ \gtrsim, \gnsim, \gtrapprox, \gnapprox }[/math]
\prec, \nprec, \preceq, \npreceq, \precneqq
[math]\displaystyle{ \prec, \nprec, \preceq, \npreceq, \precneqq }[/math]
\succ, \nsucc, \succeq, \nsucceq, \succneqq
[math]\displaystyle{ \succ, \nsucc, \succeq, \nsucceq, \succneqq }[/math]
\preccurlyeq, \curlyeqprec
[math]\displaystyle{ \preccurlyeq, \curlyeqprec }[/math]
\succcurlyeq, \curlyeqsucc
[math]\displaystyle{ \succcurlyeq, \curlyeqsucc }[/math]
\precsim, \precnsim, \precapprox, \precnapprox
[math]\displaystyle{ \precsim, \precnsim, \precapprox, \precnapprox }[/math]
\succsim, \succnsim, \succapprox, \succnapprox
[math]\displaystyle{ \succsim, \succnsim, \succapprox, \succnapprox }[/math]

几何符号

\parallel, \nparallel, \shortparallel, \nshortparallel
[math]\displaystyle{ \parallel, \nparallel, \shortparallel, \nshortparallel }[/math]
\perp, \angle, \sphericalangle, \measuredangle, 45^\circ
[math]\displaystyle{ \perp, \angle, \sphericalangle, \measuredangle, 45^\circ }[/math]
\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar
[math]\displaystyle{ \Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar }[/math]
\bigcirc, \triangle, \bigtriangleup, \bigtriangledown
[math]\displaystyle{ \bigcirc, \triangle, \bigtriangleup, \bigtriangledown }[/math]
\vartriangle, \triangledown
[math]\displaystyle{ \vartriangle, \triangledown }[/math]
\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright
[math]\displaystyle{ \blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright }[/math]

逻辑符号

\forall, \exists, \nexists
[math]\displaystyle{ \forall, \exists, \nexists }[/math]
\therefore, \because, \And
[math]\displaystyle{ \therefore, \because, \And }[/math]
\or \lor \vee, \curlyvee, \bigvee
[math]\displaystyle{ \or, \lor, \vee, \curlyvee, \bigvee }[/math]
\and \land \wedge, \curlywedge, \bigwedge
[math]\displaystyle{ \and, \land, \wedge, \curlywedge, \bigwedge }[/math]
\bar{q}, \bar{abc}, \overline{q}, \overline{abc},

\lnot \neg, \not\operatorname{R}, \bot, \top
[math]\displaystyle{ \bar{q}, \bar{abc}, \overline{q}, \overline{abc}, }[/math]

[math]\displaystyle{ \lnot \neg, \not\operatorname{R}, \bot, \top }[/math]

\vdash \dashv, \vDash, \Vdash, \models
[math]\displaystyle{ \vdash, \dashv, \vDash, \Vdash, \models }[/math]
\Vvdash \nvdash \nVdash \nvDash \nVDash
[math]\displaystyle{ \Vvdash, \nvdash, \nVdash, \nvDash, \nVDash }[/math]
\ulcorner \urcorner \llcorner \lrcorner
[math]\displaystyle{ \ulcorner \urcorner \llcorner \lrcorner }[/math]

箭头

\Rrightarrow, \Lleftarrow
[math]\displaystyle{ \Rrightarrow, \Lleftarrow }[/math]
\Rightarrow, \nRightarrow, \Longrightarrow \implies
[math]\displaystyle{ \Rightarrow, \nRightarrow, \Longrightarrow, \implies }[/math]
\Leftarrow, \nLeftarrow, \Longleftarrow
[math]\displaystyle{ \Leftarrow, \nLeftarrow, \Longleftarrow }[/math]
\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff
[math]\displaystyle{ \Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff }[/math]
\Uparrow, \Downarrow, \Updownarrow
[math]\displaystyle{ \Uparrow, \Downarrow, \Updownarrow }[/math]
\rightarrow \to, \nrightarrow, \longrightarrow
[math]\displaystyle{ \rightarrow \to, \nrightarrow, \longrightarrow }[/math]
\leftarrow \gets, \nleftarrow, \longleftarrow
[math]\displaystyle{ \leftarrow \gets, \nleftarrow, \longleftarrow }[/math]
\leftrightarrow, \nleftrightarrow, \longleftrightarrow
[math]\displaystyle{ \leftrightarrow, \nleftrightarrow, \longleftrightarrow }[/math]
\uparrow, \downarrow, \updownarrow
[math]\displaystyle{ \uparrow, \downarrow, \updownarrow }[/math]
\nearrow, \swarrow, \nwarrow, \searrow
[math]\displaystyle{ \nearrow, \swarrow, \nwarrow, \searrow }[/math]
\mapsto, \longmapsto
[math]\displaystyle{ \mapsto, \longmapsto }[/math]
\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons
[math]\displaystyle{ \rightharpoonup, \rightharpoondown, \leftharpoonup, \leftharpoondown, \upharpoonleft, \upharpoonright, \downharpoonleft, \downharpoonright, \rightleftharpoons, \leftrightharpoons }[/math]
\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright
[math]\displaystyle{ \curvearrowleft, \circlearrowleft, \Lsh, \upuparrows, \rightrightarrows, \rightleftarrows, \rightarrowtail, \looparrowright }[/math]
\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft
[math]\displaystyle{ \curvearrowright, \circlearrowright, \Rsh, \downdownarrows, \leftleftarrows, \leftrightarrows, \leftarrowtail, \looparrowleft }[/math]
\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow
[math]\displaystyle{ \hookrightarrow, \hookleftarrow, \multimap, \leftrightsquigarrow, \rightsquigarrow, \twoheadrightarrow, \twoheadleftarrow }[/math]

特殊符号

\amalg \P \S \% \dagger \ddagger \ldots \cdots
[math]\displaystyle{ \amalg \P \S \% \dagger \ddagger \ldots \cdots }[/math]
\smile \frown \wr \triangleleft \triangleright
[math]\displaystyle{ \smile \frown \wr \triangleleft \triangleright }[/math]
\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp
[math]\displaystyle{ \diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp }[/math]

未排序

\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes
[math]\displaystyle{ \diagup, \diagdown, \centerdot, \ltimes, \rtimes, \leftthreetimes, \rightthreetimes }[/math]
\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq
[math]\displaystyle{ \eqcirc, \circeq, \triangleq, \bumpeq, \Bumpeq, \doteqdot, \risingdotseq, \fallingdotseq }[/math]
\intercal \barwedge \veebar \doublebarwedge \between \pitchfork
[math]\displaystyle{ \intercal, \barwedge, \veebar, \doublebarwedge, \between, \pitchfork }[/math]
\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright
[math]\displaystyle{ \vartriangleleft, \ntriangleleft, \vartriangleright, \ntriangleright }[/math]
\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq
[math]\displaystyle{ \trianglelefteq, \ntrianglelefteq, \trianglerighteq, \ntrianglerighteq }[/math]
\not6, \frac{1\not6}{\not64}=\frac{1}{4}
[math]\displaystyle{ \not6, \frac{1\not6}{\not64}=\frac{1}{4} }[/math]

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

上标、下标及积分

功能 语法 效果
上标 a^2 [math]\displaystyle{ a^2 }[/math]
下标 a_2 [math]\displaystyle{ a_2 }[/math]
组合 a^{2+2} [math]\displaystyle{ a^{2+2} }[/math]
a_{i,j} [math]\displaystyle{ a_{i,j} }[/math]
结合上下标 x_2^3 [math]\displaystyle{ x_2^3 }[/math]
前置上下标 {}_1^2\!X_3^4 [math]\displaystyle{ {}_1^2\!X_3^4 }[/math]
上下标错开 {x_1}^2=x_1 \times x_1 [math]\displaystyle{ {x_1}^2=x_1 \times x_1 }[/math]
导数
HTML
x' [math]\displaystyle{ x' }[/math]
导数
PNG
x^\prime [math]\displaystyle{ x^\prime }[/math]
导数
错误
x\prime [math]\displaystyle{ x\prime }[/math]
导数点 \dot{x} [math]\displaystyle{ \dot{x} }[/math]
\ddot{y} [math]\displaystyle{ \ddot{y} }[/math]
向量 \vec{c} [math]\displaystyle{ \vec{c} }[/math]
\overleftarrow{a b} [math]\displaystyle{ \overleftarrow{a b} }[/math]
\overrightarrow{c d} [math]\displaystyle{ \overrightarrow{c d} }[/math]
\overleftrightarrow{a b} [math]\displaystyle{ \overleftrightarrow{a b} }[/math]
\widehat{e f g} [math]\displaystyle{ \widehat{e f g} }[/math]
上弧
(注: 正确应该用 \overarc,但在这里行不通。要用建议的语法作为解决办法。)(使用\overarc时需要引入{arcs}包。)
\overset{\frown} {AB} [math]\displaystyle{ \overset{\frown} {AB} }[/math]
上划线 \overline{h i j} [math]\displaystyle{ \overline{h i j} }[/math]
下划线 \underline{k l m} [math]\displaystyle{ \underline{k l m} }[/math]
上括号 \overbrace{1+2+\cdots+100} [math]\displaystyle{ \overbrace{1+2+\cdots+100} }[/math]
\overbrace{ 1+2+\cdots+100 }^{5050} [math]\displaystyle{ \overbrace{ 1+2+\cdots+100 }^{5050} }[/math]
下括号 \underbrace{a+b+\cdots+z} [math]\displaystyle{ \underbrace{a+b+\cdots+z} }[/math]
\underbrace{ a+b+\cdots+z }_{26} [math]\displaystyle{ \underbrace{ a+b+\cdots+z }_{26} }[/math]
求和 \sum_{k=1}^N k^2 [math]\displaystyle{ \sum_{k=1}^N k^2 }[/math]
\begin{matrix} \sum_{k=1}^N k^2 \end{matrix} [math]\displaystyle{ \begin{matrix} \sum_{k=1}^N k^2 \end{matrix} }[/math]
求积 \prod_{i=1}^N x_i [math]\displaystyle{ \prod_{i=1}^N x_i }[/math]
\begin{matrix} \prod_{i=1}^N x_i \end{matrix} [math]\displaystyle{ \begin{matrix} \prod_{i=1}^N x_i \end{matrix} }[/math]
上积 \coprod_{i=1}^N x_i [math]\displaystyle{ \coprod_{i=1}^N x_i }[/math]
\begin{matrix} \coprod_{i=1}^N x_i \end{matrix} [math]\displaystyle{ \begin{matrix} \coprod_{i=1}^N x_i \end{matrix} }[/math]
极限 \lim_{n \to \infty}x_n [math]\displaystyle{ \lim_{n \to \infty}x_n }[/math]
\begin{matrix} \lim_{n \to \infty}x_n \end{matrix} [math]\displaystyle{ \begin{matrix} \lim_{n \to \infty}x_n \end{matrix} }[/math]
积分 \int_{-N}^{N} e^x\, \mathrm{d}x [math]\displaystyle{ \int_{-N}^{N} e^x\, \mathrm{d}x }[/math]
\begin{matrix} \int_{-N}^{N} e^x\, \mathrm{d}x \end{matrix} [math]\displaystyle{ \begin{matrix} \int_{-N}^{N} e^x\, \mathrm{d}x \end{matrix} }[/math]
双重积分 \iint_{D}^{W} \, \mathrm{d}x\,\mathrm{d}y [math]\displaystyle{ \iint_{D}^{W} \, \mathrm{d}x\,\mathrm{d}y }[/math]
三重积分 \iiint_{E}^{V} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z [math]\displaystyle{ \iiint_{E}^{V} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z }[/math]
四重积分 \iiiint_{F}^{U} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z\,\mathrm{d}t [math]\displaystyle{ \iiiint_{F}^{U} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z\,\mathrm{d}t }[/math]
闭合的曲线积分曲面积分 \oint_{C} x^3\, \mathrm{d}x + 4y^2\, \mathrm{d}y [math]\displaystyle{ \oint_{C} x^3\, \mathrm{d}x + 4y^2\, \mathrm{d}y }[/math]
顺时针的闭合曲线积分曲面积分 \varointclockwise_{C} 7^x\, \mathrm{d}x + e^y\, \mathrm{d}y [math]\displaystyle{ \varointclockwise_{C} 7^x\, \mathrm{d}x + e^y\, \mathrm{d}y }[/math]
逆时针的闭合曲线积分曲面积分 \ointctrclockwise_{C} 7^x\, \mathrm{d}x + e^y\, \mathrm{d}y [math]\displaystyle{ \ointctrclockwise_{C} 7^x\, \mathrm{d}x + e^y\, \mathrm{d}y }[/math]
闭合面积分 \oiint_{S} \,f\mathrm{d}A [math]\displaystyle{ \oiint_{S} 7^x\,f\mathrm{d}A }[/math]
闭合体积分 \oiiint_{E}\,f\mathrm{d}V [math]\displaystyle{ \oiiint_{E} 7^x\,f\mathrm{d}V }[/math]
交集 \bigcap_1^{n} p [math]\displaystyle{ \bigcap_1^{n} p }[/math]
并集 \bigcup_1^{k} p [math]\displaystyle{ \bigcup_1^{k} p }[/math]

分数矩阵和多行列式

功能 语法 效果
分数 \frac{2}{4}=0.5 [math]\displaystyle{ \frac{2}{4}=0.5 }[/math]
{2 \over 3} [math]\displaystyle{ {2 \over 3} }[/math]
{{a+b} \over {a-b}} [math]\displaystyle{ {{a+b} \over {a-b}} }[/math]
小型分数 \tfrac{2}{4} = 0.5 [math]\displaystyle{ \tfrac{2}{4} = 0.5 }[/math]
大型分数(嵌套) \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a [math]\displaystyle{ \cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a }[/math]
大型分数(不嵌套) \dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a [math]\displaystyle{ \dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a }[/math]
二项式系数 \dbinom{n}{r}=\binom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} [math]\displaystyle{ \dbinom{n}{r}=\binom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} }[/math]
n \choose n-r, n^2 \choose r_1, a-b \choose c+d, {n \choose 0}+{n \choose 1} [math]\displaystyle{ n \choose n-r }[/math] [math]\displaystyle{ n^2 \choose r_1 }[/math] [math]\displaystyle{ a-b \choose c+d }[/math] [math]\displaystyle{ {n \choose 0}+{n \choose 1} }[/math]
小型二项式系数 \tbinom{n}{r}=\tbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} [math]\displaystyle{ \tbinom{n}{r}=\tbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} }[/math]
大型二项式系数 \binom{n}{r}=\dbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} [math]\displaystyle{ \binom{n}{r}=\dbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r} }[/math]
矩阵
\begin{matrix}
x & y \\
z & v
\end{matrix}
[math]\displaystyle{ \begin{matrix} x & y \\ z & v \end{matrix} }[/math]
\begin{vmatrix}
x & y \\
z & v
\end{vmatrix}
[math]\displaystyle{ \begin{vmatrix} x & y \\ z & v \end{vmatrix} }[/math]
\begin{Vmatrix}
x & y \\
z & v
\end{Vmatrix}
[math]\displaystyle{ \begin{Vmatrix} x & y \\ z & v \end{Vmatrix} }[/math]
\begin{bmatrix}
0      & \cdots & 0      \\
\vdots & \ddots & \vdots \\
0      & \cdots & 0
\end{bmatrix}
[math]\displaystyle{ \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix} }[/math]
\begin{Bmatrix}
x & y \\
z & v
\end{Bmatrix}
[math]\displaystyle{ \begin{Bmatrix} x & y \\ z & v \end{Bmatrix} }[/math]
\begin{pmatrix}
x & y \\
z & v
\end{pmatrix}
[math]\displaystyle{ \begin{pmatrix} x & y \\ z & v \end{pmatrix} }[/math]
\bigl( \begin{smallmatrix}
a&b\\ c&d
\end{smallmatrix} \bigr)
[math]\displaystyle{ \bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr) }[/math]
条件定义
f(n) =
\begin{cases} 
n/2,  & \mbox{if }n\mbox{ is even} \\
3n+1, & \mbox{if }n\mbox{ is odd}
\end{cases}
[math]\displaystyle{ f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} }[/math]
多行等式、同余式
\begin{align}
f(x) & = (m+n)^2 \\
& = m^2+2mn+n^2 \\
\end{align}
[math]\displaystyle{ \begin{align} f(x) & = (m+n)^2 \\ & = m^2+2mn+n^2 \\ \end{align} }[/math]
\begin{align}
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{align}
[math]\displaystyle{ \begin{align} 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{align} }[/math]
\begin{alignat}{3}
f(x) & = (m-n)^2 \\
f(x) & = (-m+n)^2 \\
& = m^2-2mn+n^2 \\
\end{alignat}
[math]\displaystyle{ \begin{alignat}{3} f(x) & = (m-n)^2 \\ f(x) & = (-m+n)^2 \\ & = m^2-2mn+n^2 \\ \end{alignat} }[/math]
多行等式(左对齐)
\begin{array}{lcl}
z        & = & a \\
f(x,y,z) & = & x + y + z 
\end{array}
[math]\displaystyle{ \begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array} }[/math]
多行等式(右对齐)
\begin{array}{lcr}
z        & = & a \\
f(x,y,z) & = & x + y + z    
\end{array}
[math]\displaystyle{ \begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array} }[/math]
长公式换行
<math>f(x) \,\!</math>
<math>= \sum_{n=0}^\infty a_n x^n </math>
<math>= a_0+a_1x+a_2x^2+\cdots</math>

[math]\displaystyle{ f(x) \,\! }[/math][math]\displaystyle{ = \sum_{n=0}^\infty a_n x^n }[/math][math]\displaystyle{ = a_0 +a_1x+a_2x^2+\cdots }[/math]

方程组
\begin{cases}
3x + 5y +  z \\
7x - 2y + 4z \\
-6x + 3y + 2z
\end{cases}
[math]\displaystyle{ \begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases} }[/math]
数组
\begin{array}{|c|c||c|} a & b & S \\
\hline
0&0&1\\
0&1&1\\
1&0&1\\
1&1&0\\
\end{array}
[math]\displaystyle{ \begin{array}{|c|c||c|} a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array} }[/math]

字体

希腊字母
\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta
[math]\displaystyle{ \Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta }[/math]
\Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi
[math]\displaystyle{ \Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi }[/math]
\Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega
[math]\displaystyle{ \Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega }[/math]
\alpha \beta \gamma \delta \epsilon \zeta \eta \theta
[math]\displaystyle{ \alpha \beta \gamma \delta \epsilon \zeta \eta \theta }[/math]
\iota \kappa \lambda \mu \nu \xi \omicron \pi
[math]\displaystyle{ \iota \kappa \lambda \mu \nu \xi \omicron \pi }[/math]
\rho \sigma \tau \upsilon \phi \chi \psi \omega
[math]\displaystyle{ \rho \sigma \tau \upsilon \phi \chi \psi \omega }[/math]
\varepsilon \digamma \varkappa \varpi
[math]\displaystyle{ \varepsilon \digamma \varkappa \varpi }[/math]
\varrho \varsigma \vartheta \varphi
[math]\displaystyle{ \varrho \varsigma \vartheta \varphi }[/math]
希伯来符号
\aleph \beth \gimel \daleth
[math]\displaystyle{ \aleph \beth \gimel \daleth }[/math]
黑板报粗体
\mathbb{ABCDEFGHI}
[math]\displaystyle{ \mathbb{ABCDEFGHI} }[/math]
\mathbb{JKLMNOPQR}
[math]\displaystyle{ \mathbb{JKLMNOPQR} }[/math]
\mathbb{STUVWXYZ}
[math]\displaystyle{ \mathbb{STUVWXYZ} }[/math]
粗体
\mathbf{ABCDEFGHI}
[math]\displaystyle{ \mathbf{ABCDEFGHI} }[/math]
\mathbf{JKLMNOPQR}
[math]\displaystyle{ \mathbf{JKLMNOPQR} }[/math]
\mathbf{STUVWXYZ}
[math]\displaystyle{ \mathbf{STUVWXYZ} }[/math]
\mathbf{abcdefghijklm}
[math]\displaystyle{ \mathbf{abcdefghijklm} }[/math]
\mathbf{nopqrstuvwxyz}
[math]\displaystyle{ \mathbf{nopqrstuvwxyz} }[/math]
\mathbf{0123456789}
[math]\displaystyle{ \mathbf{0123456789} }[/math]
粗体希腊字母
\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}
[math]\displaystyle{ \boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} }[/math]
\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}
[math]\displaystyle{ \boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} }[/math]
\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}
[math]\displaystyle{ \boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} }[/math]
\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta}
[math]\displaystyle{ \boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta} }[/math]
\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho}
[math]\displaystyle{ \boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho} }[/math]
\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega}
[math]\displaystyle{ \boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega} }[/math]
\boldsymbol{\varepsilon\digamma\varkappa\varpi}
[math]\displaystyle{ \boldsymbol{\varepsilon\digamma\varkappa\varpi} }[/math]
\boldsymbol{\varrho\varsigma\vartheta\varphi}
[math]\displaystyle{ \boldsymbol{\varrho\varsigma\vartheta\varphi} }[/math]
斜体(拉丁字母默认)
\mathit{0123456789}
[math]\displaystyle{ \mathit{0123456789} }[/math]
斜体希腊字母(小写字母默认)
\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}
[math]\displaystyle{ \mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} }[/math]
\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}
[math]\displaystyle{ \mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} }[/math]
\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}
[math]\displaystyle{ \mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} }[/math]
罗马体
\mathrm{ABCDEFGHI}
[math]\displaystyle{ \mathrm{ABCDEFGHI} }[/math]
\mathrm{JKLMNOPQR}
[math]\displaystyle{ \mathrm{JKLMNOPQR} }[/math]
\mathrm{STUVWXYZ}
[math]\displaystyle{ \mathrm{STUVWXYZ} }[/math]
\mathrm{abcdefghijklm}
[math]\displaystyle{ \mathrm{abcdefghijklm} }[/math]
\mathrm{nopqrstuvwxyz}
[math]\displaystyle{ \mathrm{nopqrstuvwxyz} }[/math]
\mathrm{0123456789}
[math]\displaystyle{ \mathrm{0123456789} }[/math]
无衬线体
\mathsf{ABCDEFGHI}
[math]\displaystyle{ \mathsf{ABCDEFGHI} }[/math]
\mathsf{JKLMNOPQR}
[math]\displaystyle{ \mathsf{JKLMNOPQR} }[/math]
\mathsf{STUVWXYZ}
[math]\displaystyle{ \mathsf{STUVWXYZ} }[/math]
\mathsf{abcdefghijklm}
[math]\displaystyle{ \mathsf{abcdefghijklm} }[/math]
\mathsf{nopqrstuvwxyz}
[math]\displaystyle{ \mathsf{nopqrstuvwxyz} }[/math]
\mathsf{0123456789}
[math]\displaystyle{ \mathsf{0123456789} }[/math]
无衬线体希腊字母(仅大写)
\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta}
[math]\displaystyle{ \mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta} }[/math]
\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho}
[math]\displaystyle{ \mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho} }[/math]
\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}
[math]\displaystyle{ \mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega} }[/math]
手写体/花体
\mathcal{ABCDEFGHI}
[math]\displaystyle{ \mathcal{ABCDEFGHI} }[/math]
\mathcal{JKLMNOPQR}
[math]\displaystyle{ \mathcal{JKLMNOPQR} }[/math]
\mathcal{STUVWXYZ}
[math]\displaystyle{ \mathcal{STUVWXYZ} }[/math]
Fraktur体
\mathfrak{ABCDEFGHI}
[math]\displaystyle{ \mathfrak{ABCDEFGHI} }[/math]
\mathfrak{JKLMNOPQR}
[math]\displaystyle{ \mathfrak{JKLMNOPQR} }[/math]
\mathfrak{STUVWXYZ}
[math]\displaystyle{ \mathfrak{STUVWXYZ} }[/math]
\mathfrak{abcdefghijklm}
[math]\displaystyle{ \mathfrak{abcdefghijklm} }[/math]
\mathfrak{nopqrstuvwxyz}
[math]\displaystyle{ \mathfrak{nopqrstuvwxyz} }[/math]
\mathfrak{0123456789}
[math]\displaystyle{ \mathfrak{0123456789} }[/math]
小型手写体
{\scriptstyle\text{abcdefghijklm}}
[math]\displaystyle{ {\scriptstyle\text{abcdefghijklm}} }[/math]

混合字体

特征 语法 渲染效果
斜体字符(忽略空格)
x y z
[math]\displaystyle{ x y z }[/math]
非斜体字符
\text{x y z}
[math]\displaystyle{ \text{x y z} }[/math]
混合斜体(差)
\text{if} n \text{is even}
[math]\displaystyle{ \text{if} n \text{is even} }[/math]
混合斜体(好)
\text{if }n\text{ is even}
[math]\displaystyle{ \text{if }n\text{ is even} }[/math]
混合斜体( 替代品:~ 或者"\ "强制空格)
\text{if}~n\ \text{is even}
[math]\displaystyle{ \text{if}~n\ \text{is even} }[/math]

括号

功能 语法 显示
短括号 ( \frac{1}{2} ) [math]\displaystyle{ ( \frac{1}{2} ) }[/math]
长括号 \left( \frac{1}{2} \right) [math]\displaystyle{ \left ( \frac{1}{2} \right ) }[/math]

您可以使用 \left\right 来显示不同的括号:

功能 语法 显示
圆括号小括号 \left( \frac{a}{b} \right) [math]\displaystyle{ \left( \frac{a}{b} \right) }[/math]
方括号中括号 \left[ \frac{a}{b} \right] [math]\displaystyle{ \left[ \frac{a}{b} \right] }[/math]
花括号大括号 \left\{ \frac{a}{b} \right\} [math]\displaystyle{ \left\{ \frac{a}{b} \right\} }[/math]
角括号 \left \langle \frac{a}{b} \right \rangle [math]\displaystyle{ \left\langle \frac{a}{b} \right \rangle }[/math]
单竖线绝对值 \left| \frac{a}{b} \right| [math]\displaystyle{ \left| \frac{a}{b} \right| }[/math]
双竖线,范数 \left \| \frac{a}{b} \right \| [math]\displaystyle{ \left \| \frac{a}{b} \right \| }[/math]
高斯符号 \left \lbrack \frac{a}{b} \right \rbrack [math]\displaystyle{ \left \lbrack \frac{a}{b} \right \rbrack }[/math]
取底符号 \left \lfloor \frac{a}{b} \right \rfloor [math]\displaystyle{ \left \lfloor \frac{a}{b} \right \rfloor }[/math]
取顶符号 \left \lceil \frac{c}{d} \right \rceil [math]\displaystyle{ \left \lceil \frac{c}{d} \right \rceil }[/math]
斜线与反斜线 \left / \frac{a}{b} \right \backslash [math]\displaystyle{ \left / \frac{a}{b} \right \backslash }[/math]
上下箭头 \left \uparrow \frac{a}{b} \right \downarrow [math]\displaystyle{ \left \uparrow \frac{a}{b} \right \downarrow }[/math]
\left \Uparrow \frac{a}{b} \right \Downarrow [math]\displaystyle{ \left \Uparrow \frac{a}{b} \right \Downarrow }[/math]
\left \updownarrow \frac{a}{b} \right \Updownarrow [math]\displaystyle{ \left \updownarrow \frac{a}{b} \right \Updownarrow }[/math]
混合括号 \left [ 0,1 \right )
\left \langle \psi \right |
[math]\displaystyle{ \left [ 0,1 \right ) }[/math]
[math]\displaystyle{ \left \langle \psi \right | }[/math]
单左括号 \left \{ \frac{a}{b} \right . [math]\displaystyle{ \left \{ \frac{a}{b} \right . }[/math]
单右括号 \left . \frac{a}{b} \right \} [math]\displaystyle{ \left . \frac{a}{b} \right \} }[/math]

备注:

  • 可以使用 \big, \Big, \bigg, \Bigg 控制括号的大小,比如代码
\Bigg ( \bigg [ \Big \{ \big \langle \left | \| \frac{a}{b} \| \right | \big \rangle \Big \} \bigg ] \Bigg )

 显示︰

[math]\displaystyle{ \Bigg ( \bigg [ \Big \{ \big \langle \left | \| \frac{a}{b} \| \right | \big \rangle \Big \} \bigg ] \Bigg ) }[/math]

空格

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

功能 语法 显示 宽度
2个quad空格 \alpha\qquad\beta [math]\displaystyle{ \alpha\qquad\beta }[/math] [math]\displaystyle{ 2m\ }[/math]
quad空格 \alpha\quad\beta [math]\displaystyle{ \alpha\quad\beta }[/math] [math]\displaystyle{ m\ }[/math]
大空格 \alpha\ \beta [math]\displaystyle{ \alpha\ \beta }[/math] [math]\displaystyle{ \frac{m}{3} }[/math]
中等空格 \alpha\;\beta [math]\displaystyle{ \alpha\;\beta }[/math] [math]\displaystyle{ \frac{2m}{7} }[/math]
小空格 \alpha\,\beta [math]\displaystyle{ \alpha\,\beta }[/math] [math]\displaystyle{ \frac{m}{6} }[/math]
没有空格 \alpha\beta [math]\displaystyle{ \alpha\beta\ }[/math] [math]\displaystyle{ 0\ }[/math]
紧贴 \alpha\!\beta [math]\displaystyle{ \alpha\!\beta }[/math] [math]\displaystyle{ -\frac{m}{6} }[/math]

颜色

语法
  • 字体颜色︰{\color{色调}表达式}
  • 背景颜色︰{\pagecolor{色调}表达式}
支持色调表
Colors supported
[math]\displaystyle{ \color{Apricot}\text{Apricot} }[/math] [math]\displaystyle{ \color{Aquamarine}\text{Aquamarine} }[/math] [math]\displaystyle{ \color{Bittersweet}\text{Bittersweet} }[/math] [math]\displaystyle{ \color{Black}\text{Black} }[/math]
[math]\displaystyle{ \color{Blue}\text{Blue} }[/math] [math]\displaystyle{ \color{BlueGreen}\text{BlueGreen} }[/math] [math]\displaystyle{ \color{BlueViolet}\text{BlueViolet} }[/math] [math]\displaystyle{ \color{BrickRed}\text{BrickRed} }[/math]
[math]\displaystyle{ \color{Brown}\text{Brown} }[/math] [math]\displaystyle{ \color{BurntOrange}\text{BurntOrange} }[/math] [math]\displaystyle{ \color{CadetBlue}\text{CadetBlue} }[/math] [math]\displaystyle{ \color{CarnationPink}\text{CarnationPink} }[/math]
[math]\displaystyle{ \color{Cerulean}\text{Cerulean} }[/math] [math]\displaystyle{ \color{CornflowerBlue}\text{CornflowerBlue} }[/math] [math]\displaystyle{ \color{Cyan}\text{Cyan} }[/math] [math]\displaystyle{ \color{Dandelion}\text{Dandelion} }[/math]
[math]\displaystyle{ \color{DarkOrchid}\text{DarkOrchid} }[/math] [math]\displaystyle{ \color{Emerald}\text{Emerald} }[/math] [math]\displaystyle{ \color{ForestGreen}\text{ForestGreen} }[/math] [math]\displaystyle{ \color{Fuchsia}\text{Fuchsia} }[/math]
[math]\displaystyle{ \color{Goldenrod}\text{Goldenrod} }[/math] [math]\displaystyle{ \color{Gray}\text{Gray} }[/math] [math]\displaystyle{ \color{Green}\text{Green} }[/math] [math]\displaystyle{ \color{GreenYellow}\text{GreenYellow} }[/math]
[math]\displaystyle{ \color{JungleGreen}\text{JungleGreen} }[/math] [math]\displaystyle{ \color{Lavender}\text{Lavender} }[/math] [math]\displaystyle{ \color{LimeGreen}\text{LimeGreen} }[/math] [math]\displaystyle{ \color{Magenta}\text{Magenta} }[/math]
[math]\displaystyle{ \color{Mahogany}\text{Mahogany} }[/math] [math]\displaystyle{ \color{Maroon}\text{Maroon} }[/math] [math]\displaystyle{ \color{Melon}\text{Melon} }[/math] [math]\displaystyle{ \color{MidnightBlue}\text{MidnightBlue} }[/math]
[math]\displaystyle{ \color{Mulberry}\text{Mulberry} }[/math] [math]\displaystyle{ \color{NavyBlue}\text{NavyBlue} }[/math] [math]\displaystyle{ \color{OliveGreen}\text{OliveGreen} }[/math] [math]\displaystyle{ \color{Orange}\text{Orange} }[/math]
[math]\displaystyle{ \color{OrangeRed}\text{OrangeRed} }[/math] [math]\displaystyle{ \color{Orchid}\text{Orchid} }[/math] [math]\displaystyle{ \color{Peach}\text{Peach} }[/math] [math]\displaystyle{ \color{Periwinkle}\text{Periwinkle} }[/math]
[math]\displaystyle{ \color{PineGreen}\text{PineGreen} }[/math] [math]\displaystyle{ \color{Plum}\text{Plum} }[/math] [math]\displaystyle{ \color{ProcessBlue}\text{ProcessBlue} }[/math] [math]\displaystyle{ \color{Purple}\text{Purple} }[/math]
[math]\displaystyle{ \color{RawSienna}\text{RawSienna} }[/math] [math]\displaystyle{ \color{Red}\text{Red} }[/math] [math]\displaystyle{ \color{RedOrange}\text{RedOrange} }[/math] [math]\displaystyle{ \color{RedViolet}\text{RedViolet} }[/math]
[math]\displaystyle{ \color{Rhodamine}\text{Rhodamine} }[/math] [math]\displaystyle{ \color{RoyalBlue}\text{RoyalBlue} }[/math] [math]\displaystyle{ \color{RoyalPurple}\text{RoyalPurple} }[/math] [math]\displaystyle{ \color{RubineRed}\text{RubineRed} }[/math]
[math]\displaystyle{ \color{Salmon}\text{Salmon} }[/math] [math]\displaystyle{ \color{SeaGreen}\text{SeaGreen} }[/math] [math]\displaystyle{ \color{Sepia}\text{Sepia} }[/math] [math]\displaystyle{ \color{SkyBlue}\text{SkyBlue} }[/math]
[math]\displaystyle{ \color{SpringGreen}\text{SpringGreen} }[/math] [math]\displaystyle{ \color{Tan}\text{Tan} }[/math] [math]\displaystyle{ \color{TealBlue}\text{TealBlue} }[/math] [math]\displaystyle{ \color{Thistle}\text{Thistle} }[/math]
[math]\displaystyle{ \color{Turquoise}\text{Turquoise} }[/math] [math]\displaystyle{ \color{Violet}\text{Violet} }[/math] [math]\displaystyle{ \color{VioletRed}\text{VioletRed} }[/math] [math]\displaystyle{ \color{White}\text{White} }[/math]
[math]\displaystyle{ \color{WildStrawberry}\text{WildStrawberry} }[/math] [math]\displaystyle{ \color{Yellow}\text{Yellow} }[/math] [math]\displaystyle{ \color{YellowGreen}\text{YellowGreen} }[/math] [math]\displaystyle{ \color{YellowOrange}\text{YellowOrange} }[/math]

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

例子
  • {\color{Blue}x^2}+{\color{Brown}2x} - {\color{OliveGreen}1}
[math]\displaystyle{ {\color{Blue}x^2}+{\color{Brown}2x} - {\color{OliveGreen}1} }[/math]
  • x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}
[math]\displaystyle{ x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a} }[/math]

小型数学公式

此功能并不常用。

可以使用

   \begin{smallmatrix}...\end{smallmatrix}

或直接使用{{Smallmath}}模板。

   {{Smallmath|f=  f(x)=5+\frac{1}{5} }}

例:

10 的 [math]\displaystyle{ \begin{smallmatrix} f(x)=5+\frac{1}{5} \end{smallmatrix} }[/math] 是 2。

注释

  1. 虽然在所有情况下,TeX是由编译器而不是解释器生成,在高德纳TeX兰波特LaTeX及现有的实现之间存在着一个基本的区别:前两种情况下编译器产生“一体化”的可打印的输出成果,有着拥有全部章节的书籍的质量,没有一行是“特殊的”,现有的实现通常有着用于公式的TeX图像(更准确的说:PNG图像)的混合,嵌入一般的文本中,并含有简短的TeX元素常常被HTML部分取代。作为结果,多数情况下的TeX元素,如向量符号、伸出文本行的下方(或上方)的部分。这个“伸出”的部分不是上文中所提到情况下的原始产物,而且用于小号TeX附件到文本的HTML替代对于许多读者来说常常在质量上是不够充分的。虽然存在这些缺陷,以“最多嵌入的PNG图像”为特性的当前产物应该推荐使用于小号文本,在那里公式不是最主要的。

外部链接