我想将箭头和 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]
在绘制每个分子后使用 添加一个不可见的箭头来实现的。
变化概要如下:
\arrow{0}[,0]
每个分子后添加- 将反应包裹在
\schemestart
\schemestop
- 使用
\+
宏(见第 23 页) - 使用
\arrow
宏(参见第 47 页) - 我添加了
\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}