0

Can I color the unshared electron pair with Chemfig? With this

R'-[0]\textcolor{red}{\lewis{2:6:,O}}H

The oxygen becomes red, but his unshared electron pair remains in black

  • You are more likely to get the answer you are looking for if you include more details. Usually a complete working version starting from \documentclass all the way down to \end{document} would help a lot! – caverac Mar 11 '18 at 15:30
1

You mean like this?

\documentclass{article}
\usepackage{chemfig}
\usepackage{color}

\setlewis[]{}{}{fill=red, draw=red}

\begin{document}
\chemfig{R'-[0]\textcolor{red}{\lewis{2:6:,O}}H}
\end{document}

enter image description here

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.