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.

0

1 Answer 1

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
  • 2
    It is also enough to add [,{>}] after the anchor. May 18, 2019 at 10:58
  • @KessVargavind that works too, thanks for your useful addition. May 18, 2019 at 11:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .