Writing Chemistry Formulas in LaTeX

Click For Summary

Discussion Overview

The discussion focuses on how to write chemistry formulas using LaTeX, specifically addressing formatting issues when using math environments.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant inquires about writing chemistry formulas in LaTeX, expressing concern about the appearance when using math environments.
  • Another participant provides examples of LaTeX code for writing chemical formulas, suggesting alternatives to improve formatting.
  • A third participant expresses appreciation for the provided examples.
  • One participant directs others to a sticky thread in the Chemistry forum for additional resources.

Areas of Agreement / Disagreement

Participants appear to agree on the need for better formatting options in LaTeX for chemistry formulas, but there is no explicit consensus on the best approach.

Contextual Notes

Some assumptions about the audience's familiarity with LaTeX and chemistry notation may not be addressed, and the discussion does not resolve potential limitations of the suggested methods.

malawi_glenn
Science Advisor
Messages
6,735
Reaction score
2,436
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?

[tex]\text{Mg C}_{12}[/tex]

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

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K