![债券的对齐](https://linux22.com/image/412971/%E5%80%BA%E5%88%B8%E7%9A%84%E5%AF%B9%E9%BD%90.png)
我正在尝试绘制盐酸的路易斯结构,包括部分电荷和偶极矩。不幸的是,键没有“在中间”对齐。有没有办法“移动”键?
下面是我使用的代码:
\documentclass[a4paper, twoside]{book}
\usepackage{chemfig}
\usepackage{tikz}
\begin{document}
\chemname{
\chemfig{\Charge{90=\:,180=\:,270=\:,135:3pt=$\delta^-$}{Cl}(-[::270,0.5,,,draw=none]@{a})
-[,1.5]
\Charge{45:5pt=$\delta^+$}{H}(-[::270,0.5,,,draw=none]@{b})}
\chemmove{\draw[____|->, very thick] (b)--(a);}}{hydrocloric acid}
\end{document}
---------------------------------------------------------------------------
Thanks!
答案1
宏\charge
将物体放置<charges>
在边界框外,同时\Charge
将物体放置在边界框内。(手册第 32 页)
\documentclass[a4paper, twoside]{book}
\usepackage{chemfig}
\begin{document}
\chemname{
\chemfig{
\charge{90=\:,180=\:,270=\:,135:3pt=$\delta^-$}{Cl}
(-[::270,0.5,,,draw=none]@{a})-[,1.5]
\charge{45:5pt=$\delta^+$}{H}
(-[::270,0.5,,,draw=none]@{b})
}
\chemmove{\draw[____|->, very thick] (b)--(a);}
}{hydrocloric acid}
\end{document}