mol2chemfig, a tool for rendering chemical structures from molfile or SMILES format to LATE X code

Eric K Brefo-Mensah1, Michael Palmer

  • 1Department of Chemistry, University of Waterloo, 200 University Avenue West, Waterloo, Ontario, N2L 3G1, Canada. mpalmer@uwaterloo.ca.

Summary

This study introduces mol2chemfig, a Python program that converts chemical structures from molfile or SMILES formats into LaTeX code using the chemfig package. This tool simplifies the inclusion of chemical diagrams in scientific documents.

Related Concept Videos

Molecular Models02:00

Molecular Models

Physical models representing molecular architectures of chemical compounds play essential roles in understanding chemistry. The use of molecular models makes it easier to visualize the structures and shapes of atoms and molecules.
Molecular Shapes01:18

Molecular Shapes

Molecules have characteristic shapes that are crucial for their function. The arrangement of various electron groups around the central atom dictates their molecular geometry. Electron pairs in the valence shell of a central atom will adopt an arrangement that minimizes repulsions between the electron pairs by maximizing the distance between them. The valence electrons form either bonding pairs, located primarily between bonded atoms, or lone pairs.
Two regions of electron density in a diatomic...
Lewis Structures of Molecular Compounds and Polyatomic Ions02:54

Lewis Structures of Molecular Compounds and Polyatomic Ions

To draw Lewis structures for complicated molecules and molecular ions, it is helpful to follow a step-by-step procedure as outlined:
Hückel's Rule Diagram of π MOs: Frost Circle01:08

Hückel's Rule Diagram of π MOs: Frost Circle

The Frost circle or the inscribed polygon method is a graphical method for determining the relative energies of π molecular orbitals (MOs) for planar, fully conjugated, and monocyclic compounds. This method was first described by A. A. Frost and Boris Musulin in 1953.
A Frost circle is constructed by drawing a polygon whose number of edges is equal to the number of carbons of the given cyclic system, with one of the vertices pointing down. Then, a circle is drawn enclosing the polygon so that...
Molecular Compounds: Formulas and Nomenclature03:10

Molecular Compounds: Formulas and Nomenclature

Molecular compounds or covalent compounds result when atoms share electrons to form covalent bonds. Since there is no electron transfer, molecular compounds do not contain ions; instead, they consist of discrete, neutral molecules.
Chemical Formulas02:52

Chemical Formulas

A chemical formula presents information about the proportions of atoms constituting a particular chemical compound or molecule, mainly using symbols of elements and numbers. At times other symbols, such as dashes, parentheses, brackets, commas, plus, and minus signs, are also used. A chemical formula can be one of three types – molecular, empirical, and structural.