使用方法/chem:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的2个中间版本)
第12行: 第12行:
请注意,MediaWiki中的mhchem支持仍然存在主要问题。通过启用扩展功能并使用格式化单个项目,可以解决某些问题。例如, <nowiki><math chem>\ce</nowiki>
请注意,MediaWiki中的mhchem支持仍然存在主要问题。通过启用扩展功能并使用格式化单个项目,可以解决某些问题。例如, <nowiki><math chem>\ce</nowiki>


{{leftrightflex|
{{Double-columns|
<pre>
<pre>
<math chem>\ce{pIC_{50}} = -\log_{10} \ce{(IC_{50})}</math></pre>
<math chem>\ce{pIC_{50}} = -\log_{10} \ce{(IC_{50})}</math></pre>
第136行: 第136行:


===Reaction arrows===
===Reaction arrows===
{{markup|style=vertical-align:middle
{| class="wikitable"
|-
|<nowiki><chem>A ->B</chem></nowiki>
|<nowiki><chem>A ->B</chem></nowiki>
|<chem>A -> B</chem>
|<chem>A -> B</chem>
|-
|<nowiki><chem>A <- B</chem></nowiki>
|<nowiki><chem>A <- B</chem></nowiki>
|<chem>A <- B</chem>
|<chem>A <- B</chem>
|-
|<nowiki><chem>A <=> B</chem></nowiki>
|<nowiki><chem>A <=> B</chem></nowiki>
|<chem>A <=> B</chem>
|<chem>A <=> B</chem>
|-
|<nowiki><chem>A <=>> B</chem></nowiki>
|<nowiki><chem>A <=>> B</chem></nowiki>
|<chem>A <=>> B</chem>
|<chem>A <=>> B</chem>
|-
|<nowiki><chem>A <<=> B</chem></nowiki>
|<nowiki><chem>A <<=> B</chem></nowiki>
|<chem>A <<=> B</chem>
|<chem>A <<=> B</chem>
|-
|<syntaxhighlight lang="latex" inline><chem>A ->[{}\atop x] B</chem></syntaxhighlight>
|<syntaxhighlight lang="latex" inline><chem>A ->[{}\atop x] B</chem></syntaxhighlight>
|<chem>A ->[{}\atop x] B</chem>
|<chem>A ->[{}\atop x] B</chem>
|-
|<syntaxhighlight lang="latex" inline><chem>A ->[\text{text above}][\text{text below}] B</chem></syntaxhighlight>
|<syntaxhighlight lang="latex" inline><chem>A ->[\text{text above}][\text{text below}] B</chem></syntaxhighlight>
|<chem>A ->[\text{text above}][\text{text below}] B</chem>
|<chem>A ->[\text{text above}][\text{text below}] B</chem>
|-
|<syntaxhighlight lang="latex" inline><chem>A ->[{}\atop\ce{+H2O}] B</chem></syntaxhighlight>
|<syntaxhighlight lang="latex" inline><chem>A ->[{}\atop\ce{+H2O}] B</chem></syntaxhighlight>
|<chem>A ->[{}\atop\ce{+H2O}] B</chem>
|<chem>A ->[{}\atop\ce{+H2O}] B</chem>
}}
|}
==== Comparison of arrow symbols ====
==== Comparison of arrow symbols ====
{{markup
 
|<nowiki><math>\rightarrow</math></nowiki>|<math>\rightarrow</math>
{| class="wikitable"
|<nowiki><math>\rightleftarrows</math></nowiki>|<math>\rightleftarrows</math>
|-
|<nowiki><math>\rightleftharpoons</math></nowiki>|<math>\rightleftharpoons</math>
|<nowiki><math>\rightarrow</math></nowiki>
|<nowiki><math>\leftrightarrow</math></nowiki>|<math>\leftrightarrow</math>
|<math>\rightarrow</math>
|-
|<nowiki><math>\rightleftarrows</math></nowiki>
|<math>\rightleftarrows</math>
|-
|<nowiki><math>\rightleftharpoons</math></nowiki>
|<math>\rightleftharpoons</math>
|-
|<nowiki><math>\leftrightarrow</math></nowiki>
|<math>\leftrightarrow</math>
|-
|<nowiki><math>\longrightarrow</math>
|<nowiki><math>\longrightarrow</math>
<chem>-></chem></nowiki>|<math>\longrightarrow</math><br/><chem>-></chem>
<chem>-></chem></nowiki>
|<math>\longrightarrow</math><br/><chem>-></chem>
|-
|<nowiki><math>\rightleftharpoons</math></nowiki>
|<nowiki><math>\rightleftharpoons</math></nowiki>
<nowiki><chem><=></chem></nowiki>|<math>\rightleftharpoons</math><br/><chem><=></chem>
<nowiki><chem><=></chem></nowiki>
|<math>\rightleftharpoons</math><br/><chem><=></chem>
|-
|<nowiki><math>\longleftrightarrow</math>
|<nowiki><math>\longleftrightarrow</math>
<chem><-></chem></nowiki>|<math>\longleftrightarrow</math><br/><chem><-></chem>
<chem><-></chem></nowiki>
}}
|<math>\longleftrightarrow</math><br/><chem><-></chem>
|}


===Further examples using ordinary LaTeX tags===
===Further examples using ordinary LaTeX tags===
第180行: 第203行:
\underbrace{\ce{2Fe3O4}}_{\text{magnetite}} + \ce{1/2 O2 ->}\ &{\color{BrickRed}\underbrace{\ce{3(\alpha{-}Fe2O3)}}_{\text{hematite}}}
\underbrace{\ce{2Fe3O4}}_{\text{magnetite}} + \ce{1/2 O2 ->}\ &{\color{BrickRed}\underbrace{\ce{3(\alpha{-}Fe2O3)}}_{\text{hematite}}}
\end{align}</math>
\end{align}</math>
To align the equations or color them, use {{xtag|math chem}} and {{code|\ce}}.
{{-}}