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

1
  • 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, 2018 at 15:30

1 Answer 1

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

0

You must log in to answer this question.

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