TeX - LaTeX Asked on August 1, 2021
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}
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.
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}
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)).
Correct answer by andselisk on August 1, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP