![Chemfig:\chemmove 正确锚点](https://linux22.com/image/357410/Chemfig%EF%BC%9A%5Cchemmove%20%E6%AD%A3%E7%A1%AE%E9%94%9A%E7%82%B9.png)
我怎样才能使通过\chemmmove
命令绘制的箭头不与C-R''
' 键重叠?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage[
a4paper,
margin=15mm,
bindingoffset=2mm,
heightrounded,
]{geometry}
\usepackage{chemfig}
\usepackage{chemformula}
\usepackage{xcolor}
\usepackage[version=4]{mhchem}
\definecolor{cerulean}{HTML}{0080C0}
\begin{document}
\begin{flushleft}
\begin{figure}[htbp]
\schemestart
\chemfig[]{\chemabove{R}{\scriptstyle\color{magenta}{\delta +}}(-[:0]@{Nu}\chemabove{O}{\scriptstyle\color{cerulean}{\delta -}}H)}
\+
\chemfig[]{
R'(-[:0]@{El}\chemabove[0.5pt]{C}{\scriptstyle\hspace{3.5mm}\color{magenta}{\delta +}}(-[0]H)(-[2]R'')(-[6]\chembelow{Cl}{\scriptstyle\color{cerulean}{\delta -}}))
}
\arrow(.base east--.base west){->[][][3pt]}
\chemname{\chemfig{R'-CH_{2}(-[:90]OR)}}{Etere}
\+
\chemfig{HCl}
\schemestop
\chemnameinit{}
\chemmove[yshift=25em]{\draw[shorten <=7pt, shorten >=7pt](Nu).. controls +(north:1cm) and +(north:1cm).. (El);}
\end{figure}
\end{flushleft}
\end{document}
答案1
(将我的评论转化为答案)
您可以利用“命令”的语法..controls..
(如果我可以这样称呼它),如下所示:
\chemmove[...]{\draw[...](Nu).. controls +(north:1cm) and +(105:1cm).. (El);}
只是表示105
从正“x”轴逆时针测量 105 度,而不是north
,这基本上意味着90
。您可以将其更改为您喜欢的任何角度。
完整代码:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage[italian]{babel}
\usepackage[
a4paper,
margin=15mm,
bindingoffset=2mm,
heightrounded,
]{geometry}
\usepackage{chemfig}
\usepackage{chemformula}
\usepackage{xcolor}
\usepackage[version=4]{mhchem}
\definecolor{cerulean}{HTML}{0080C0}
\begin{document}
\begin{flushleft}
\begin{figure}[htbp]
\schemestart
\chemfig[]{\chemabove{R}{\scriptstyle\color{magenta}{\delta +}}(-[:0]@{Nu}\chemabove{O}{\scriptstyle\color{cerulean}{\delta -}}H)}
\+
\chemfig[]{
R'(-[:0]@{El}\chemabove[0.5pt]{C}{\scriptstyle\hspace{3.5mm}\color{magenta}{\delta +}}(-[0]H)(-[2]R'')(-[6]\chembelow{Cl}{\scriptstyle\color{cerulean}{\delta -}}))
}
\arrow(.base east--.base west){->[][][3pt]}
\chemname{\chemfig{R'-CH_{2}(-[:90]OR)}}{Etere}
\+
\chemfig{HCl}
\schemestop
\chemnameinit{}
\chemmove[yshift=25em]{\draw[shorten <=7pt, shorten >=7pt](Nu).. controls +(north:1cm) and +(105:1cm).. (El);}
\end{figure}
\end{flushleft}
\end{document}