5

The following code produce the molecule shown in the first picture:

\documentclass{article}
\usepackage{chemfig}
\begin{document}

\setchemfig{bond join=true, atom sep=2.5em, bond style={line width=1.pt}}
\chemfig{A-=[:330]B}

\end{document}

FirstPicture

I'd like to know if it's possible to make better looking unions between the single and the double bonds as shown in the second picture.

enter image description here

1
  • General recommendation regarding screenshots: use formats with lossless compression such as PNG. JP(E)G's lossy compression sometimes adds artifacts that often hinder readability, especially in typography-related cases of applied TeX. – andselisk Apr 11 at 6:31
6

See chemfig manual, section Shifted double bonds:

All double bonds are made up of two line segments, and these segments are drawn on either side of the imaginary line along which a single bond would be drawn. It is possible to shift a double bond so that one of the line segments lies on the imaginary line. The other segment is then shifted above or below the bond. Actually, it is more correct to say “left” or “right” of the imaginary line, as the bond is traversed in the direction of drawing.

To shift the bond to the left, write “=^” and to shift it to the right, write “=_”:

Applied to your MWE:

\documentclass{article}
\usepackage{chemfig}

\begin{document}
    
\setchemfig{bond join=true, atom sep=2.5em, bond style={line width=1.pt}}
\chemfig{A-=_[:330]B}
\chemfig{A-=^[:330]B}
    
\end{document}

Shifted bonds

P. S. If you want to make the structure look IUPAC-compliant, you need to invest some extra work as your style and chemfig defaults are a bit off general recommendations [1, 2]. Same goes for the famous "ACS Document 1996" style (ACS author guidelines (PDF)).

References

  1. Brecher, J. Graphical Representation of Stereochemical Configuration (IUPAC Recommendations 2006). Pure and Applied Chemistry 2009, 78 (10), 1897–1970. DOI: 10.1351/pac200678101897. (Free Access)
  2. Brecher, J. Graphical Representation Standards for Chemical Structure Diagrams (IUPAC Recommendations 2008). Pure and Applied Chemistry 2009, 80 (2), 277–410. DOI: 10.1351/pac200880020277. (Free Access)

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.