Math & ScienceAsterisk in chemical Structure

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
audreyk
Posts: 23
Joined: Fri Nov 14, 2008 5:57 am

Asterisk in chemical Structure

Post by audreyk »

I've just started using the chemfig package to create structural formulas in chemistry. Can someone show me how to add an asterisk (*) above the single carbon bond?


Thanks
Attachments
Capture.PNG
Capture.PNG (1.54 KiB) Viewed 7173 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Asterisk in chemical Structure

Post by cgnieder »

Here are two quick ideas:

Code: Select all

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

First idea (note: star-code added \emph{after} the second atom of the bond):

\chemfig{C-C(-[::180,.5]-[::-90,.1,,,draw=none]{{*}})}

\definesubmol\starbond{-[::180,.5]-[::-90,.1,,,draw=none]{{*}}}
\chemfig{C-[:-40]C(!\starbond)} \chemfig{C-[2]C(!\starbond)}

\bigskip
Second idea (needs further adjusting):

\chemfig{C-[@{s1}]C}

\chemfig{C-[@{s2}:-40]C} \chemfig{C-[@{s3}2]C}
\chemmove{
  \node at (s1.90) {*} ;
  \node at (s2.45) {*} ;
  \node at (s3.180) {*} ;
}

\end{document}
Regards
site moderator & package author
audreyk
Posts: 23
Joined: Fri Nov 14, 2008 5:57 am

Re: Asterisk in chemical Structure

Post by audreyk »

Thanks, helps a lot!
Post Reply