I need to type an inline chemical formula such as HO-(C=O)-(Benzene)-(C=O)-OH. Is there a way I could insert a small benzene symbol (something compact, without using tikzpicture environment, \schemestart...\schemestop etc.)?

I know there's a unicode symbol but I couldn't make it work, nor do I think it's optimal.

Right now I have:


Where "Bz" is where the benzene symbol should go.

  • 1
    Not everyone is acquainted with chemistry. The expected output and a minimal working example (MWE) are appreciated. – CroCo Sep 29 '15 at 3:22
  • The wasysym package has a hexagon symbol. You may need to adjust it to look good. – John Kormylo Sep 29 '15 at 4:05
  • AFAIK there is no chemfig environment?! But the \chemfig macro has optional arguments which allow scaling. Other than that simply C6H4 would of course work... – cgnieder Sep 29 '15 at 6:14
  • @clemens, question updated – Sparkler Sep 29 '15 at 12:29

To get the \smallbenz, I stack a \circ inside of a \hexagon. I then use \scalerel* to make it an appropriate size, which I arbitrarily chose as .8\baselineskip tall, shifted down by .2\baselineskip for centering. Those values can be changed.

EDITED to lessen the vertical stacking gap to 2pt. RE-EDITED to provide a 2nd possibility, with dashes inserted around the inside of a hexagon.



enter image description here

Alternatively, you could use \chemfig:



enter image description here

  • this is pretty neat, and you gave me an idea: \def\smallbenz{\chemfig[scale=0.15][scale=0.15]{[:-30]**6(------)}}. The problem is that when I use it it's not aligned to the middle of the line, i.e. if I type -\smallbenz-, the dashes are at the level of the top of the benzene... ideas? – Sparkler Sep 29 '15 at 15:50
  • 1
    @Sparkler Could you apply a \raisebox{length}{\chemfig{...}}? – Steven B. Segletes Sep 29 '15 at 16:04

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.