1

I would like to increase the distance between the arrow of the reaction and the compounds but when I change the value of arrow offset the direction of the arrow gets inverted. Also, when I change the value of compound sep it modifies the size of the arrow and I am not able to understand. As far as I know arrow offset should be the command to adjust the distance of the arrow from the compounds and compound sep thedistance among the compounds but I am not able to understand why they are not working as I expect.

Below I report my code:

\renewcommand * \printatom[1]{\small\ensuremath{\mathrm{#1}}}   
\vspace{1 cm}
\setchemfig{compound sep=6em,arrow offset=0.9em}
\begin{center}
\schemestart
\chemfig{[,0.75]R-[:30]N=[:0]C=[:0]O} + 
\chemfig{R'-[:30]OH}\arrow[0, 0.75]
\chemname{\chemfig{[,0.75]RO-[:30](-[:90,,,1]N(-[:150]H)(-[:30]R))=[:330]O}}{Urethane}
\schemestop
\end{center}
\bigskip
\renewcommand * \printatom[1]{\ensuremath{\mathrm{#1}}}

Thank you in advance for any your help!

1 Answer 1

3
\documentclass[10pt]{article}
\usepackage{chemfig}
\begin{document}
\renewcommand * \printatom[1]{\small\ensuremath{\mathrm{#1}}}   
\vspace{1 cm}
\setchemfig{compound sep=6em,arrow offset=0.9em,scheme debug=true}
\begin{center}
    \schemestart
    \chemfig{[,0.75]R-[:30]N=[:0]C=[:0]O} + 
    \chemfig{R'-[:30]OH}\arrow[0, 0.75]
    \chemname{\chemfig{[,0.75]RO-[:30](-[:90,,,1]N(-[:150]H)(-[:30]R))=[:330]O}}{Urethane}
    \schemestop
\end{center}
\bigskip
\renewcommand * \printatom[1]{\ensuremath{\mathrm{#1}}}
\end{document}

enter image description here

arrow offset=0.9em = 0.9x10pt=9pt=3.163mm

arrow length=0.75x6em-2x0.9em=2.7em=27pt=9,489mm

all distances are correct

3
  • 0.75x6em ... Is it possible to change the that default value 0.75 and make it 1.0?
    – GiacomoDB
    Commented Apr 21, 2021 at 5:45
  • 1
    @GiacomoDB default value is 1. Your values are 0.75 and 6em (between the compounds the correct + sign is \+).
    – polyn
    Commented Apr 21, 2021 at 7:29
  • You are right ... I set 0.75 length and 0° angle.
    – GiacomoDB
    Commented Apr 21, 2021 at 8:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .