Open main menu

Changes

1,418 bytes added ,  12:54, 5 November 2021
Created page with "Documentation for \molecule"
<cd:commandgroup name="molecule" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\molecule</tt> is used for typesetting chemical molecules.
</cd:shortdesc>
<cd:variants>
<cd:command category="symbols" file="chem-ini.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-chemical.xml" level="document" name="molecule" variantnumber="1">
<cd:arguments>
<cd:content ordinal="1"></cd:content>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Typeset a chemical molecule. The advantage over {{cmd|chem}} is that it parses a "standard TeX" input for the molecule and automatically uses the correct super- and subscript positions for chemical usage.
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\molecule{H_2SO^4} + \molecule{H_2O} \Rightarrow\ 2\molecule{H_3O^+} + \molecule{HSO_4^{-}}
</context></cd:example><cd:example title="">Super- and subscript curly braces are optional if only digits are involved
<context source="yes">
\molecule{C_12H_22O_11} is fine, but you need \molecule{SO_4^{2-}}.
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="chem-ini.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Symbols"></cd:wikipage>
<cd:commandref name="chem"></cd:commandref></cd:seealso>
</cd:commandgroup>