4

For my students I need to draw the structural formula of salicylic acid showing the carbon and hydrogen atoms but without the hydrogen-carbon bond.

For this I use the chemfig package and I already have this formula

\chemfig{*6(-=-(-O-[::-60](-[::-60])=[::+60]O)=(-(=[::+60]O)-[::-60]OH)-=)}

enter image description here

But when I put in the hydrogen and carbon

\chemfig{*6(CH-CH=CH-C(-O-[::-60]C(-[::-60]CH_3)=[::+60]O)=CH(-C(=[::+60]O)-[::-60]OH)-HC=)}

I obtain some asymmetry in the cycle.

enter image description here

Does anybody know how to remove this asymmetry?

2
  • 3
    Welcome to TeX - LaTeX! It would be best to complete your code snippet to a minimal document that can be compiled and demonstrates the problem. Commented Dec 16, 2017 at 16:51
  • 2
    OT: That's acetylsalicyclic acid (aspirin) ...
    – Joseph Wright
    Commented Dec 16, 2017 at 16:53

3 Answers 3

7

A ring should be attached to a molecule, i.e. the first CH should be outside the ring definition: CH*6(-...=). To obtain a regular shape, as shown in Section 10.5 of the Chemfig manual, the departure and arrival atoms of the last bond need to be manually set: =[,,2,2]:

\chemfig{CH*6(-CH=CH-C(-O-[::-60]C(-[::-60]CH_3)=[::+60]O)=CH(-C(=[::+60]O)-[::-60]OH)-HC=[,,2,2])}

salicylic acid

\documentclass{standalone}
\usepackage{chemfig}

\begin{document}

    \schemestart
    \chemfig{CH*6(-CH=CH-C(-O-[::-60]C(-[::-60]CH_3)=[::+60]O)=CH(-C(=[::+60]O)-[::-60]OH)-HC=[,,2,2])}
    \schemestop

\end{document}
2

Another way to achieve the wanted result is using -H bond as a branch.

\documentclass{article}
\usepackage{chemfig}
\begin{document}
    \chemfig{C*6((-[::-150]H)-C(-[::-60]H)=C(-[::-60]H)-C(-O-[::-60]C(-[::-60]CH_3)=[::+60]O)=C(-C(=[::+60]O)-[::-60]OH)-C(-[::-60]H)=)}
\end{document}

The output:

enter image description here

2

mwe

\documentclass{article}
\usepackage{chemfig,xcolor}
\begin{document}
\chemfig{HC*6(-\chembelow{C}{H}=CH-C(-O-[:-30]C(-[:-90]CH_3)=O)=C(-C(=[:150]O)-[:30]OH)-HC=[,,2]-)}
\bigskip\par
\chemfig{HC**6(-\chembelow{C}{H}=CH-C(-O-[:-30]C(-[:-90]CH_3)=O)=C(-C(=[:150]O)-[:30]OH)-HC=[,,2]-)}\par
\color{red}\vspace{-6.5em}\hspace{1.1em}\chemfig{**6(------)}
\end{document}

You must log in to answer this question.

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