5

I want to recreate the chemical structure of 1,8-cineol in chemfig. On Wikipedia it's shown like this:

enter image description here

The best I can come up with is this code, with an anchor for the oxygen atom:

\documentclass[a4paper]{article}
\usepackage{chemfig}

\begin{document}
\chemfig{*6(-(-[:-90](-[:-30])(-[:-150])(<[:110,1.8]O?))---?(-)--)}
\end{document} 

This results in the following picture:

enter image description here

I have read chemfig's documentation about anchors, but I can't figure out how to make that second bond to the oxygen atom also a cram bond.

2

From the chemfig manual page 15: enter image description here

Thusadding a name and bondtype to the hook (?) can be done:

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{chemfig}

\begin{document}
\chemfig{*6(-(-[:-90](-[:-30])(-[:-150])(<[:110,1.8]O?[a,4]))---?[a,4](-)--)}
\end{document} 

Result :

enter image description here

  • 2
    It is also enough to add [,{>}] after the anchor. – Kess Vargavind May 18 at 10:58
  • @KessVargavind that works too, thanks for your useful addition. – Koen Vervloesem May 18 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.