债券的对齐

债券的对齐

我正在尝试绘制盐酸的路易斯结构,包括部分电荷和偶极矩。不幸的是,键没有“在中间”对齐。有没有办法“移动”键?

下面是我使用的代码:

\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}

在此处输入图片描述

相关内容