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?

1 Answer 1


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.
    – cgnieder
    Aug 1, 2018 at 7:16
  • @clemens Thanks, I didn't know that!
    – user121799
    Aug 1, 2018 at 12:53

You must log in to answer this question.

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