Chemfig
   HOME

TheInfoList



OR:

Chemfig is a
LaTeX Latex is an emulsion (stable dispersion) of polymer microparticles in water. Latices are found in nature, but synthetic latices are common as well. In nature, latex is found as a wikt:milky, milky fluid, which is present in 10% of all floweri ...
package used for creating graphical representations of
chemical structure A chemical structure of a molecule is a spatial arrangement of its atoms and their chemical bonds. Its determination includes a chemist's specifying the molecular geometry and, when feasible and necessary, the electronic structure of the target m ...
s,
molecule A molecule is a group of two or more atoms that are held together by Force, attractive forces known as chemical bonds; depending on context, the term may or may not include ions that satisfy this criterion. In quantum physics, organic chemi ...
s, reaction schemes, and
structural formula The structural formula of a chemical compound is a graphic representation of the molecular structure (determined by structural chemistry methods), showing how the atoms are connected to one another. The chemical bonding within the molecule is al ...
s. It provides a simple and flexible
syntax In linguistics, syntax ( ) is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituenc ...
to define
atoms Atoms are the basic particles of the chemical elements. An atom consists of a nucleus of protons and generally neutrons, surrounded by an electromagnetically bound swarm of electrons. The chemical elements are distinguished from each other ...
, bonds,
angles Angles most commonly refers to: *Angles (tribe), a Germanic-speaking people that took their name from the Angeln cultural region in Germany *Angle, a geometric figure formed by two rays meeting at a common point Angles may also refer to: Places ...
, rings. It allows for the construction of both organic and inorganic molecules using LaTeX markup.


Features

* Customizable
bond angles Molecular geometry is the three-dimensional arrangement of the atoms that constitute a molecule. It includes the general shape of the molecule as well as bond lengths, bond angles, torsional angles and any other geometrical parameters that deter ...
and lengths * Support for single, double, triple, and
aromatic In organic chemistry, aromaticity is a chemical property describing the way in which a conjugated system, conjugated ring of unsaturated bonds, lone pairs, or empty orbitals exhibits a stabilization stronger than would be expected from conjugati ...
bonds *
Cyclic compound A cyclic compound (or ring compound) is a term for a compound in the field of chemistry in which one or more series of atoms in the compound is connected to form a ring. Rings may vary in size from three to many atoms, and include examples where ...
s and ring structures * Reaction arrows and mechanisms * Integration with
TikZ PGF/Ti''k''Z is a pair of languages for producing vector graphics (e.g., technical illustrations and drawings) from a geometric/algebraic description, with standard features including the drawing of points, lines, arrows, paths, circles, ellipse ...
for advanced diagramming and mhchem for typesetting chemical equations * Support for submolecules and nested chemical environments


Syntax

Package preamble: \input chemfig.tex \usepackage Chemfig uses a simple syntax based on TeX commands. For example: \chemfig Produces a structural formula for
acetic acid Acetic acid , systematically named ethanoic acid , is an acidic, colourless liquid and organic compound with the chemical formula (also written as , , or ). Vinegar is at least 4% acetic acid by volume, making acetic acid the main compone ...
and a structure would render as: There are 9 different bond types: \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ \chemfig\\ Molecular angles of a
methane Methane ( , ) is a chemical compound with the chemical formula (one carbon atom bonded to four hydrogen atoms). It is a group-14 hydride, the simplest alkane, and the main constituent of natural gas. The abundance of methane on Earth makes ...
molecule:
\chemfig


See also

*
Comparison of TeX editors The following is a comparison of TeX editors. Table of editors See also * Formula editor * Comparison of word processors * Comparison of text editors * Comparison of desktop publishing software * List of TeX extensions *Chemical structure ...
*
Computational chemistry Computational chemistry is a branch of chemistry that uses computer simulations to assist in solving chemical problems. It uses methods of theoretical chemistry incorporated into computer programs to calculate the structures and properties of mol ...
*
Jmol Jmol is computer software for molecular modelling of chemical structures in 3 dimensions. It is an open-source Java viewer for chemical structures in 3D. The name originated from ''Jva (the programming language) + olcules, and also the m ...
-
molecular modelling Molecular modelling encompasses all methods, theoretical and computational, used to model or mimic the behaviour of molecules. The methods are used in the fields of computational chemistry, drug design, computational biology and materials scien ...
of
chemical structure A chemical structure of a molecule is a spatial arrangement of its atoms and their chemical bonds. Its determination includes a chemist's specifying the molecular geometry and, when feasible and necessary, the electronic structure of the target m ...
s in 3 dimensions *
List of TeX extensions A list is a set of discrete items of information collected and set forth in some format for utility, entertainment, or other purposes. A list may be memorialized in any number of ways, including existing only in the mind of the list-maker, bu ...
* mhchem *
Molecular geometry Molecular geometry is the three-dimensional arrangement of the atoms that constitute a molecule. It includes the general shape of the molecule as well as bond lengths, bond angles, torsional angles and any other geometrical parameters that det ...
*
Molecular graphics Molecular graphics is the discipline and philosophy of studying molecules and their properties through graphical representation. IUPAC limits the definition to representations on a "graphical display device". Ever since Dalton's atoms and Keku ...
*
Overleaf Overleaf is software for running a collaborative cloud-based LaTeX editor used for writing, editing and publishing scientific documents. More precisely, the term "Overleaf" may refer to the free-licensed software itself, to the main website runn ...
-
web app A web application (or web app) is application software that is created with World Wide Web, web technologies and runs via a web browser. Web applications emerged during the late 1990s and allowed for the server to Dynamic web page, dynamically ...
that does chemfig package
chemical structure A chemical structure of a molecule is a spatial arrangement of its atoms and their chemical bonds. Its determination includes a chemist's specifying the molecular geometry and, when feasible and necessary, the electronic structure of the target m ...
s *
TikZ PGF/Ti''k''Z is a pair of languages for producing vector graphics (e.g., technical illustrations and drawings) from a geometric/algebraic description, with standard features including the drawing of points, lines, arrows, paths, circles, ellipse ...
*
XyMTeX ΧyMTeΧ is a macro package for TeX which renders high-quality chemical structure diagrams. Using the typesetting system, the name is styled as . It was originally written by . Molecules are defined by TeX markup. Example The following code pr ...
- another LaTeX structural formula package


References

{{reflist


External links


Chemfig on CTAN

Wikibooks on chemfig and chemical graphics

chemfig software package
Free chemistry software Free TeX software