3

I'm new to chemfig and LaTeX in general and have a rather simple question (at least I hope it is simple).

I'm trying to draw a molecule, the MWE looks as follows:

\documentclass[a4paper,11pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{chemfig}
\begin{document}
\setatomsep{1.5em}
\chemfig{*6(=-*5(-*6(-=-=-)=-N(--[::-60])-)=-=-)}
\end{document}

I would like to draw both double bonds next to the 5-ring either inside OR outside of the 5-ring.

How could I possibly achieve that? The double bond shift feature which is described in the manual of the chemfig package doesn't really help, because the length of the bond differs.

EDIT For better unterstanding I have added a picture, orange, or green solutions, both would make me equally happy.

4
  • For both solutions I do not see more problem that just change in the formula some single bonds (- character) by double bonds (= character) and vice versa.
    – Fran
    Aug 14, 2017 at 9:07
  • From my experience, this will only change the position of the doublebond within the molecule but not actually the "side" it appears at.
    – Cheming
    Aug 14, 2017 at 9:20
  • Sorry, I do not understand your problem. What problem there are exactly with use *6(=-*5(-*6(-=-=-=)--N(--[::-60])-)=-=-), for instance, to have two "externals" double bonds in the 5-ring ?
    – Fran
    Aug 14, 2017 at 9:34
  • Wow, thats actually what I was looking for, thank you.
    – Cheming
    Aug 14, 2017 at 10:08

1 Answer 1

4

mwe

\documentclass[a4paper]{scrartcl}
\usepackage{chemfig}
\begin{document}
\setatomsep{1.5em}
\chemfig{*6(=-*5(-*6(-=-=-=)--N(--[::-60])-)=-=-)}\qquad
\chemfig{*6(=-*5(-*6(-=-=-)=-N(--[::-60])-=)-[,,,,draw=none]-=-)}
\end{document}
1
  • I especially like the [,,,,draw=none] in the second example so that the twice defined edge is only drawn once.
    – Wolfram
    Mar 19, 2018 at 6:35

You must log in to answer this question.

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