查看“︁帮助:数学公式”︁的源代码
←
帮助:数学公式
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:*、
用户
您可以查看和复制此页面的源代码。
[[MediaWiki]]通过使用{{LaTeX}}的变体和HTML标记的组合来渲染数学公式。 这里所使用的{{LaTeX}}版本是{{Link-en|AMS-LaTeX}}标记的一个子集,{{LaTeX}}标记的一个超集,用于数学公式。只有[[TeX|{{TeX}}]]语言的有限的一部分得到支持<!-- see below for details-->。{{efn|虽然在所有情况下,{{TeX}}是由[[编译器]]而不是解释器生成,在[[高德纳]]的{{TeX}}或[[莱斯利·兰波特|兰波特]]的{{LaTeX}}及现有的实现之间存在着一个基本的区别:前两种情况下编译器产生“一体化”的可打印的输出成果,有着拥有全部章节的书籍的品质,没有一行是“特殊的”,现有的实现通常有着用于公式的{{TeX}}图像(更准确的说:PNG图像)的混合,嵌入一般的文本中,并含有简短的{{TeX}}元素常常被HTML部分取代。作为结果,多数情况下的{{TeX}}元素,如向量符号、伸出文本行的下方(或上方)的部分。这个“伸出”的部分''不是''上文中所提到情况下的原始产物,而且用于小号{{TeX}}附件到文本的HTML替代对于许多读者来说常常在质量上是不够充分的。虽然存在这些缺陷,以“最多嵌入的PNG图像”为特性的当前产物应该推荐使用于小号文本,在那里公式不是最主要的。}} 默认情况下会生成含不可见MathML的SVG图像。更老的[[PNG]]图像可通过[[Help:参数设置|用户设置]]来设置。{{efn|这个会造成的设置垂直对齐时的基线时的一些困难也会成为问题(参阅[[bugzilla:32694|bug 32694]])}}在像[[Firefox]]这样的浏览器上面可以通过安装[https://addons.mozilla.org/firefox/addon/native-mathml 扩展]来使用MathML;详情参阅[[Mw:Extension:Math|mw:Extension:Math]]的扩展主页。[[MathJax]]的客户端不再被支持。 数学记号应该放在<code><nowiki><math></nowiki></code>与<code><nowiki></math></nowiki></code>的标记之间。更详细的内容,或者关于{{TeX}}显示的讨论或者您有任何建议,请到[[w:Help:Displaying a formula|英文维基百科的相关页面]]。 ===函数、符号及特殊字符=== <!-- Eight symbols per line seems to be optimal --> {| class="wikitable" |- !colspan="2"| ====声调/变音符号==== |- | <syntaxhighlight lang="text" enclose="none">\dot{a}, \ddot{a}, \acute{a}, \grave{a}</syntaxhighlight> | <math>\dot{a}, \ddot{a}, \acute{a}, \grave{a}</math> |- | <syntaxhighlight lang="text" enclose="none">\check{a}, \breve{a}, \tilde{a}, \bar{a}</syntaxhighlight> | <math>\check{a}, \breve{a}, \tilde{a}, \bar{a}</math> |- | <syntaxhighlight lang="text" enclose="none">\hat{a}, \widehat{a}, \vec{a}</syntaxhighlight> | <math>\hat{a}, \widehat{a}, \vec{a}</math> |- !colspan="2"| ====标准函数==== |- | <syntaxhighlight lang="text" enclose="none">\exp_a b = a^b, \exp b = e^b, 10^m</syntaxhighlight> | <math>\exp_a b = a^b, \exp b = e^b, 10^m</math> |- | <syntaxhighlight lang="text" enclose="none">\ln c, \lg d = \log e, \log_{10} f</syntaxhighlight> | <math>\ln c, \lg d = \log e, \log_{10} f</math> |- | <syntaxhighlight lang="text" enclose="none">\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</syntaxhighlight> | <math>\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</math> |- | <syntaxhighlight lang="text" enclose="none">\arcsin a, \arccos b, \arctan c</syntaxhighlight> | <math>\arcsin a, \arccos b, \arctan c</math> |- | <syntaxhighlight lang="text" enclose="none">\arccot d, \arcsec e, \arccsc f</syntaxhighlight> | <math>\arccot d, \arcsec e, \arccsc f</math> |- | <syntaxhighlight lang="text" enclose="none">\sinh a, \cosh b, \tanh c, \coth d</syntaxhighlight> | <math>\sinh a, \cosh b, \tanh c, \coth d</math> |- | <syntaxhighlight lang="text" enclose="none">\operatorname{sh}k, \operatorname{ch}l, \operatorname{th}m, \operatorname{coth}n</syntaxhighlight> | <math>\operatorname{sh}k, \operatorname{ch}l, \operatorname{th}m, \operatorname{coth}n</math> |- | <syntaxhighlight lang="text" enclose="none">\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</syntaxhighlight> | <math>\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</math> |- | <syntaxhighlight lang="text" enclose="none">\sgn r, \left\vert s \right\vert</syntaxhighlight> | <math>\sgn r, \left\vert s \right\vert</math> |- | <syntaxhighlight lang="text" enclose="none">\min(x,y), \max(x,y)</syntaxhighlight> | <math>\min(x,y), \max(x,y)</math> |- !colspan="2"| ====界限==== |- | <syntaxhighlight lang="text" enclose="none">\min x, \max y, \inf s, \sup t</syntaxhighlight> | <math>\min x, \max y, \inf s, \sup t</math> |- | <syntaxhighlight lang="text" enclose="none">\lim u, \liminf v, \limsup w</syntaxhighlight> | <math>\lim u, \liminf v, \limsup w</math> |- | <syntaxhighlight lang="text" enclose="none">\dim p, \deg q, \det m, \ker\phi</syntaxhighlight> | <math>\dim p, \deg q, \det m, \ker\phi</math> |- !colspan="2"| ====投射==== |- | <syntaxhighlight lang="text" enclose="none">\Pr j, \hom l, \lVert z \rVert, \arg z</syntaxhighlight> | <math>\Pr j, \hom l, \lVert z \rVert, \arg z</math> |- !colspan="2"| ====微分及导数==== |- | <syntaxhighlight lang="tex" enclose="none">dt, \mathrm{d}t, \partial t, \nabla\psi</syntaxhighlight> | <math>dt, \mathrm{d}t, \partial t, \nabla\psi</math> |- | <syntaxhighlight lang="tex" enclose="none">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</syntaxhighlight> | <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> |- | <syntaxhighlight lang="tex" enclose="none">\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y</syntaxhighlight> | <math>\prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y</math> |- !colspan="2"| ====类字母符号及常数==== |- | <syntaxhighlight lang="text" enclose="none">\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar</syntaxhighlight> | <math>\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar</math> |- | <syntaxhighlight lang="text" enclose="none">\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS, \S, \P, \AA</syntaxhighlight> | <math>\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS, \S, \P, \AA</math> |- !colspan="2"| ====模算数==== |- | <syntaxhighlight lang="text" enclose="none">s_k \equiv 0 \pmod{m}</syntaxhighlight> | <math>s_k \equiv 0 \pmod{m}</math> |- | <syntaxhighlight lang="text" enclose="none">a \bmod b</syntaxhighlight> | <math>a \bmod b</math> |- | <syntaxhighlight lang="text" enclose="none">\gcd(m, n), \operatorname{lcm}(m, n)</syntaxhighlight> | <math>\gcd(m, n), \operatorname{lcm}(m, n)</math> |- | <syntaxhighlight lang="text" enclose="none">\mid, \nmid, \shortmid, \nshortmid</syntaxhighlight> | <math>\mid, \nmid, \shortmid, \nshortmid</math> |- !colspan="2"| ====根号==== |- | <syntaxhighlight lang="text" enclose="none">\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{\frac{x^3+y^3}{2}}</syntaxhighlight> | <math>\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{\frac{x^3+y^3}{2}}</math> |- !colspan="2"| ====运算符==== |- | <syntaxhighlight lang="text" enclose="none">+, -, \pm, \mp, \dotplus</syntaxhighlight> | <math>+, -, \pm, \mp, \dotplus</math> |- | <syntaxhighlight lang="text" enclose="none">\times, \div, \divideontimes, /, \backslash</syntaxhighlight> | <math>\times, \div, \divideontimes, /, \backslash</math> |- | <syntaxhighlight lang="text" enclose="none">\cdot, * \ast, \star, \circ, \bullet</syntaxhighlight> | <math>\cdot, * \ast, \star, \circ, \bullet</math> |- | <syntaxhighlight lang="text" enclose="none">\boxplus, \boxminus, \boxtimes, \boxdot</syntaxhighlight> | <math>\boxplus, \boxminus, \boxtimes, \boxdot</math> |- | <syntaxhighlight lang="text" enclose="none">\oplus, \ominus, \otimes, \oslash, \odot</syntaxhighlight> | <math>\oplus, \ominus, \otimes, \oslash, \odot</math> |- | <syntaxhighlight lang="text" enclose="none">\circleddash, \circledcirc, \circledast</syntaxhighlight> | <math>\circleddash, \circledcirc, \circledast</math> |- | <syntaxhighlight lang="text" enclose="none">\bigoplus, \bigotimes, \bigodot</syntaxhighlight> | <math>\bigoplus, \bigotimes, \bigodot</math> |- !colspan="2"| ====集合==== |- | <syntaxhighlight lang="text" enclose="none">\{ \}, \O \empty \emptyset, \varnothing</syntaxhighlight> | <math>\{ \}, \O \empty \emptyset, \varnothing</math> |- | <syntaxhighlight lang="text" enclose="none">\in, \notin \not\in, \ni, \not\ni</syntaxhighlight> | <math>\in, \notin \not\in, \ni, \not\ni</math> |- | <syntaxhighlight lang="text" enclose="none">\cap, \Cap, \sqcap, \bigcap</syntaxhighlight> | <math>\cap, \Cap, \sqcap, \bigcap</math> |- | <syntaxhighlight lang="text" enclose="none">\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus</syntaxhighlight> | <math>\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus</math> |- | <syntaxhighlight lang="text" enclose="none">\setminus, \smallsetminus, \times</syntaxhighlight> | <math>\setminus, \smallsetminus, \times</math> |- | <syntaxhighlight lang="text" enclose="none">\subset, \Subset, \sqsubset</syntaxhighlight> | <math>\subset, \Subset, \sqsubset</math> |- | <syntaxhighlight lang="text" enclose="none">\supset, \Supset, \sqsupset</syntaxhighlight> | <math>\supset, \Supset, \sqsupset</math> |- | <syntaxhighlight lang="text" enclose="none">\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq</syntaxhighlight> | <math>\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq</math> |- | <syntaxhighlight lang="text" enclose="none">\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq</syntaxhighlight> | <math>\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq</math> |- | <syntaxhighlight lang="text" enclose="none">\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq</syntaxhighlight> | <math>\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq</math> |- | <syntaxhighlight lang="text" enclose="none">\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq</syntaxhighlight> | <math>\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq</math> |- !colspan="2"| ====关系符号==== |- | <syntaxhighlight lang="text" enclose="none">=, \ne, \neq, \equiv, \not\equiv</syntaxhighlight> | <math>=, \ne, \neq, \equiv, \not\equiv</math> |- | <syntaxhighlight lang="text" enclose="none">\doteq, \doteqdot,</syntaxhighlight> <syntaxhighlight lang="text" enclose="none">\overset{\underset{\mathrm{def}}{}}{=},</syntaxhighlight> <syntaxhighlight lang="text" enclose="none">:=</syntaxhighlight> | <math>\doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, :=</math> |- | <syntaxhighlight lang="text" enclose="none">\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong</syntaxhighlight> | <math>\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong</math> |- | <syntaxhighlight lang="text" enclose="none">\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto</syntaxhighlight> | <math>\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto</math> |- | <syntaxhighlight lang="text" enclose="none"><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot</syntaxhighlight> | <math><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot</math> |- | <syntaxhighlight lang="text" enclose="none">>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot</syntaxhighlight> | <math>>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot</math> |- | <syntaxhighlight lang="text" enclose="none">\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq</syntaxhighlight> | <math>\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq</math> |- | <syntaxhighlight lang="text" enclose="none">\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq</syntaxhighlight> | <math>\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq</math> |- | <syntaxhighlight lang="text" enclose="none">\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless</syntaxhighlight> | <math>\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless</math> |- | <syntaxhighlight lang="text" enclose="none">\leqslant, \nleqslant, \eqslantless</syntaxhighlight> | <math>\leqslant, \nleqslant, \eqslantless</math> |- | <syntaxhighlight lang="text" enclose="none">\geqslant, \ngeqslant, \eqslantgtr</syntaxhighlight> | <math>\geqslant, \ngeqslant, \eqslantgtr</math> |- | <syntaxhighlight lang="text" enclose="none">\lesssim, \lnsim, \lessapprox, \lnapprox</syntaxhighlight> | <math>\lesssim, \lnsim, \lessapprox, \lnapprox</math> |- | <syntaxhighlight lang="text" enclose="none">\gtrsim, \gnsim, \gtrapprox, \gnapprox</syntaxhighlight> | <math>\gtrsim, \gnsim, \gtrapprox, \gnapprox</math> |- | <syntaxhighlight lang="text" enclose="none">\prec, \nprec, \preceq, \npreceq, \precneqq</syntaxhighlight> | <math>\prec, \nprec, \preceq, \npreceq, \precneqq</math> |- | <syntaxhighlight lang="text" enclose="none">\succ, \nsucc, \succeq, \nsucceq, \succneqq</syntaxhighlight> | <math>\succ, \nsucc, \succeq, \nsucceq, \succneqq</math> |- | <syntaxhighlight lang="text" enclose="none">\preccurlyeq, \curlyeqprec</syntaxhighlight> | <math>\preccurlyeq, \curlyeqprec</math> |- | <syntaxhighlight lang="text" enclose="none">\succcurlyeq, \curlyeqsucc</syntaxhighlight> | <math>\succcurlyeq, \curlyeqsucc</math> |- | <syntaxhighlight lang="text" enclose="none">\precsim, \precnsim, \precapprox, \precnapprox</syntaxhighlight> | <math>\precsim, \precnsim, \precapprox, \precnapprox</math> |- | <syntaxhighlight lang="text" enclose="none">\succsim, \succnsim, \succapprox, \succnapprox</syntaxhighlight> | <math>\succsim, \succnsim, \succapprox, \succnapprox</math> |- !colspan="2"| ====几何符号==== |- | <syntaxhighlight lang="text" enclose="none">\parallel, \nparallel, \shortparallel, \nshortparallel</syntaxhighlight> | <math>\parallel, \nparallel, \shortparallel, \nshortparallel</math> |- | <syntaxhighlight lang="text" enclose="none">\perp, \angle, \sphericalangle, \measuredangle, 45^\circ</syntaxhighlight> | <math>\perp, \angle, \sphericalangle, \measuredangle, 45^\circ</math> |- | <syntaxhighlight lang="text" enclose="none">\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar</syntaxhighlight> | <math>\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar</math> |- | <syntaxhighlight lang="text" enclose="none">\bigcirc, \triangle, \bigtriangleup, \bigtriangledown</syntaxhighlight> | <math>\bigcirc, \triangle, \bigtriangleup, \bigtriangledown</math> |- | <syntaxhighlight lang="text" enclose="none">\vartriangle, \triangledown</syntaxhighlight> | <math>\vartriangle, \triangledown</math> |- | <syntaxhighlight lang="text" enclose="none">\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright</syntaxhighlight> | <math>\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright</math> |- !colspan="2"| ====逻辑符号==== |- | <syntaxhighlight lang="text" enclose="none">\forall, \exists, \nexists</syntaxhighlight> | <math>\forall, \exists, \nexists</math> |- | <syntaxhighlight lang="text" enclose="none">\therefore, \because, \And</syntaxhighlight> | <math>\therefore, \because, \And</math> |- | <syntaxhighlight lang="text" enclose="none">\or \lor \vee, \curlyvee, \bigvee</syntaxhighlight> | <math>\or, \lor, \vee, \curlyvee, \bigvee</math> |- | <syntaxhighlight lang="text" enclose="none">\and \land \wedge, \curlywedge, \bigwedge</syntaxhighlight> | <math>\and, \land, \wedge, \curlywedge, \bigwedge</math> |- | <syntaxhighlight lang="text" enclose="none">\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, </syntaxhighlight><br/> <syntaxhighlight lang="text" enclose="none">\lnot \neg, \not\operatorname{R}, \bot, \top</syntaxhighlight> | <math>\bar{q}, \bar{abc}, \overline{q}, \overline{abc},</math><br/> <math>\lnot \neg, \not\operatorname{R}, \bot, \top</math> |- | <syntaxhighlight lang="text" enclose="none">\vdash \dashv, \vDash, \Vdash, \models</syntaxhighlight> | <math>\vdash, \dashv, \vDash, \Vdash, \models</math> |- | <syntaxhighlight lang="text" enclose="none">\Vvdash \nvdash \nVdash \nvDash \nVDash</syntaxhighlight> | <math>\Vvdash, \nvdash, \nVdash, \nvDash, \nVDash</math> |- | <syntaxhighlight lang="text" enclose="none">\ulcorner \urcorner \llcorner \lrcorner</syntaxhighlight> | <math>\ulcorner \urcorner \llcorner \lrcorner</math> |- !colspan="2"| ====箭头==== |- | <syntaxhighlight lang="text" enclose="none">\Rrightarrow, \Lleftarrow</syntaxhighlight> | <math>\Rrightarrow, \Lleftarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\Rightarrow, \nRightarrow, \Longrightarrow \implies</syntaxhighlight> | <math>\Rightarrow, \nRightarrow, \Longrightarrow, \implies</math> |- | <syntaxhighlight lang="text" enclose="none">\Leftarrow, \nLeftarrow, \Longleftarrow</syntaxhighlight> | <math>\Leftarrow, \nLeftarrow, \Longleftarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff</syntaxhighlight> | <math>\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff</math> |- | <syntaxhighlight lang="text" enclose="none">\Uparrow, \Downarrow, \Updownarrow</syntaxhighlight> | <math>\Uparrow, \Downarrow, \Updownarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\rightarrow \to, \nrightarrow, \longrightarrow</syntaxhighlight> | <math>\rightarrow \to, \nrightarrow, \longrightarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\leftarrow \gets, \nleftarrow, \longleftarrow</syntaxhighlight> | <math>\leftarrow \gets, \nleftarrow, \longleftarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\leftrightarrow, \nleftrightarrow, \longleftrightarrow</syntaxhighlight> | <math>\leftrightarrow, \nleftrightarrow, \longleftrightarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\uparrow, \downarrow, \updownarrow</syntaxhighlight> | <math>\uparrow, \downarrow, \updownarrow</math> |- | <syntaxhighlight lang="text" enclose="none">\nearrow, \swarrow, \nwarrow, \searrow</syntaxhighlight> | <math>\nearrow, \swarrow, \nwarrow, \searrow</math> |- | <syntaxhighlight lang="text" enclose="none">\mapsto, \longmapsto</syntaxhighlight> | <math>\mapsto, \longmapsto</math> |- | <syntaxhighlight lang="text" enclose="none">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</syntaxhighlight> | <math>\rightharpoonup, \rightharpoondown, \leftharpoonup, \leftharpoondown, \upharpoonleft, \upharpoonright, \downharpoonleft, \downharpoonright, \rightleftharpoons, \leftrightharpoons</math> |- | <syntaxhighlight lang="text" enclose="none">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright</syntaxhighlight> | <math>\curvearrowleft, \circlearrowleft, \Lsh, \upuparrows, \rightrightarrows, \rightleftarrows, \rightarrowtail, \looparrowright</math> |- | <syntaxhighlight lang="text" enclose="none">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft</syntaxhighlight> | <math>\curvearrowright, \circlearrowright, \Rsh, \downdownarrows, \leftleftarrows, \leftrightarrows, \leftarrowtail, \looparrowleft</math> |- | <syntaxhighlight lang="text" enclose="none">\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow</syntaxhighlight> | <math>\hookrightarrow, \hookleftarrow, \multimap, \leftrightsquigarrow, \rightsquigarrow, \twoheadrightarrow, \twoheadleftarrow</math> |- !colspan="2"| ====特殊符号==== |- | <syntaxhighlight lang="text" enclose="none">\amalg \P \S \% \dagger \ddagger \ldots \cdots</syntaxhighlight> | <math>\amalg \P \S \% \dagger \ddagger \ldots \cdots</math> |- | <syntaxhighlight lang="text" enclose="none">\smile \frown \wr \triangleleft \triangleright</syntaxhighlight> | <math>\smile \frown \wr \triangleleft \triangleright</math> |- | <syntaxhighlight lang="text" enclose="none">\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp</syntaxhighlight> | <math>\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp</math> |- !colspan="2"| ====未排序 <!--(new stuff)-->==== |- | <syntaxhighlight lang="text" enclose="none">\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes</syntaxhighlight> | <math>\diagup, \diagdown, \centerdot, \ltimes, \rtimes, \leftthreetimes, \rightthreetimes</math> |- | <syntaxhighlight lang="text" enclose="none">\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq</syntaxhighlight> | <math>\eqcirc, \circeq, \triangleq, \bumpeq, \Bumpeq, \doteqdot, \risingdotseq, \fallingdotseq</math> |- | <syntaxhighlight lang="text" enclose="none">\intercal \barwedge \veebar \doublebarwedge \between \pitchfork</syntaxhighlight> | <math>\intercal, \barwedge, \veebar, \doublebarwedge, \between, \pitchfork</math> |- | <syntaxhighlight lang="text" enclose="none">\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright</syntaxhighlight> | <math>\vartriangleleft, \ntriangleleft, \vartriangleright, \ntriangleright</math> |- | <syntaxhighlight lang="text" enclose="none">\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq</syntaxhighlight> | <math>\trianglelefteq, \ntrianglelefteq, \trianglerighteq, \ntrianglerighteq</math> |} 关于这些符号的更多语义,参阅[https://web.archive.org/web/20160305074303/https://www.math.upenn.edu/tex-stuff/cookbook.pdf TeX Cookbook]的简述。 ==上标、下标及[[积分]]等== {| class="wikitable" |- !功能 !语法 !效果 |- |上标||<code>a^2</code>||<math> a^2</math> |- |下标||<code>a_2</code>||<math> a_2</math> |- |rowspan="2"|组合||<code>a^{2+2}</code>||<math> a^{2+2}</math> |- |<code>a_{i,j}</code>||<math> a_{i,j}</math> |- |结合上下标||<code>x_2^3</code>||<math> x_2^3</math> |- |前置上下标||<code>{}_1^2\!X_3^4</code>||<math> {}_1^2\!X_3^4</math> |- |[[导数]]<br/>('''HTML''')||<code>x'</code>||<math> x'</math> |- |导数<br/>('''PNG''')||<code>x^\prime</code>||<math> x^\prime</math> |- |导数<br/>('''错误''')||<code>x\prime</code>||<math> x\prime</math> |- |rowspan="2"|导数点 |<code>\dot{x}</code> |<math> \dot{x}</math> |- |<code>\ddot{y}</code> |<math> \ddot{y}</math> |- |rowspan="5"|[[向量]] |<code>\vec{c}</code> |<math> \vec{c}</math> |- |<code>\overleftarrow{a b}</code> |<math> \overleftarrow{a b}</math> |- |<code>\overrightarrow{c d}</code> |<math> \overrightarrow{c d}</math> |- |<code>\overleftrightarrow{a b}</code> |<math> \overleftrightarrow{a b}</math> |- |<code>\widehat{e f g}</code> |<math> \widehat{e f g}</math> |- |上弧<br />(註: 正確應該用 \overarc,但在這裡行不通。要用建議的語法作為解決辦法。)(使用\overarc時需要引入{arcs}套件。) |<code>\overset{\frown} {AB}</code> |<math> \overset{\frown} {AB}</math> |- |上划线 |<code>\overline{h i j}</code> |<math> \overline{h i j}</math> |- |下划线 |<code>\underline{k l m}</code> |<math> \underline{k l m}</math> |- |rowspan="2"|上括号 |<code>\overbrace{1+2+\cdots+100}</code> |<math> \overbrace{1+2+\cdots+100}</math> |- |<code>\begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}</code> |<math> \begin{matrix} 5050 \\ \overbrace{ 1+2+\cdots+100 } \end{matrix}</math> |- |rowspan="2"|下括号 |<code>\underbrace{a+b+\cdots+z}</code> |<math> \underbrace{a+b+\cdots+z}</math> |- |<code>\begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}</code> |<math> \begin{matrix} \underbrace{ a+b+\cdots+z } \\ 26 \end{matrix}</math> |- |rowspan="2"|求和 |<code>\sum_{k=1}^N k^2</code>||<math> \sum_{k=1}^N k^2</math> |- |<code>\begin{matrix} \sum_{k=1}^N k^2 \end{matrix}</code>||<math> \begin{matrix} \sum_{k=1}^N k^2 \end{matrix}</math> |- |rowspan="2"|求积 |<code>\prod_{i=1}^N x_i</code>||<math> \prod_{i=1}^N x_i</math> |- |<code>\begin{matrix} \prod_{i=1}^N x_i \end{matrix}</code>||<math> \begin{matrix} \prod_{i=1}^N x_i \end{matrix}</math> |- |rowspan="2"|上积||<code>\coprod_{i=1}^N x_i</code>||<math> \coprod_{i=1}^N x_i</math> |- |<code>\begin{matrix} \coprod_{i=1}^N x_i \end{matrix}</code>||<math> \begin{matrix} \coprod_{i=1}^N x_i \end{matrix}</math> |- |rowspan="2"|[[极限 (数学)|极限]]||<code>\lim_{n \to \infty}x_n</code>||<math> \lim_{n \to \infty}x_n</math> |- |<code>\begin{matrix} \lim_{n \to \infty}x_n \end{matrix}</code>||<math> \begin{matrix} \lim_{n \to \infty}x_n \end{matrix}</math> |-- |rowspan="2"|[[积分]]||<code>\int_{-N}^{N} e^x\, \mathrm{d}x</code>||<math> \int_{-N}^{N} e^x\, \mathrm{d}x</math> |-- |<code>\begin{matrix} \int_{-N}^{N} e^x\, \mathrm{d}x \end{matrix}</code>||<math> \begin{matrix} \int_{-N}^{N} e^x\, \mathrm{d}x \end{matrix}</math> |-- |[[双重积分]]||<code>\iint_{D}^{W} \, \mathrm{d}x\,\mathrm{d}y</code>||<math> \iint_{D}^{W} \, \mathrm{d}x\,\mathrm{d}y</math> |-- |三重积分||<code>\iiint_{E}^{V} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z</code>||<math> \iiint_{E}^{V} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z</math> |- |四重积分||<code>\iiiint_{F}^{U} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z\,\mathrm{d}t</code>||<math> \iiiint_{F}^{U} \, \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z\,\mathrm{d}t</math> |- |闭合的[[曲綫积分]]、[[曲面积分]]||<code>\oint_{C} x^3\, \mathrm{d}x + 4y^2\, \mathrm{d}y</code>||<math> \oint_{C} x^3\, \mathrm{d}x + 4y^2\, \mathrm{d}y</math> |- |[[交集]]||<code>\bigcap_1^{n} p</code>||<math> \bigcap_1^{n} p</math> |- |[[并集]]||<code>\bigcup_1^{k} p</code>||<math> \bigcup_1^{k} p</math> |} ==[[分数]]、[[矩阵]]和多行列式== {| class="wikitable" |----- ! 功能 ! 语法 ! 效果 |----- |rowspan=3| 分数 || <code>\frac{2}{4}=0.5</code> || <math>\frac{2}{4}=0.5</math> |----- | <code>{2 \over 3}</code> || <math>{2 \over 3}</math> |----- | <code>{{a+b} \over {a-b}}</code> || <math>{{a+b} \over {a-b}}</math> |----- | 小型分数 || <code>\tfrac{2}{4} = 0.5</code> | <math>\tfrac{2}{4} = 0.5</math> |----- | 大型分数(嵌套) | <code>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</code> | <math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</math> |----- | 大型分数(不嵌套) | <code>\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a </code> | <math>\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</math> |----- |rowspan=2|[[二项式]]系数 |<code>\dbinom{n}{r}=\binom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</code> |<math>\dbinom{n}{r}=\binom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</math> |----- ||<code>n \choose n-r, n^2 \choose r_1, a-b \choose c+d, {n \choose 0}+{n \choose 1}</code> |<math>n \choose n-r</math> <math>n^2 \choose r_1</math> <math>a-b \choose c+d</math> <math>{n \choose 0}+{n \choose 1}</math> |----- |小型[[二项式]]系数 |<code>\tbinom{n}{r}=\tbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</code> |<math>\tbinom{n}{r}=\tbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</math> |----- |大型[[二项式]]系数 |<code>\binom{n}{r}=\dbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</code> |<math>\binom{n}{r}=\dbinom{n}{n-r}=\mathrm{C}_n^r=\mathrm{C}_n^{n-r}</math> |----- | rowspan="7" | 矩阵 || <pre>\begin{matrix} x & y \\ z & v \end{matrix}</pre> | <math>\begin{matrix} x & y \\ z & v \end{matrix}</math> |----- | <pre>\begin{vmatrix} x & y \\ z & v \end{vmatrix}</pre> | <math>\begin{vmatrix} x & y \\ z & v \end{vmatrix}</math> |----- | <pre>\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}</pre> | <math>\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}</math> |----- | <pre>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}</pre> | <math>\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix} </math> |----- | <pre>\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}</pre> | <math>\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}</math> |----- | <pre>\begin{pmatrix} x & y \\ z & v \end{pmatrix}</pre> | <math>\begin{pmatrix} x & y \\ z & v \end{pmatrix}</math> |----- | <pre> \bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr) </pre> | <math> \bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr) </math> |----- | 条件定义 || <pre> f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases}</pre> | <math>f(n) = \begin{cases} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{cases} </math> |----- | rowspan="3" | 多行等式、同餘式 || <pre> \begin{align} f(x) & = (m+n)^2 \\ & = m^2+2mn+n^2 \\ \end{align} </pre> | <math> \begin{align} f(x) & = (m+n)^2 \\ & = m^2+2mn+n^2 \\ \end{align} </math> |- |<pre>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}</pre> |<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> |----- | <pre> \begin{alignat}{3} f(x) & = (m-n)^2 \\ f(x) & = (-m+n)^2 \\ & = m^2-2mn+n^2 \\ \end{alignat} </pre> | <math> \begin{alignat}{3} f(x) & = (m-n)^2 \\ f(x) & = (-m+n)^2 \\ & = m^2-2mn+n^2 \\ \end{alignat} </math> |----- | 多行等式<small>(左对齐)</small> || <pre> \begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}</pre> | <math>\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}</math> |----- | 多行等式<small>(右对齐)</small> || <pre> \begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}</pre> | <math>\begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}</math> |----- | 长公式换行 || <pre> <nowiki> <math>f(x) \,\!</math> <math>= \sum_{n=0}^\infty a_n x^n </math> <math>= a_0+a_1x+a_2x^2+\cdots</math> </nowiki> </pre> | <math>f(x) \,\!</math><math>= \sum_{n=0}^\infty a_n x^n </math><math>= a_0 +a_1x+a_2x^2+\cdots</math> |----- | [[方程组]] || <pre>\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}</pre> | <math>\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases}</math> |----- | 数组 || <pre> \begin{array}{|c|c||c|} a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array} </pre> | <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> |} ==字体== {| class="wikitable" |- !colspan="2"| 希腊字母 |- | <syntaxhighlight lang="latex" enclose="none">\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta</syntaxhighlight> | <math>\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta</math> |- | <syntaxhighlight lang="latex" enclose="none">\Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi</syntaxhighlight> | <math>\Iota \Kappa \Lambda \Mu \Nu \Omicron \Xi \Pi</math> |- | <syntaxhighlight lang="latex" enclose="none">\Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega</syntaxhighlight> | <math>\Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega</math> |- | <syntaxhighlight lang="latex" enclose="none">\alpha \beta \gamma \delta \epsilon \zeta \eta \theta</syntaxhighlight> | <math>\alpha \beta \gamma \delta \epsilon \zeta \eta \theta</math> |- | <syntaxhighlight lang="latex" enclose="none">\iota \kappa \lambda \mu \nu \omicron \xi \pi</syntaxhighlight> | <math>\iota \kappa \lambda \mu \nu \omicron \xi \pi</math> |- | <syntaxhighlight lang="latex" enclose="none">\rho \sigma \tau \upsilon \phi \chi \psi \omega</syntaxhighlight> | <math>\rho \sigma \tau \upsilon \phi \chi \psi \omega</math> |- | <syntaxhighlight lang="latex" enclose="none">\varepsilon \digamma \varkappa \varpi</syntaxhighlight> | <math>\varepsilon \digamma \varkappa \varpi</math> |- | <syntaxhighlight lang="latex" enclose="none">\varrho \varsigma \vartheta \varphi</syntaxhighlight> | <math>\varrho \varsigma \vartheta \varphi</math> |- !colspan="2"| 希伯来符号 |- | <syntaxhighlight lang="latex" enclose="none">\aleph \beth \gimel \daleth</syntaxhighlight> | <math>\aleph \beth \gimel \daleth</math> |- !colspan="2"| 黑板报粗体 |- | <syntaxhighlight lang="latex" enclose="none">\mathbb{ABCDEFGHI}</syntaxhighlight> | <math>\mathbb{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbb{JKLMNOPQR}</syntaxhighlight> | <math>\mathbb{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbb{STUVWXYZ}</syntaxhighlight> | <math>\mathbb{STUVWXYZ}</math> |- !colspan="2"| 粗体 |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{ABCDEFGHI}</syntaxhighlight> | <math>\mathbf{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{JKLMNOPQR}</syntaxhighlight> | <math>\mathbf{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{STUVWXYZ}</syntaxhighlight> | <math>\mathbf{STUVWXYZ}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{abcdefghijklm}</syntaxhighlight> | <math>\mathbf{abcdefghijklm}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{nopqrstuvwxyz}</syntaxhighlight> | <math>\mathbf{nopqrstuvwxyz}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathbf{0123456789}</syntaxhighlight> | <math>\mathbf{0123456789}</math> |- !colspan="2"| 粗体希腊字母 |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}</syntaxhighlight> | <math>\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}</syntaxhighlight> | <math>\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}</syntaxhighlight> | <math>\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta}</syntaxhighlight> | <math>\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho}</syntaxhighlight> | <math>\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega}</syntaxhighlight> | <math>\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\varepsilon\digamma\varkappa\varpi}</syntaxhighlight> | <math>\boldsymbol{\varepsilon\digamma\varkappa\varpi}</math> |- | <syntaxhighlight lang="latex" enclose="none">\boldsymbol{\varrho\varsigma\vartheta\varphi}</syntaxhighlight> | <math>\boldsymbol{\varrho\varsigma\vartheta\varphi}</math> |- !colspan="2"| 斜体(拉丁字母默认) |- | <syntaxhighlight lang="latex" enclose="none">\mathit{0123456789}</syntaxhighlight> | <math>\mathit{0123456789}</math> |- !colspan="2"| 斜体希腊字母(小写字母默认) |- | <syntaxhighlight lang="latex" enclose="none">\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}</syntaxhighlight> | <math>\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}</syntaxhighlight> | <math>\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}</syntaxhighlight> | <math>\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}</math> |- !colspan="2"| 罗马体 |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{ABCDEFGHI}</syntaxhighlight> | <math>\mathrm{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{JKLMNOPQR}</syntaxhighlight> | <math>\mathrm{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{STUVWXYZ}</syntaxhighlight> | <math>\mathrm{STUVWXYZ}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{abcdefghijklm}</syntaxhighlight> | <math>\mathrm{abcdefghijklm}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{nopqrstuvwxyz}</syntaxhighlight> | <math>\mathrm{nopqrstuvwxyz}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathrm{0123456789}</syntaxhighlight> | <math>\mathrm{0123456789}</math> |- !colspan="2"| 无衬线体 |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{ABCDEFGHI}</syntaxhighlight> | <math>\mathsf{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{JKLMNOPQR}</syntaxhighlight> | <math>\mathsf{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{STUVWXYZ}</syntaxhighlight> | <math>\mathsf{STUVWXYZ}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{abcdefghijklm}</syntaxhighlight> | <math>\mathsf{abcdefghijklm}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{nopqrstuvwxyz}</syntaxhighlight> | <math>\mathsf{nopqrstuvwxyz}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{0123456789}</syntaxhighlight> | <math>\mathsf{0123456789}</math> |- !colspan="2"| 无衬线体希腊字母(仅大写) |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta}</syntaxhighlight> | <math>\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho}</syntaxhighlight> | <math>\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}</syntaxhighlight> | <math>\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}</math> |- !colspan="2"| 手写体/花体 |- | <syntaxhighlight lang="latex" enclose="none">\mathcal{ABCDEFGHI}</syntaxhighlight> | <math>\mathcal{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathcal{JKLMNOPQR}</syntaxhighlight> | <math>\mathcal{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathcal{STUVWXYZ}</syntaxhighlight> | <math>\mathcal{STUVWXYZ}</math> |- !colspan="2"| Fraktur体 |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{ABCDEFGHI}</syntaxhighlight> | <math>\mathfrak{ABCDEFGHI}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{JKLMNOPQR}</syntaxhighlight> | <math>\mathfrak{JKLMNOPQR}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{STUVWXYZ}</syntaxhighlight> | <math>\mathfrak{STUVWXYZ}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{abcdefghijklm}</syntaxhighlight> | <math>\mathfrak{abcdefghijklm}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{nopqrstuvwxyz}</syntaxhighlight> | <math>\mathfrak{nopqrstuvwxyz}</math> |- | <syntaxhighlight lang="latex" enclose="none">\mathfrak{0123456789}</syntaxhighlight> | <math>\mathfrak{0123456789}</math> |- |- !colspan="2"| 小型手写体 |- | <syntaxhighlight lang="latex" enclose="none">{\scriptstyle\text{abcdefghijklm}}</syntaxhighlight> | <math>{\scriptstyle\text{abcdefghijklm}}</math> |} ====混合字体==== {| class="wikitable" |- ! 特征 ! 语法 ! 渲染效果 |- | 斜体字符(忽略空格) | <syntaxhighlight lang="latex" enclose="none">x y z</syntaxhighlight> | <math>x y z</math> |- | 非斜体字符 | <syntaxhighlight lang="latex" enclose="none">\text{x y z}</syntaxhighlight> | <math>\text{x y z}</math> |- | 混合斜体(差) | <syntaxhighlight lang="latex" enclose="none">\text{if} n \text{is even}</syntaxhighlight> | <math>\text{if} n \text{is even}</math> |- | 混合斜体(好) | <syntaxhighlight lang="latex" enclose="none">\text{if }n\text{ is even}</syntaxhighlight> | <math>\text{if }n\text{ is even}</math> |- | 混合斜体( 替代品:~ 或者"\ "强制空格) | <syntaxhighlight lang="latex" enclose="none">\text{if}~n\ \text{is even}</syntaxhighlight> | <math>\text{if}~n\ \text{is even}</math> |} ==括号== {| class="wikitable" |----- ! 功能 ! 语法 ! 显示 |----- | 短括号 || ( \frac{1}{2} ) || <math>( \frac{1}{2} )</math> |----- | 长括号 || \left( \frac{1}{2} \right) | <math>\left ( \frac{1}{2} \right )</math> |} 您可以使用 <code>\left</code> 和 <code>\right</code> 来显示不同的括号: {| class="wikitable" |----- ! 功能 ! 语法 ! 显示 |----- | [[圆括号]],[[小括号]] || \left'''(''' \frac{a}{b} \right''')''' || <math>\left( \frac{a}{b} \right)</math> |----- | [[方括号]],[[中括号]],[[高斯符號]] || \left'''[''' \frac{a}{b} \right''']''' || <math>\left[ \frac{a}{b} \right]</math> |----- | [[花括号]],[[大括号]] || \left'''\{''' \frac{a}{b} \right'''\}''' || <math>\left\{ \frac{a}{b} \right\}</math> |----- | [[角括号]] || \left '''\langle''' \frac{a}{b} \right '''\rangle''' | <math>\left\langle \frac{a}{b} \right \rangle</math> |----- | [[单竖线]],[[绝对值]] || \left'''|''' \frac{a}{b} \right'''|''' || <math>\left| \frac{a}{b} \right|</math> |- | 双竖线,范 || \left '''\|''' \frac{a}{b} \right '''\|''' || <math>\left \| \frac{a}{b} \right \|</math> |----- | 取[[高斯符號]] || \left '''\lbrack''' \frac{a}{b} \right '''\rbrack''' || <math>\left \lbrack \frac{a}{b} \right \rbrack</math> |----- | [[取底符號]] || \left '''\lfloor''' \frac{a}{b} \right '''\rfloor''' || <math>\left \lfloor \frac{a}{b} \right \rfloor</math> |----- | [[取頂符號]]|| \left '''\lceil''' \frac{c}{d} \right '''\rceil'''|| <math>\left \lceil \frac{c}{d} \right \rceil</math> |- | 斜线与反斜线 ||\left '''/''' \frac{a}{b} \right '''\backslash''' ||<math>\left / \frac{a}{b} \right \backslash </math> |- | rowspan="3" | 上下箭头 | \left '''\uparrow''' \frac{a}{b} \right '''\downarrow''' ||<math>\left \uparrow \frac{a}{b} \right \downarrow </math> |- | \left '''\Uparrow''' \frac{a}{b} \right '''\Downarrow''' ||<math>\left \Uparrow \frac{a}{b} \right \Downarrow </math> |- | \left '''\updownarrow''' \frac{a}{b} \right '''\Updownarrow'''||<math>\left \updownarrow \frac{a}{b} \right \Updownarrow</math> |- | 混合括号 || \left [ 0,1 \right )<br />\left \langle \psi \right | ||<math>\left [ 0,1 \right )</math><br /><math>\left \langle \psi \right |</math> |- | 单左括号 || \left \{ \frac{a}{b} '''\right .''' || <math>\left \{ \frac{a}{b} \right .</math> |- | 单右括号 || '''\left .''' \frac{a}{b} \right \} || <math>\left . \frac{a}{b} \right \}</math> |} 备注: *可以使用 <code>\big, \Big, \bigg, \Bigg</code> 控制括号的大小,比如代码 :<code>'''\Bigg''' ( '''\bigg''' [ '''\Big''' \{ '''\big''' \langle \left | \| \frac{a}{b} \| \right | '''\big''' \rangle '''\Big''' \} '''\bigg''' ] '''\Bigg''' )</code> 显示︰ :<math>\Bigg ( \bigg [ \Big \{ \big \langle \left | \| \frac{a}{b} \| \right | \big \rangle \Big \} \bigg ] \Bigg )</math> ==空格== 注意{{TeX}}能够自动处理大多数的空格,但是您有时候需要自己来控制。 {| class="wikitable" |----- !功能||语法||显示||宽度 |----- |2个quad空格 |<code>\alpha\qquad\beta</code> |<math>\alpha\qquad\beta</math> |<math>2m\ </math> |----- |quad空格 |<code>\alpha\quad\beta</code> |<math>\alpha\quad\beta</math> |<math>m\ </math> |----- |大空格 |<code>\alpha\ \beta</code> |<math>\alpha\ \beta</math> |<math>\frac{m}{3}</math> |----- |中等空格 |<code>\alpha\;\beta</code> |<math>\alpha\;\beta</math> |<math>\frac{2m}{7}</math> |----- |小空格 |<code>\alpha\,\beta</code> |<math>\alpha\,\beta</math> |<math>\frac{m}{6}</math> |----- |没有空格 |<code>\alpha\beta</code> |<math>\alpha\beta\ </math> |<math>0\ </math> |----- |紧贴 |<code>\alpha\!\beta</code> |<math>\alpha\!\beta</math> |<math>-\frac{m}{6}</math> |} ==顏色== ;語法: *字體顏色︰<code>-{}-{\color{色調}表達式}</code><br> *<s>背景顏色︰<code>-{}-{\pagecolor{色調}表達式}</code></s>{{efn|该命令已失效,参见[https://phabricator.wikimedia.org/T195861 Phabricator]}} ;支援色調表: {|class="wikitable" |+ Colors supported |- |<math>\color{Apricot}\text{Apricot}</math> |<math>\color{Aquamarine}\text{Aquamarine}</math> |<math>\color{Bittersweet}\text{Bittersweet}</math> |<math>\color{Black}\text{Black}</math> |- |<math>\color{Blue}\text{Blue}</math> |<math>\color{BlueGreen}\text{BlueGreen}</math> |<math>\color{BlueViolet}\text{BlueViolet}</math> |<math>\color{BrickRed}\text{BrickRed}</math> |- |<math>\color{Brown}\text{Brown}</math> |<math>\color{BurntOrange}\text{BurntOrange}</math> |<math>\color{CadetBlue}\text{CadetBlue}</math> |<math>\color{CarnationPink}\text{CarnationPink}</math> |- |<math>\color{Cerulean}\text{Cerulean}</math> |<math>\color{CornflowerBlue}\text{CornflowerBlue}</math> |<math>\color{Cyan}\text{Cyan}</math> |<math>\color{Dandelion}\text{Dandelion}</math> |- |<math>\color{DarkOrchid}\text{DarkOrchid}</math> |<math>\color{Emerald}\text{Emerald}</math> |<math>\color{ForestGreen}\text{ForestGreen}</math> |<math>\color{Fuchsia}\text{Fuchsia}</math> |- |<math>\color{Goldenrod}\text{Goldenrod}</math> |<math>\color{Gray}\text{Gray}</math> |<math>\color{Green}\text{Green}</math> |style="background:gray"|<math style="background:gray">\color{GreenYellow}\text{GreenYellow}</math> |- |<math>\color{JungleGreen}\text{JungleGreen}</math> |<math>\color{Lavender}\text{Lavender}</math> |<math>\color{LimeGreen}\text{LimeGreen}</math> |<math>\color{Magenta}\text{Magenta}</math> |- |<math>\color{Mahogany}\text{Mahogany}</math> |<math>\color{Maroon}\text{Maroon}</math> |<math>\color{Melon}\text{Melon}</math> |<math>\color{MidnightBlue}\text{MidnightBlue}</math> |- |<math>\color{Mulberry}\text{Mulberry}</math> |<math>\color{NavyBlue}\text{NavyBlue}</math> |<math>\color{OliveGreen}\text{OliveGreen}</math> |<math>\color{Orange}\text{Orange}</math> |- |<math>\color{OrangeRed}\text{OrangeRed}</math> |<math>\color{Orchid}\text{Orchid}</math> |<math>\color{Peach}\text{Peach}</math> |<math>\color{Periwinkle}\text{Periwinkle}</math> |- |<math>\color{PineGreen}\text{PineGreen}</math> |<math>\color{Plum}\text{Plum}</math> |<math>\color{ProcessBlue}\text{ProcessBlue}</math> |<math>\color{Purple}\text{Purple}</math> |- |<math>\color{RawSienna}\text{RawSienna}</math> |<math>\color{Red}\text{Red}</math> |<math>\color{RedOrange}\text{RedOrange}</math> |<math>\color{RedViolet}\text{RedViolet}</math> |- |<math>\color{Rhodamine}\text{Rhodamine}</math> |<math>\color{RoyalBlue}\text{RoyalBlue}</math> |<math>\color{RoyalPurple}\text{RoyalPurple}</math> |<math>\color{RubineRed}\text{RubineRed}</math> |- |<math>\color{Salmon}\text{Salmon}</math> |<math>\color{SeaGreen}\text{SeaGreen}</math> |<math>\color{Sepia}\text{Sepia}</math> |<math>\color{SkyBlue}\text{SkyBlue}</math> |- |style="background:gray"|<math style="background:gray">\color{SpringGreen}\text{SpringGreen}</math> |<math>\color{Tan}\text{Tan}</math> |<math>\color{TealBlue}\text{TealBlue}</math> |<math>\color{Thistle}\text{Thistle}</math> |- |<math>\color{Turquoise}\text{Turquoise}</math> |<math>\color{Violet}\text{Violet}</math> |<math>\color{VioletRed}\text{VioletRed}</math> | style="background:black"|<math style="background:black">\color{White}\text{White}</math> |- |<math>\color{WildStrawberry}\text{WildStrawberry}</math> |style="background:gray"|<math style="background:gray">\color{Yellow}\text{Yellow}</math> |<math>\color{YellowGreen}\text{YellowGreen}</math> |<math>\color{YellowOrange}\text{YellowOrange}</math> |} <sup>*</sup>註︰輸入時第一個字母必需以大寫輸入,如<code>\color{OliveGreen}</code>。 ;例子: *<code>{\color{Blue}x^2}+{\color{Brown}2x} - {\color{OliveGreen}1}</code> :<math> {\color{Blue}x^2}+{\color{Brown}2x} - {\color{OliveGreen}1}</math> *<code>x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}</code> :<math style="background:#F8FCFF"> x_{\color{Maroon}1,2}=\frac{-b\pm\sqrt{{\color{Maroon}b^2-4ac}}}{2a}</math> <!-- 好像这个Bug没有了 ;繁簡轉換: 繁簡轉換的BUG,可能會在結尾會多出一個「<nowiki>}-</nowiki>」符號。 情況如下: *<code>{\color{Brown}1}-{\color{Green}1}</code> :<math>{\color{Brown}1}-{\color{Green}1}</math> 如出現這情況,可以在減號與括號之間留空白,解決這問題。 *<code>{\color{Brown}1} - {\color{Green}1}</code> :<math>{\color{Brown}1} - {\color{Green}1}</math> --> ==小型數學公式== 此功能並不常用。 :10 的 <math>f(x)=5+\frac{1}{5}</math> 是 2。 *{{cross}}'''並不好看。''' :10 的 {{smallmath|f=f(x)=5+\frac{1}{5} }} 是 2。 *{{tick}}'''好看些了。''' 可以使用 \begin{smallmatrix}...\end{smallmatrix} 或直接使用{{tl|Smallmath}}模板。 <nowiki>{{Smallmath|f= f(x)=5+\frac{1}{5} }}</nowiki> ==注释== {{notelist}} ==参考资料== {{Reflist}} ==外部鏈接== * 一個介紹[[Tex|{{TeX}}]]的[[PDF]]文檔{{en}}: http://www.ctan.org/tex-archive/info/gentle/gentle.pdf * 完整的參考列表{{en}}:http://wso.williams.edu/how/lshort2e/node61.html{{Dead link}} * 手画公式输出[[LATEX|{{LaTeX}}]]: http://webdemo.visionobjects.com/equation.html{{Dead link}} * 手畫符號搜尋{{LaTeX}}代碼: http://detexify.kirelabs.org/classify.html * [http://www.codecogs.com/latex/eqneditor.php LaTeX在线编辑器] * [http://www.ams.org/tex/amslatex.html AMS-LaTeX指南] {{H-f Help}} [[Category:帮助]]
返回
帮助:数学公式
。
导航菜单
个人工具
创建账号
登录
命名空间
帮助
讨论
大陆简体
查看
阅读
查看源代码
设置
查看历史
更多
搜索
导了个航
这是首页
热门沙雕
最近沙雕
随机沙雕
最常更新
明日方舟资料页
Arcaea资料页
工具
所有页面
文件列表
页面信息
特殊页面