查看“︁Help:数学公式”︁的源代码
←
Help:数学公式
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
维基教科书使用[[HTML]]标记和[[LaTeX|{{TeX}}]]的变体的组合来渲染数学公式。默认生成含不可见MathML的SVG图像,若想生成PNG图像,可在[[special:preferences#mw-prefsection-rendering|{{int:mypreferences}}]]的“{{int:prefs-math}}”一栏中调整。 数学记号应该放在<code><nowiki><math> ... </math></nowiki></code>标记中。更详细的内容,或者关于{{TeX}}显示的讨论或者您有任何建议,请到[[w:Displaying a formula|英文维基百科的相关页面]]。 ==函数、符号及特殊字符== <!-- Eight symbols per line seems to be optimal--> {| class="wikitable" ! colspan="2" | === 声调/变音符号 === |- |<code>\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a}</code> |<math>\acute{a} \grave{a} \hat{a} \tilde{a} \breve{a}\,\!</math> |- |<code>\check{a} \bar{a} \ddot{a} \dot{a}</code> |<math>\check{a} \bar{a} \ddot{a} \dot{a}\!</math> |- ! colspan="2" | === 标准函数 === |- |<code>\sin a \cos b \tan c</code> |<math>\sin a \cos b \tan c\!</math> |- |<code>\sec d \csc e \cot f</code> |<math>\sec d \csc e \cot f\,\!</math> |- |<code>\arcsin h \arccos i \arctan j</code> |<math>\arcsin h \arccos i \arctan j\,\!</math> |- |<code>\sinh k \cosh l \tanh m \coth n\!</code> |<math>\sinh k \cosh l \tanh m \coth n\!</math> |- |<code>\operatorname{sh}o\,\operatorname{ch}p\,\operatorname{th}q\!</code> |<math>\operatorname{sh}o\,\operatorname{ch}p\,\operatorname{th}q\!</math> |- |<code>\operatorname{arsinh}r\,\operatorname{arcosh}s\,\operatorname{artanh}t</code> |<math>\operatorname{arsinh}r\,\operatorname{arcosh}s\,\operatorname{artanh}t\!</math> |- |<code>\lim u \limsup v \liminf w \min x \max y\!</code> |<math>\lim u \limsup v \liminf w \min x \max y\!</math> |- |<code>\inf z \sup a \exp b \ln c \lg d \log e \log_{10} f \ker g\!</code> |<math>\inf z \sup a \exp b \ln c \lg d \log e \log_{10} f \ker g\!</math> |- |<code>\deg h \gcd i \Pr j \det k \hom l \arg m \dim n</code> |<math>\deg h \gcd i \Pr j \det k \hom l \arg m \dim n\!</math> |- ! colspan="2" | === 模代数 === |- |<code>s_k \equiv 0 \pmod{m}</code> |<math>s_k \equiv 0 \pmod{m}\,\!</math> |- |<code>a\,\bmod\,b</code> |<math>a\,\bmod\,b\,\!</math> |- ! colspan="2" | === 微分 === |- |<code>\nabla \, \partial x \, \mathrm{d}x \, \dot x \, \ddot y\, \mathrm{d}y/\mathrm{d}x\, \frac{\mathrm{d}y}{\mathrm{d}x}\, \frac{\partial^2 y}{\partial x_1\,\partial x_2}</code> |<math>\nabla \, \partial x \, \mathrm{d}x \, \dot x \, \ddot y\, \mathrm{d}y/\mathrm{d}x\, \frac{\mathrm{d}y}{\mathrm{d}x}\, \frac{\partial^2 y}{\partial x_1\,\partial x_2}</math> |- ! colspan="2" | === 集合 === |- |<code>\forall \exists \empty \emptyset \varnothing</code> |<math>\forall \exists \empty \emptyset \varnothing\,\!</math> |- |<code>\in \ni \not \in \notin \subset \subseteq \supset \supseteq</code> |<math>\in \ni \not \in \notin \subset \subseteq \supset \supseteq\,\!</math> |- |<code>\cap \bigcap \cup \bigcup \biguplus \setminus \smallsetminus</code> |<math>\cap \bigcap \cup \bigcup \biguplus \setminus \smallsetminus\,\!</math> |- |<code>\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup</code> |<math>\sqsubset \sqsubseteq \sqsupset \sqsupseteq \sqcap \sqcup \bigsqcup\,\!</math> |- ! colspan="2" | === 运算符 === |- |<code>+ \oplus \bigoplus \pm \mp - </code> |<math>+ \oplus \bigoplus \pm \mp - \,\!</math> |- |<code>\times \otimes \bigotimes \cdot \circ \bullet \bigodot</code> |<math>\times \otimes \bigotimes \cdot \circ \bullet \bigodot\,\!</math> |- |<code>\star * / \div \frac{1}{2}</code> |<math>\star * / \div \frac{1}{2}\,\!</math> |- ! colspan="2" | <br /> === 逻辑符号 === |- |<code>\land (or \and) \wedge \bigwedge \bar{q} \to p</code> |<math>\land \wedge \bigwedge \bar{q} \to p\,\!</math> |- |<code>\lor \vee \bigvee \lnot \neg q \And</code> |<math>\lor \vee \bigvee \lnot \neg q \And\,\!</math> |- ! colspan="2" | === 根号 === |- |<code>\sqrt{x} \sqrt[n]{x}</code> |<math>\sqrt{x} \sqrt[n]{x}\,\!</math> |- ! colspan="2" | === 关系符号 === |- |<code>\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}</code> |<math>\sim \approx \simeq \cong \dot= \overset{\underset{\mathrm{def}}{}}{=}\,\!</math> |- |<code>< \le \ll \gg \ge > \equiv \not\equiv \ne \mbox{or} \neq \propto</code> |<math>< \le \ll \gg \ge > \equiv \not\equiv \ne \mbox{or} \neq \propto\,\!</math> |- |<code>\lessapprox \lesssim \eqslantless \leqslant \leqq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox</code> |<math>\lessapprox \lesssim \eqslantless \leqslant \leqq \geqq \geqslant \eqslantgtr \gtrsim \gtrapprox</math> |- ! colspan="2" | === 几何符号 === |- |<code><nowiki>\Diamond \Box \triangle \angle \perp \mid \nmid \| 45^\circ</nowiki></code> |<math>\Diamond \, \Box \, \triangle \, \angle \perp \, \mid \; \nmid \, \| 45^\circ\,\!</math> |- ! colspan="2" | === 箭头 === |- |<code>\leftarrow (or \gets) \rightarrow (or \to) \nleftarrow \nrightarrow \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow</code> |<math>\leftarrow \rightarrow \nleftarrow \nrightarrow \leftrightarrow \nleftrightarrow \longleftarrow \longrightarrow \longleftrightarrow \,\!</math> |- |<code>\Leftarrow \Rightarrow \nLeftarrow \nRightarrow \Leftrightarrow \nLeftrightarrow \Longleftarrow \Longrightarrow \Longleftrightarrow (or \iff)</code> |<math>\Leftarrow \Rightarrow \nLeftarrow \nRightarrow \Leftrightarrow \nLeftrightarrow \Longleftarrow \Longrightarrow \Longleftrightarrow \!</math> |- |<code>\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow</code> |<math>\uparrow \downarrow \updownarrow \Uparrow \Downarrow \Updownarrow \nearrow \searrow \swarrow \nwarrow \!</math> |- |<code>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</code> |<math>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!</math> |- |<code>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright</code> |<math>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \Rrightarrow \rightarrowtail \looparrowright \,\!</math> |- |<code>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft</code> |<math>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \Lleftarrow \leftarrowtail \looparrowleft \,\!</math> |- |<code>\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow </code> |<math>\mapsto \longmapsto \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \,\!</math> |- ! colspan="2" | === 特殊符号 === |- |<code>\And \eth \S \P \% \dagger \ddagger \ldots \cdots</code> |<math>\And \eth \S \P \% \dagger \ddagger \ldots \cdots\,\!</math> |- |<code>\smile \frown \wr \triangleleft \triangleright \infty \bot \top</code> |<math>\smile \frown \wr \triangleleft \triangleright \infty \bot \top\,\!</math> |- |<code>\vdash \vDash \Vdash \models \lVert \rVert \imath \hbar</code> |<math>\vdash \vDash \Vdash \models \lVert \rVert \imath \hbar\,\!</math> |- |<code>\ell \mho \Finv \Re \Im \wp \complement</code> |<math>\ell \mho \Finv \Re \Im \wp \complement\,\!</math> |- |<code>\diamondsuit \heartsuit \clubsuit \spadesuit \Game \flat \natural \sharp</code> |<math>\diamondsuit \heartsuit \clubsuit \spadesuit \Game \flat \natural \sharp\,\!</math> |- |<code> \vartriangle \triangledown \lozenge \circledS \measuredangle \nexists \Bbbk \backprime \blacktriangle \blacktriangledown</code> |<math> \vartriangle \triangledown \lozenge \circledS \measuredangle \nexists \Bbbk \backprime \blacktriangle \blacktriangledown</math> |- |<code> \blacksquare \blacklozenge \bigstar \sphericalangle \diagup \diagdown \dotplus \Cap \Cup \barwedge</code> |<math> \blacksquare \blacklozenge \bigstar \sphericalangle \diagup \diagdown \dotplus \Cap \Cup \barwedge\!</math> |- |<code> \veebar \doublebarwedge \boxminus \boxtimes \boxdot \boxplus \divideontimes \ltimes \rtimes \leftthreetimes</code> |<math> \veebar \doublebarwedge \boxminus \boxtimes \boxdot \boxplus \divideontimes \ltimes \rtimes \leftthreetimes</math> |- |<code> \rightthreetimes \curlywedge \curlyvee \circleddash \circledast \circledcirc \centerdot \intercal \leqq \leqslant</code> |<math> \rightthreetimes \curlywedge \curlyvee \circleddash \circledast \circledcirc \centerdot \intercal \leqq \leqslant</math> |- |<code> \eqslantless \lessapprox \approxeq \lessdot \lll \lessgtr \lesseqgtr \lesseqqgtr \doteqdot \risingdotseq</code> |<math> \eqslantless \lessapprox \approxeq \lessdot \lll \lessgtr \lesseqgtr \lesseqqgtr \doteqdot \risingdotseq</math> |- |<code> \fallingdotseq \backsim \backsimeq \subseteqq \Subset \preccurlyeq \curlyeqprec \precsim \precapprox \vartriangleleft</code> |<math> \fallingdotseq \backsim \backsimeq \subseteqq \Subset \preccurlyeq \curlyeqprec \precsim \precapprox \vartriangleleft</math> |- |<code> \Vvdash \bumpeq \Bumpeq \eqsim \gtrdot</code> |<math> \Vvdash \bumpeq \Bumpeq \eqsim \gtrdot</math> |- |<code> \ggg \gtrless \gtreqless \gtreqqless \eqcirc \circeq \triangleq \thicksim \thickapprox \supseteqq</code> |<math> \ggg \gtrless \gtreqless \gtreqqless \eqcirc \circeq \triangleq \thicksim \thickapprox \supseteqq</math> |- |<code> \Supset \succcurlyeq \curlyeqsucc \succsim \succapprox \vartriangleright \shortmid \between \shortparallel \pitchfork</code> |<math> \Supset \succcurlyeq \curlyeqsucc \succsim \succapprox \vartriangleright \shortmid \between \shortparallel \pitchfork</math> |- |<code> \varpropto \blacktriangleleft \therefore \backepsilon \blacktriangleright \because \nleqslant \nleqq \lneq \lneqq</code> |<math> \varpropto \blacktriangleleft \therefore \backepsilon \blacktriangleright \because \nleqslant \nleqq \lneq \lneqq</math> |- |<code> \lvertneqq \lnsim \lnapprox \nprec \npreceq \precneqq \precnsim \precnapprox \nsim \nshortmid</code> |<math> \lvertneqq \lnsim \lnapprox \nprec \npreceq \precneqq \precnsim \precnapprox \nsim \nshortmid</math> |- |<code> \nvdash \nVdash \ntriangleleft \ntrianglelefteq \nsubseteq \nsubseteqq \varsubsetneq \subsetneqq \varsubsetneqq \ngtr</code> |<math> \nvdash \nVdash \ntriangleleft \ntrianglelefteq \nsubseteq \nsubseteqq \varsubsetneq \subsetneqq \varsubsetneqq \ngtr</math> |- |<code>\subsetneq</code> |<math>\subsetneq</math> |- |<code> \ngeqslant \ngeqq \gneq \gneqq \gvertneqq \gnsim \gnapprox \nsucc \nsucceq \succneqq</code> |<math> \ngeqslant \ngeqq \gneq \gneqq \gvertneqq \gnsim \gnapprox \nsucc \nsucceq \succneqq</math> |- |<code> \succnsim \succnapprox \ncong \nshortparallel \nparallel \nvDash \nVDash \ntriangleright \ntrianglerighteq \nsupseteq</code> |<math> \succnsim \succnapprox \ncong \nshortparallel \nparallel \nvDash \nVDash \ntriangleright \ntrianglerighteq \nsupseteq</math> |- |<code> \nsupseteqq \varsupsetneq \supsetneqq \varsupsetneqq</code> |<math> \nsupseteqq \varsupsetneq \supsetneqq \varsupsetneqq</math> |- |<code>\jmath \surd \ast \uplus \diamond \bigtriangleup \bigtriangledown \ominus</code> |<math>\jmath \surd \ast \uplus \diamond \bigtriangleup \bigtriangledown \ominus\,\!</math> |- |<code>\oslash \odot \bigcirc \amalg \prec \succ \preceq \succeq</code> |<math>\oslash \odot \bigcirc \amalg \prec \succ \preceq \succeq\,\!</math> |- |<code>\dashv \asymp \doteq \parallel</code> |<math>\dashv \asymp \doteq \parallel\,\!</math> |- |<code>\ulcorner \urcorner \llcorner \lrcorner</code> |<math>\ulcorner \urcorner \llcorner \lrcorner</math> |- |<code>\Coppa\coppa\varcoppa\Digamma\Koppa\koppa\Sampi\sampi\Stigma\stigma\varstigma</code> |<math>\Coppa\coppa\varcoppa\Digamma\Koppa\koppa\Sampi\sampi\Stigma\stigma\varstigma</math> |} ==上标、下标及积分等== 使用HTML标签<nowiki><sub>和<sup>也可以实现上标下标的效果。</nowiki> 如输入: x<nowiki><sup>2<sup></nowiki> 显示为: x<sup>2</sup> {| 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> |- |\mathbf{c} |<math>\mathbf{c}</math> |- |<code>\overleftarrow{a b}</code> |<math> \overleftarrow{a b}</math> |- |<code>\overrightarrow{c d}</code> |<math> \overrightarrow{c d}</math> |- |<code>\widehat{e f g}</code> |<math> \widehat{e f g}</math> |- |上弧<ref>正確應該用 \overarc,但在這裡行不通。要用建議的語法作為解決辦法。)(使用\overarc時需要引入{arcs}套件。)</ref> |<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> |- |闭合曲綫、曲面积分||\oint_{C} x^3\, \mathrm{d}x + 4y^2\, \mathrm{d}y |<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" |----- ! 功能 ! 语法 ! 效果 |----- | 分数 || <code>\frac{2}{4}=0.5</code> || <math>\frac{2}{4}=0.5</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> |----- |二项式系数 |<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>\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> |} == 化学方程式 == <nowiki><chem></nowiki>和<nowiki><math></nowiki>都是基于TeX的,所以显示的效果差不多,许多<nowiki><math></nowiki>语法也都可以在<nowiki><chem></nowiki>中直接调用。调用后若有某些元素显示不正常,一般把它括在{花括号}里就好了。但使用<nowiki><chem></nowiki>更简单也更容易理解。 除此之外,还可以使用{{tl|chem}}模板。其具体用法请参见[[模板:chem]] {|class="wikitable" |----- |+化学式和离子符号 |----- ! 语法 !! 效果 |----- |<pre><chem>2H2O</chem></pre>||<chem>2H2O</chem> |----- |<pre><chem>NH4+</chem></pre>||<chem>NH4+</chem> |----- |<pre><chem>SO4^{2-}</chem></pre>||<chem>SO4^{2-}</chem> |} {|class="wikitable" |----- |+化学方程式 |----- ! 语法 !! 效果 |----- |<pre><chem>A2{+}B2->2AB</chem></pre>||<chem>A2{+}B2->2AB</chem> |----- |<pre><chem>A2{+}B2->[\vartriangle][H_2O]2AB</chem></pre>||<chem>A2{+}B2->[\vartriangle][H_2O]2AB</chem><ref>无论是<nowiki><chem></nowiki>还是<nowiki><math></nowiki>都暂时不支持中文和中文标点;所以反应条件不能是中文。</ref> |} 此处特别要注意的是方程式中出现的加号和减号要用大括号括起来(<code>{+}和{-}</code>)<ref>包括元维基在内大部分维基项目的帮助文档中,对此的处理方法是将加号之前的内容用花括号括起来;但笔者出于美观上的考虑选择介绍这种方法。</ref>,否则系统会将那些加减号理解为电荷符号而将其置于上标。 {|class="wikitable" |----- |+箭头 |----- ! 语法 !! 效果 |----- | <pre> -> 、<- 、<-> 、<=> 、v 、 \uparrow </pre> ||<chem>-></chem> 、<chem><-</chem> 、<chem><-></chem> 、<chem><=></chem> 、<chem>v</chem> 、<chem>\uparrow</chem> |} ==字体== ===[[希腊语|希腊字母]]=== 斜体小写希腊字母一般用于在方程中显示变量。 {| class="wikitable" ! colspan="3" |<center>正体希腊字母</center> |- !特徵||語法||效果 |- !rowspan="3"|<center>大写字母</center> |<code>\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta</code> |<math>\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta\!</math> |- |<code>\Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi</code> |<math>\Iota\Kappa\Lambda\Mu\Nu\Xi\Omicron\Pi\!</math> |- |<code>\Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega</code> |<math>\Rho\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega\!</math> |- !rowspan="3"|<center>小写字母</center> |<code>\alpha \beta \gamma \delta \epsilon \zeta \eta \theta</code> |<math>\alpha\beta\gamma\delta\epsilon\zeta\eta\theta\!</math> |- |<code>\iota \kappa \lambda \mu \nu \xi \omicron \pi</code> |<math>\iota\kappa\lambda\mu\nu\xi\omicron\pi\!</math> |- |<code>\rho \sigma \tau \upsilon \phi \chi \psi \omega</code> |<math>\rho\sigma\tau\upsilon\phi\chi\psi\omega\!</math> |- !rowspan="7"|<center>异体字母</center> |<code>\Epsilon\epsilon\varepsilon</code> |<math>\Epsilon\epsilon\varepsilon</math> |- |<code>\Theta\theta\vartheta</code> |<math>\Theta\theta\vartheta</math> |- |<code>\Kappa\kappa\varkappa</code> |<math>\Kappa\kappa\varkappa</math> |- |<code>\Pi\pi\varpi</code> |<math>\Pi\pi\varpi</math> |- |<code>\Rho\rho\varrho</code> |<math>\Rho\rho\varrho</math> |- |<code>\Sigma\sigma\varsigma</code> |<math>\Sigma\sigma\varsigma</math> |- |<code>\Phi\phi\varphi</code> |<math>\Phi\phi\varphi\,</math> |- !<center>已停用字母</center> |<code>\digamma</code> |<math>\digamma</math> |} {| class="wikitable" !colspan="3"|<center>粗体希腊字母</center> |- !特徵||語法||效果 |- !rowspan="3"|<center>大写字母</center> |<code>\boldsymbol{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta}</code> |<math>\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta}</math> |- |<code>\boldsymbol{\Iota \Kappa \Lambda \Mu \Nu \Xi \Omicron \Pi}</code> |<math>\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Omicron\Pi}</math> |- |<code>\boldsymbol{\Rho \Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}</code> |<math>\boldsymbol{\Rho\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega}</math> |- !rowspan="3"|<center>小写字母</center> |<code>\boldsymbol{\alpha \beta \gamma \delta \epsilon \zeta \eta \theta}</code> |<math>\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta}</math> |- |<code>\boldsymbol{\iota \kappa \lambda \mu \nu \xi \omicron \pi}</code> |<math>\boldsymbol{\iota\kappa\lambda\mu\nu\xi\omicron\pi}</math> |- |<code>\boldsymbol{\rho \sigma \tau \upsilon \phi \chi \psi \omega}</code> |<math>\boldsymbol{\rho\sigma\tau\upsilon\phi\chi\psi\omega}</math> |- !rowspan="7"|<center>异体字母</center> |<code>\boldsymbol{\Epsilon\epsilon\varepsilon}</code> |<math>\boldsymbol{\Epsilon\epsilon\varepsilon}</math> |- |<code>\boldsymbol{\Theta\theta\vartheta}</code> |<math>\boldsymbol{\Theta\theta\vartheta}</math> |- |<code>\boldsymbol{\Kappa\kappa\varkappa}</code> |<math>\boldsymbol{\Kappa\kappa\varkappa}</math> |- |<code>\boldsymbol{\Pi\pi\varpi}</code> |<math>\boldsymbol{\Pi\pi\varpi}</math> |- |<code>\boldsymbol{\Rho\rho\varrho}</code> |<math>\boldsymbol{\Rho\rho\varrho}</math> |- |<code>\boldsymbol{\Sigma\sigma\varsigma}</code> |<math>\boldsymbol{\Sigma\sigma\varsigma}</math> |- |<code>\boldsymbol{\Phi\phi\varphi}</code> |<math>\boldsymbol{\Phi\phi\varphi}</math> |- !<center>已停用字母</center> |<code>\boldsymbol{\digamma}</code> |<math>\boldsymbol{\digamma}</math> |} ===黑板粗体=== ;语法:<code>'''\mathbb{'''''ABCDEFGHIJKLMNOPQRSTUVWXYZ'''''}'''</code> ;效果:<math>\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}</math> 黑板粗体([[:en:Blackboard bold|Blackboard bold]])一般用于表示数学和物理学中的向量或集合的符号。 备注: #<math>\{ \,</math>花括号<math>\} \,</math>中只有使用大写拉丁字母才能正常显示,使用小写字母或数字会得到其他符号。 ===正粗体=== ;语法:<code>'''\mathbf{'''''012…abc…ABC…'''''}'''</code> ;效果:<math>\mathbf{0 \ 1 \ 2 \ 3 \ 4 \ 5 \ 6 \ 7 \ 8 \ 9}</math> :<math>\mathbf{a \ b \ c \ d \ e \ f \ g \ h \ i \ j \ k \ l \ m \ n \ o \ p \ q \ r \ s \ t \ u \ v \ w \ x \ y \ z}</math> :<math>\mathbf{A \ B \ C \ D \ E \ F \ G \ H \ I \ J \ K \ L \ M \ N \ O \ P \ Q \ R \ S \ T \ U \ V \ W \ X \ Y \ Z}</math> ;备注:花括号{}内只能使用拉丁字母和数字,不能使用希腊字母如\alpha等。 ===斜粗体=== ;语法:<code>'''\boldsymbol{'''''012…abc…ABC…\alpha \beta \gamma…'''''}'''</code> ;效果:<math>\boldsymbol{0 \ 1 \ 2 \ 3 \ 4 \ 5 \ 6 \ 7 \ 8 \ 9}</math> :<math>\boldsymbol{a \ b \ c \ d \ e \ f \ g \ h \ i \ j \ k \ l \ m \ n \ o \ p \ q \ r \ s \ t \ u \ v \ w \ x \ y \ z}</math> :<math>\boldsymbol{A \ B \ C \ D \ E \ F \ G \ H \ I \ J \ K \ L \ M \ N \ O \ P \ Q \ R \ S \ T \ U \ V \ W \ X \ Y \ Z}</math> :<math>\boldsymbol{\alpha \ \beta \ \gamma \ \delta \ \epsilon \ \zeta \ \eta \ \theta \ \iota \ \kappa \ \lambda \ \mu \ \nu \ \xi \ o \ \pi \ \rho \ \sigma \ \tau \ \upsilon \ \phi \ \chi \ \psi \ \omega}</math> ;备注:使用<code>\boldsymbol{}</code>可以加粗所有合法的符号。 ===斜体数字=== ;语法:<code>'''\mathit{'''''0123456789'''''}'''</code> ;效果:<math>\mathit{0123456789}\!</math> === 罗马体 === ;语法:<code>'''\mathrm{'''''012…abc…ABC…'''''}'''或'''\mbox{}'''或'''\operatorname{}'''</code> ;效果:<math>\mathrm{0123456789}\ </math> :<math>\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}\ </math> :<math>\mathrm{abcdefghijklmnopqrstuvwxyz}\ </math> ;备注:罗马体可以使用数字和[[拉丁语/字母|拉丁字母]]。 === 哥特体 === ;语法:<code>'''\mathfrak{'''''012…abc…ABC…'''''}'''</code> ;效果:<math> \mathfrak{0 \ 1 \ 2 \ 3 \ 4 \ 5 \ 6 \ 7 \ 8 \ 9}</math> :<math> \mathfrak{a \ b \ c \ d \ e \ f \ g \ h \ i \ j \ k \ l \ m \ n \ o \ p \ q \ r \ s \ t \ u \ v \ w \ x \ y \ z}</math> :<math> \mathfrak{A \ B \ C \ D \ E \ F \ G \ H \ I \ J \ K \ L \ M \ N \ O \ P \ Q \ R \ S \ T \ U \ V \ W \ X \ Y \ Z}</math> ;备注:哥特体可以使用数字和拉丁字母。 === 手写体 === ;语法:<code>'''\mathcal{'''''ABC…'''''}'''</code> ;效果:<math>\mathcal{ABCDEFGHIJKLMNOPSTUVWXYZ}</math> ;备注:手写体仅对大写拉丁字母有效。 === 希伯来字母 === ;语法:<code>\aleph\beth\gimel\daleth</code> ;效果:<math>\aleph\beth\gimel\daleth</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 '''\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> 显示︰<br> :<math>\Bigg ( \bigg [ \Big \{ \big \langle \left | \| x \| \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> *背景顏色︰<code>-{}-{\pagecolor{色調}表達式}</code> ;支援色調表: {|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> ==強制使用PNG== 假設我們現在需要一個PNG圖的數學公式。<br /> 若輸入 <code>2x=1</code> 的話: :<math>2x=1</math> ::'''↑''' 這並不是我們想要的。 若你需要強制輸出一個PNG圖的數學公式的話,你可於公式的最後加上 <code>\,</code>(小空格,但於公式的最後是不會顯示出來)。 :輸入 <code>2x=1 \,</code>的話: :<math>2x=1 \,</math> ::'''↑''' 以PNG圖輸出。 你也可以使用 <code>\,\!</code>,這個亦能強制使用PNG圖像。 :<span style="font-size:12px;">閱讀更多:[[:en:Help:Displaying_a_formula#Forced_PNG_rendering|Help:Displaying a formula#Forced PNG rendering]]</span> ==注释== {{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 [[Category:帮助]]
该页面使用的模板:
Template:Dead link
(
查看源代码
)
Template:En
(
查看源代码
)
Template:LaTeX
(
查看源代码
)
Template:Reflist
(
查看源代码
)
Template:TeX
(
查看源代码
)
Template:Tl
(
查看源代码
)
返回
Help:数学公式
。
导航菜单
个人工具
登录
命名空间
帮助
讨论
不转换
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息