3

For a chemistry assignment I need to produce a few Lewis diagrams. It was very simple with a linear molecule where I replaced the bond lines with \quad, but then I had to draw a 3D molecule and when I tried to hide the bonds by setting their color to white, they developed through the electron dots to my dismay.

How can I show the first step in Lewis diagram w/o bond lines and preserve the dots?

\documentclass{standalone}
\usepackage{chemfig}

\begin{document}

\setbondstyle{white}
\schemestart
\chemfig{O=[:30]\lewis{2:5:7:,S}(=[::60]O)=[::-60]O}
\schemestop

\end{document}

enter image description here

3

Use \setbondstyle{draw=none} instead of \setbondstyle{white}:

enter image description here

Complete code:

\documentclass{standalone}
\usepackage{chemfig}

\begin{document}

\setbondstyle{draw=none}

\chemfig{O=[:45]\lewis{2:5:7:,S}(=[:90]O)=[:-45]O}

\end{document}

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.