This article coincides in timing and pattern with contributions by the same user which have been determined to be AI-generated, and has no significant contributions by other editors. It is presumed to have also been AI-generated, and may be assumed to violate Wikipedia's policies and guidelines. If no editor takes responsibility for it within a five-day grace period, this article may be deleted. To object to proposed deletion, an editor may take responsibility for the content and assume the onus to achieve consensus for its inclusion. Assuming responsibility requires that all content and its sources be closely reviewed and reworked as needed to ensure that they comply with polices and guidelines. This may involve checking that the cited sources support the content and are reliable, determining whether the content is due for inclusion, and rewriting the content to revise any tone issues and resolve possible copyright violations. Once this has been done, this template may be removed. The nominator also gave the following reason for this proposed deletion:
Find sources: "Chemfig" – news · newspapers · books · scholar · JSTOR Reviewer tools: guideline project (talk • log) The article may be deleted if this message remains in place for five days, i.e., after 12:36, 30 October 2026 (UTC). |
| Chemfig | |
|---|---|
| Developer | Christian Tellechea |
| Written in | TeX |
| Operating system | Cross-platform |
| Platform | LaTeX |
| Type | Chemical structure drawing |
| License | LaTeX Project Public License |
| Website | www |
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.
Package preamble:
\input chemfig.tex
\usepackage{chemfig}
Chemfig uses a simple syntax based on TeX commands. For example:
\chemfig{H-C(-[2]H)(-[6]H)-C(=O)-OH}
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:
\chemfig{C(-[:0]H)(-[:90]H)(-[:180]H)(-[:270]H)}