3

I want to create mesomeric formulas for Benzol, but for some reason, there is a lot of space around the benzol rings in the output... How can I fix this?

$
\left[
\chemfig[][scale=.7]{-[:-30]=^[:30]-[2]=^[: 150]-[:-150]=^[6]}
\leftrightarrow{\makebox[1cm]{}}
\chemfig[][scale=.7]{=^[:-30]-[:30]=^[2]-[: 150]=^[:-150]-[6]}
\right]
$

Output

2
  • Welcome to TeX.SX! What space are you referring to? The vertical one?
    – egreg
    Feb 18, 2017 at 11:37
  • Both... The space below and to the left... Feb 19, 2017 at 7:52

2 Answers 2

5

You get a better result with \schemestart...\schemestop:

\documentclass{article}
\usepackage{chemfig}

\begin{document}

$
\left[
\schemestart[][west]
\chemfig[][scale=.7]{-[:-30]=^[:30]-[2]=^[: 150]-[:-150]=^[6]}
\arrow{<->}
\chemfig[][scale=.7]{=^[:-30]-[:30]=^[2]-[: 150]=^[:-150]-[6]}
\schemestop
\right]
$

\end{document}

enter image description here

1
  • Thanks a lot :) This works great... Just what I was looking for. Feb 18, 2017 at 12:05
10

You do not need at all the math mode for this:

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemleft[\subscheme{
\chemfig[][scale=.7]{-[:-30]=^[:30]-[2]=^[: 150]-[:-150]=^[6]}\arrow{<->}
\chemfig[][scale=.7]{=^[:-30]-[:30]=^[2]-[: 150]=^[:-150]-[6]}}
\chemright]
\schemestop
\end{document}

mwe

1
  • 1
    This is the solution I'd recommend as well. The brackets are centered around the subscheme here… :)
    – cgnieder
    Feb 18, 2017 at 13:02

You must log in to answer this question.

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