LaTex (5) Basic Chemical Grammar

1. Molecule

SyntaxDisplayDescription
\ce{Fe(OH)2}\(\ce{Fe(OH)2}\)ferrous hydroxide
\ce{CaCO3}\(\ce{CaCO3}\)calcium carbonate
\ce{(NH4)2S}\(\ce{(NH4)2S}\)ammonium sulfide
\ce{Sb2O3}\(\ce{Sb2O3}\)antimony trioxide
\ce{H2O}\(\ce{H2O}\)water

2, ion

SyntaxDisplayDescription
\ce{H+}\(\ce{H+}\)hydrogen ion
\ce{NO3-}\(\ce{NO3-}\)nitrate
\ce{Ca2+}\(\ce{Ca2+}\)Calcium ion (wrong spelling)
\ce{Ca^2+}\(\ce{Ca^2+}\)Calcium ion (correct spelling)
\ce{NH4+}\(\ce{NH4+}\)ammonium
\ce{CrO4^2}\(\ce{SO4^2-}\)Sulfate
\ce{CrO4^2-}\(\ce{CrO4^2-}\)hexavalent chromate

Note: If the charge number is greater than 1, you need to use ^ to specify it as a superscript, otherwise it will display the above error demonstration.

In addition, in chemical formulas and equations in LaTeX, spaces around symbols are very important.
For example: H + ... means hydrogen atom plus ..., H+ + ... means hydrogen ion plus ....

3, math and fonts

You can use $...$ in chemical formulas to add mathematical formulas.
In addition to chemical formulas, other letters, such as coefficients, indicating cis-trans isomerism, etc., must be written in italics.

SyntaxDisplayDescription
\ce{xH2O}\(\ce{xH2O}\)(wrong spelling)
\ce{$x$H2O}\(\ce{$x$H2O}\)(Correct spelling)
\ce{{C_$x$H_$y$} + \ce{{$z$O2} - \ce{{$x$CO2} + \ce{{$\frac{y}{2}$ H2O}}\(\ce{C_$x$H_$y$} + \ce{$z$O2} - \ce{$x$CO2} + \ce{$\frac{y}{2 }$H2O}\)Example with parameter equation

Cis-trans isomerism: Take cis-2-butene as an example, represented by \ce{$cis${-}CH3CH=CHCH3}, the final rendering is: \(\ce{$cis${-}CH3CH =CHCH3}\)

4, valence and description

You can use \overset{superscript}{text} to indicate valence, and \underset{subscript}{text} to indicate description.

SyntaxDisplayDescription
\ce{\overset{+2}{Fe}\overset{+3}{Fe}_2O4}\(\ce{\overset{+2}{Fe}\overset{+3}{Fe }_2O4}\)Ferric oxide
\ce{Ca\overset{-1}{H}_2}\(\ce{Ca\overset{-1}{H}_2}\)calcium hydride
\underset{\text{glucose}}{\ce{C6H12O6}}\(\underset{\text{glucose}}{\ce{C6H12O6}}\)glucose

Tip:
By convention, valences should be indicated in LaTeX using Roman numerals in the upper right corner. E.g:

SyntaxDisplayDescription
\ce{Fe^{II}}\(\ce{Fe^{II}}\)ferrous iron
\ce{Pb^{IV}}\(\ce{Pb^{IV}}\)quaternary lead

5, isotope

It is recommended to use ^ and _ to represent subscripts and subscripts more clearly.

SyntaxDisplayDescription
\ce{^{227}_{90}Th+}\(\ce{^{227}_{90}Th+}\)Thorium
\ce{^0_{-1}n-}\(\ce{^0_{-1}n-}\)Other examples

6. State of matter

Just like handwriting, brackets + abbreviations are enough.

SyntaxDisplayDescription
\ce{H2_{(aq)}\(\ce{H2_{(aq)}}\)hydrogen solution (assumed to be represented by subscript)
\ce{CO3^{2-}(aq)}\(\ce{CO3^{2-}(aq)}\)carbonate solution
\ce{CaCO3(s)}\(\ce{CaCO3(s)}\)Calcium carbonate solid
\ce{H2O(g)}\(\ce{H2O(g)}\)Gaseous water

Thanks

refer to:

Rolling Sky Wiki
https://rs.miraheze.org/wiki/Help:Chemistry

LaTex (5) Basic Chemical Grammar

https://blog.tsinbei.com/en/archives/673/

Author
Hsukqi Lee
Posted on

2022-12-13

Edited on

2022-12-13

Licensed under

CC BY-NC-ND 4.0

Comments

Name
Mail
Site
None yet