TransWikia.com

Arrows in Chemfig User-Package - Resolve Too Large Arrows

TeX - LaTeX Asked on January 23, 2021

I am trying to use the chemfig user-package. This is the code I am using:

begin{figure}[htb!]
centering
chemfig{R-CH=CH_2 -> C(-[3]H)(-[5]H)=C(-[1]H)(-[7]R) -> -C(-[2]H)(-[6]H)-C(-[2]H)(-[6]R)-}
caption{Vinylgruppe mit allgemeinem Rest R}
label{Vinylgruppe}
end{figure}

I am using the figure environment in order to point to the figure with autoref{Vinylgruppe}

This gives me the following result:

Resolve Too Large Arrows

I would like to get smaller, more elegant reaction arrows. Does someone know how to do this?

Thank you!

One Answer

In chemfig arrows are supposed to be drawn with the arrow command. Each molecule is represented in a separate chemfig command and the arrows are placed in between. You also need schemestart and schemestop commands around the reaction.

MWE:

documentclass{article}
usepackage{chemfig}
begin{document}
begin{figure}[htb!]
centering
schemestart
chemfig{R-CH=CH_2} arrow chemfig{C(-[3]H)(-[5]H)=C(-[1]H)(-[7]R)} arrow chemfig{-C(-[2]H)(-[6]H)-C(-[2]H)(-[6]R)-}
schemestop
caption{Vinylgruppe mit allgemeinem Rest R}
label{Vinylgruppe}
end{figure}
end{document}

Result:

enter image description here

For more information and examples see the chemfig manual, specifically the section on reaction schemes starting from page 49.

Correct answer by Marijn on January 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP