LaTeX forum ⇒ Math & Sciencechemfig | Cram Bond Bases

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
bytesmythe
Posts: 1
Joined: Wed Feb 08, 2012 8:54 am

chemfig | Cram Bond Bases

Postby bytesmythe » Wed Feb 08, 2012 9:47 am

I'm using chemfig to make some diagrams for a chemistry paper and I was wondering if someone could help me figure out how I can improve the appearance of the cram bonds. I have attached a couple of examples to demonstrate the problem.

The first image shows what I think the bond should look like. This is a snippet of a molecule from Wikipedia and you can see how the cram bond between the sodium and pentane ring has kind of a "notch" at the base so it sits flush against the ring.
goodbond.png
An example of how the bond should look.
goodbond.png (2.79 KiB) Viewed 2603 times

The second image shows what is currently generated. The base of the cram bond sits on the apex of the benzene ring bond and looks a little like it might lose its balance and fall off.
badbond.png
An example of how the bonds currently look.
badbond.png (2.96 KiB) Viewed 2603 times

Here is the code used to generate this image:
\documentclass[parskip=full]{scrartcl}
\usepackage{chemfig}

\begin{document}
\chemfig{*6(---(>C)---)}
\end{document}

Is there any way to fix this?


Thanks!
bytesmythe

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

chemfig | Cram Bond Bases

Postby cgnieder » Wed Feb 08, 2012 10:17 pm

I don't believe there is a general solution without redefining some internal code of chemfig. Maybe I'm mistaken?

However, there is a maybe a compromise by changing the offset of the particular bond:
\documentclass[parskip=full]{scrartcl}
\usepackage{chemfig}

\begin{document}
\setbondstyle{line width=1pt}
\chemfig{*6(---(>#(-1.5pt)C)---)}

\end{document}

cram.png
cram.png (2.68 KiB) Viewed 2595 times
site moderator & package author


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 6 guests