Chemfig is a LaTeX package used for creating graphical representations of chemical structures, molecules, reaction schemes, and structural formulas. It provides a simple and flexible syntax to define atoms, bonds, angles, rings. It allows for the construction of both organic and inorganic molecules using LaTeX markup. Syntax. Package preamble: \input chemfig.tex Chemfig uses a simple syntax based on TeX commands. For example: Produces a structural formula for acetic acid and a structure would render as: There are 9 different bond types: \chemfig{A-B}\\ \chemfig{A=B}\\ \chemfig{A~B}\\ \chemfig{A>B}\\ \chemfig{A<B}\\ \chemfig{A>:B}\\ \chemfig{A<:B}\\ \chemfig{A>|B}\\ \chemfig{A<|B}\\ Molecular angles of a methane molecule: <br>