LaTeX Writing Chemistry Formulas in LaTeX

AI Thread Summary
To write chemistry formulas in LaTeX effectively, it is recommended to use the text mode for better formatting. For example, using \text{Mg C}_{12} produces a clearer representation than math mode. A common example provided is the reaction 2 \text{H}_2 + \text{O}_2 \rightarrow 2 \text{H}_2\text{O}, which showcases the proper formatting for chemical equations. Additionally, users are directed to a sticky post in the Chemistry forum for further guidance on LaTeX usage in chemistry.
malawi_glenn
Science Advisor
Messages
6,735
Reaction score
2,433
Hi!

How can i write chemistry formulas in LaTeX ?

Such as:
MgC_12 etc...

It does not look good if it is done in math-environment...:rolleyes:
 
Physics news on Phys.org
how do these look?

\text{Mg C}_{12}

2 \text{H}_2 + \text{O}_2 \rightarrow 2 \text{H}_2\text{O}
 
Very nice, many thanks =)
 

Similar threads

Replies
8
Views
3K
Replies
3
Views
3K
Replies
8
Views
3K
Replies
4
Views
2K
Replies
3
Views
2K
Replies
3
Views
1K
Back
Top