I've been using the chemfig package for drawing Lewis structures but have run into an issue in which I need to show multiple bonds between two atoms in Lewis dot notation as show below.

Multiple bonds between carbon atoms

The code I have so far is:

\lewis{0:,H} \lewis{0:,C} \lewis{4:,C} \lewis{4:,H}

which produces

Lewis structure with chemfig package

Is this structure possible with the chemfig or other package?


It seems that \lewis introduced some negative spaces that need to be compensated. And one can cheat with \vphantom.


enter image description here

  • 2
    “ It seems that \lewis introduced some negative spaces” there is also \Lewis which doesn't ignore its bounding box. – clemens Aug 1 '18 at 7:16
  • @clemens Thanks, I didn't know that! – user121799 Aug 1 '18 at 12:53

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.