Help:数学公式:修订间差异

帮助页面
添加的内容 删除的内容
(机器人:整理源码)
无编辑摘要
 

(未显示同一用户的2个中间版本)

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


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


== 函数、符号及特殊字符 ==
== 函数、符号及特殊字符 ==
第41行: 第41行:
| <syntaxhighlight lang="text">\arcsin a, \arccos b, \arctan c</syntaxhighlight>
| <syntaxhighlight lang="text">\arcsin a, \arccos b, \arctan c</syntaxhighlight>
| <math>\arcsin a, \arccos b, \arctan c</math>
| <math>\arcsin a, \arccos b, \arctan c</math>
|-
| <syntaxhighlight lang="text">\arccot d, \arcsec e, \arccsc f</syntaxhighlight>
| <math>\arccot d, \arcsec e, \arccsc f</math>
|-
|-
| <syntaxhighlight lang="text">\sinh a, \cosh b, \tanh c, \coth d</syntaxhighlight>
| <syntaxhighlight lang="text">\sinh a, \cosh b, \tanh c, \coth d</syntaxhighlight>
第53行: 第50行:
| <syntaxhighlight lang="text">\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</syntaxhighlight>
| <syntaxhighlight lang="text">\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</syntaxhighlight>
| <math>\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</math>
| <math>\operatorname{argsh}o, \operatorname{argch}p, \operatorname{argth}q</math>
|-
| <syntaxhighlight lang="text">\sgn r, \left\vert s \right\vert</syntaxhighlight>
| <math>\sgn r, \left\vert s \right\vert</math>
|-
|-
| <syntaxhighlight lang="text">\min(x,y), \max(x,y)</syntaxhighlight>
| <syntaxhighlight lang="text">\min(x,y), \max(x,y)</syntaxhighlight>
第1,040行: 第1,034行:
|<math>-\frac{m}{6}</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>


== 小型數學公式 ==
== 小型數學公式 ==