Molecular orbital diagrams
Molecular orbital diagrams provide qualitative information about the structure and stability of the electrons in a molecule. This article explains how to create molecular orbital diagrams in LaTeX by means of the package MOdiagram. For information about the more traditional molecular structure diagrams see our documentation about chemistry formulae.
Introduction
Molecular diagrams are created using the environment MOdiagram
. Below you can see the simplest working example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{modiagram}
\begin{document}
\begin{MOdiagram}
\atom{left}{1s, 2s, 2p}
\end{MOdiagram}
\end{document}
First, the package MOdiagrams is imported by
\usepackage{modiagram}
The basic command to draw MO diagrams is \atom
. This command has two parameter in the example:
left
. The alignment of the atom.1s, 2s, 2p
Are the energy sub-levels to be drawn. These can be further customized as you will learn in the next section.
Open an example of the MOdiagram package in ShareLaTeX
Atoms
You can pass some extra information about the atomic orbitals to the command presented in the introductory example.
\begin{MOdiagram}
\atom{right}{
1s = { 0; pair} ,
2s = { 1; pair} ,
2p = {1.5; up, down }
}
\atom{left}{
1s = { 0; pair} ,
2s = { 1; pair} ,
2p = {1.5; up, down }
}
\end{MOdiagram}
In this example, two identical atoms are drawn, left and right-aligned respectively. The second argument in the command \atom
contains some extra information. The generic syntax to create atoms is:
1s = {energy; specifications}
instead of 1s other possible values are 2s and 2p
- energy. Is the energy level, this number determines the vertical spacing in the diagram. If omitted is set to 0.
- specifications. A comma-separated list of the spins of the electrons contained in each orbital. The possible values are
up
,down
,pair
and empty (only the semicolon is typed) for an empty orbital. If omitted is set topair
.
For a better understanding of this syntax, below is a description of the commands in the previous example:
1s = { 0; pair}
. The sub-level1s
is in the0
energy level, the orbital contains two (paired) electrons.
2s = { 1; pair}
. The sub-level2s
drawn in the1
energy level, there are two electrons in this orbital.
2p = {1.5; up, down}
. The sub-level2p
drawn in the energy level1.5
, i.e. in the diagram the vertical spacing is set to 1.5; this sub-energy level has two electrons: one with spinup
in the first orbital and another with spindown
in the second orbital.
The same commands are repeated for the second atom on the right.
Open an example of the MOdiagram package in ShareLaTeX
Molecules
The syntax for molecules is very similar to that of the \atom
command presented in the previous section. The energy sub-levels 1s
, 2s
and 2p
become 1sMO
, 2sMO
and 2pMO
respectively.
\begin{MOdiagram}
\atom{left}{1s}
\atom{right}{1s={;up}}
\molecule{
1sMO={0.75;pair,up}
}
\end{MOdiagram}
The syntax for \molecule
takes two parameters just as the command \atom
, but the orbital specifications are slightly different.
1sMO={0.75;pair,up}
0.75
is now the ratio (energy gain)/(energy loss).pair, up
are the spins of the electrons in the bonding and anti-bonding molecular orbitals, respectively.
Below you can see a more elaborate example to help understanding the syntax.
\begin{MOdiagram}
\atom{left}{
1s, 2s, 2p = {;pair,up,up}
}
\atom{right}{
1s, 2s, 2p = {;pair,up,up}
}
\molecule{
1sMO, 2sMO, 2pMO = {;pair,pair,pair,up,up}
}
\end{MOdiagram}
Three atoms are set on each side of the diagram and the corresponding molecule in the middle.
Open an example of the MOdiagram package in ShareLaTeX
Naming scheme
There is no straightforward way to set captions and names for elements in a MO diagram, but since this package is based on TikZ you can use tikz commands within the MOdiagram
environment:
\begin{MOdiagram}
\atom{left}{1s}
\atom{right}{1s={;up}}
\molecule{
1sMO={;pair,up}
}
\draw[<-,shorten <=8pt,shorten >=15pt,blue]
(1sigma*) --++(2,1) node {anti-bonding MO};
\end{MOdiagram}
Notice that the name of the anti-bonding orbital 1sigma*
can be used for relative positions. Other labels available are:
- 1sigma
- 2sigma
- 2pisigma
- 2piy
- 2piz
and the corresponding starred versions.
Open an example of the MOdiagram package in ShareLaTeX
Further reading
For more information see:
Overleaf guides
- Creating a document in Overleaf
- Uploading a project
- Copying a project
- Creating a project from a template
- Including images in Overleaf
- Exporting your work from Overleaf
- Working offline in Overleaf
- Using Track Changes in Overleaf
- Using bibliographies in Overleaf
- Sharing your work with others
- Debugging Compilation timeout errors
- How-to guides
LaTeX Basics
- Creating your first LaTeX document
- Choosing a LaTeX Compiler
- Paragraphs and new lines
- Bold, italics and underlining
- Lists
- Errors
Mathematics
- Mathematical expressions
- Subscripts and superscripts
- Brackets and Parentheses
- Fractions and Binomials
- Aligning Equations
- Operators
- Spacing in math mode
- Integrals, sums and limits
- Display style in math mode
- List of Greek letters and math symbols
- Mathematical fonts
Figures and tables
- Inserting Images
- Tables
- Positioning Images and Tables
- Lists of Tables and Figures
- Drawing Diagrams Directly in LaTeX
- TikZ package
References and Citations
- Bibliography management in LaTeX
- Bibliography management with biblatex
- Biblatex bibliography styles
- Biblatex citation styles
- Bibliography management with natbib
- Natbib bibliography styles
- Natbib citation styles
- Bibliography management with bibtex
- Bibtex bibliography styles
Languages
- Multilingual typesetting on Overleaf using polyglossia and fontspec
- International language support
- Quotations and quotation marks
- Arabic
- Chinese
- French
- German
- Greek
- Italian
- Japanese
- Korean
- Portuguese
- Russian
- Spanish
Document structure
- Sections and chapters
- Table of contents
- Cross referencing sections and equations
- Indices
- Glossaries
- Nomenclatures
- Management in a large project
- Multi-file LaTeX projects
- Hyperlinks
Formatting
- Lengths in LaTeX
- Headers and footers
- Page numbering
- Paragraph formatting
- Line breaks and blank spaces
- Text alignment
- Page size and margins
- Single sided and double sided documents
- Multiple columns
- Counters
- Code listing
- Code Highlighting with minted
- Using colours in LaTeX
- Footnotes
- Margin notes
Fonts
Presentations
Commands
Field specific
- Theorems and proofs
- Chemistry formulae
- Feynman diagrams
- Molecular orbital diagrams
- Chess notation
- Knitting patterns
- CircuiTikz package
- Pgfplots package
- Typing exams in LaTeX
- Knitr
- Attribute Value Matrices
Class files
- Understanding packages and class files
- List of packages and class files
- Writing your own package
- Writing your own class
- Tips