Math & Sciencechemfig | Cram Bond Bases

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

chemfig | Cram Bond Bases

Post by bytesmythe »

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.
An example of how the bond should look.
An example of how the bond should look.
goodbond.png (2.79 KiB) Viewed 3785 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.
An example of how the bonds currently look.
An example of how the bonds currently look.
badbond.png (2.96 KiB) Viewed 3785 times
Here is the code used to generate this image:

Code: Select all

Code, edit and compile here:
\documentclass[parskip=full]{scrartcl}
\usepackage{chemfig}
\begin{document}
\chemfig{*6(---(>C)---)}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Is there any way to fix this?


Thanks!
bytesmythe

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

chemfig | Cram Bond Bases

Post by cgnieder »

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:

Code: Select all

Code, edit and compile here:
\documentclass[parskip=full]{scrartcl}
\usepackage{chemfig}
\begin{document}
\setbondstyle{line width=1pt}
\chemfig{*6(---(>#(-1.5pt)C)---)}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
cram.png
cram.png (2.68 KiB) Viewed 3777 times
site moderator & package author
Post Reply