Chemical drawings

Poly(carbonate), drawn using chemfig (LaTeX)

Chemfig is an excellent LaTeX package that enables you to easily draw chemical structures. One needs to get used to the code chemfig “eats.” The basic code is simple, as can be seen from the following line of code:

\chemfig{[:30]--[::-60]--[::-60](=[::-60]O)-OH}

produces

Structure of pentanoate, typeset by the LaTeX package “chemfig”
Structure of pentanoate, typeset by the LaTeX package “chemfig”

Many more structures can be typeset using chemfig. Carbon rings and polymer brackets are easy to code and will be typeset beautifully. The following snippet of code

\chemfig{[:0]-[@{op,.5}]O-**6(---
(-C(-[::90]CH_3)(-[::270]CH_3)-**6(---
(-O-C(=[::90]O)-[@{cl,0.5}])
---))
---)}
\polymerdelim[height=20pt, depth=20pt, indice=\!\!n, delimiters={[]}]{op}{cl}

is typeset as

Structure of poly(carbonate)
Structure of poly(carbonate)

Chemfig can even typeset complete reaction mechanisms:

Keto-enol tautomerization of PVP
Keto-enol tautomerization of PVP

Set your Text guides you in chemical drawings

A course or consultation with Set your Text enables you to produce excellent chemical drawings. Please get in touch for a talk on the options available.

Tags

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

When you send this form, your comment appears below this blog after approval. You decide yourself on giving your name and the subject of your comment. Your comment and optional name and subject are stored in the database of the website. This enables the website to display the comments after approval. See for more information the privacy statement