在 Chemformula 中向下移动箭头

在 Chemformula 中向下移动箭头

我想将箭头和 CO 向下移动,使其更靠近左侧结构的中间。我不确定如何在chemformula包中移动箭头。

我迄今为止的代码:

 \documentclass[border=1mm]{standalone}
  \usepackage{chemfig}
   \usepackage{chemformula}
        \begin{document}

    \chemfig{[:-30]@{g}N-@{a}Fe([:-150]-@{b}N)([:30]-@{c}N)([:-30]-@{d}N)
    ([:90,1.2]-@{e}O_2)([:-90,1.2,,1]-@{f}HISTIDINE) ([:-120,0.83,,,white]-@{z})  
    } \ch{ + CO -> }
    \chemfig{[:-30]@{q}N-@{r}Fe([:-150]-@{s}N)([:30]-@{t}N)([:-30]-@{u}N)
    ([:90,1.2]-@{v}CO)([:-90,1.2,,1]-@{w}HISTIDINE) ([:-120,0.83,,,white]-@{h}) 
    } \ch{ + O2}

    \chemmove {\draw [clip] (d) to[bend left] node {} (b);}
    \chemmove {\draw [clip] (g) to[bend right] node {}(b);}
    \chemmove {\draw [clip] (g) to[bend left] node {}(c);}
    \chemmove {\draw [clip] (c) to[bend left] node {}(d);} 
    \chemmove {\draw [clip] (z) to[bend right] node {}(f);} 

    \chemmove {\draw [clip] (u) to[bend left] node {} (s);}
    \chemmove {\draw [clip] (q) to[bend right] node {}(s);}
    \chemmove {\draw [clip] (q) to[bend left] node {}(t);}
    \chemmove {\draw [clip] (t) to[bend left] node {}(u);} 
    \chemmove {\draw [clip] (h) to[bend right] node {}(w);} 
 \end{document}

在此处输入图片描述

答案1

手册 V1.2d 第 64 页给出了这种情况的对齐解决方案ChemFig。该方法依赖于在每个分子绘制完成后“停止”绘制。这是通过\arrow{0}[,0]在绘制每个分子后使用 添加一个不可见的箭头来实现的。

变化概要如下:

  1. \arrow{0}[,0]每个分子后添加
  2. 将反应包裹在\schemestart \schemestop
  3. 使用\+宏(见第 23 页)
  4. 使用\arrow宏(参见第 47 页)
  5. 我添加了\schemedebug{true}显示边界框和锚点

这是完整的代码:

 \documentclass[border=1mm]{standalone}
  \usepackage{chemfig}
   \usepackage{chemformula}
        \begin{document}
            \schemedebug{true}
    \schemestart[][east]
    \chemfig{[:-30]@{g}N-@{a}Fe([:-150]-@{b}N)([:30]-@{c}N)([:-30]-@{d}N)
    ([:90,1.2]-@{e}O_2)([:-90,1.2,,1]-@{f}HISTIDINE) ([:-120,0.83,,,white]-@{z})  
    } 
    \arrow{0}[,0]
    \+ \ch{CO}
    \arrow
    \chemfig{[:-30]@{q}N-@{r}Fe([:-150]-@{s}N)([:30]-@{t}N)([:-30]-@{u}N)
    ([:90,1.2]-@{v}CO)([:-90,1.2,,1]-@{w}HISTIDINE) ([:-120,0.83,,,white]-@{h}) 
    }
    \arrow{0}[,0]
    \+
    \ch{O2}
    \schemestop

    \chemmove {\draw [clip] (d) to[bend left] node {} (b);}
    \chemmove {\draw [clip] (g) to[bend right] node {}(b);}
    \chemmove {\draw [clip] (g) to[bend left] node {}(c);}
    \chemmove {\draw [clip] (c) to[bend left] node {}(d);} 
    \chemmove {\draw [clip] (z) to[bend right] node {}(f);} 

    \chemmove {\draw [clip] (u) to[bend left] node {} (s);}
    \chemmove {\draw [clip] (q) to[bend right] node {}(s);}
    \chemmove {\draw [clip] (q) to[bend left] node {}(t);}
    \chemmove {\draw [clip] (t) to[bend left] node {}(u);} 
    \chemmove {\draw [clip] (h) to[bend right] node {}(w);} 
 \end{document}

在此处输入图片描述

相关内容