Chemfig - 化学名称太长且重叠

Chemfig - 化学名称太长且重叠

我在 Chemfigs 中有以下化学方程式:

\documentclass{article}
\usepackage[version=4]{mhchem}
\usepackage{chemfig}

\begin{document}
      \chemnameinit{[:-30]-[:30](-[2,0.6]Cl)(-[6,0.6])-[:-30]}
    \schemestart
    \chemname
    {\chemfig{[:-30]-[:30](-[2,0.6]OH)(-[6,0.6])-[:-30]}}
    {2-methylpropan-2-ol}
    \+
    \chemname
    {\chemfig{HCl}}
    {hydrochloric acid}
    \arrow{->}
    \arrow{0}[0,0.5]
    \chemname
    {\chemfig{[:-30]-[:30](-[2,0.6]Cl)(-[6,0.6])-[:-30]}}
    {2-chloro-2-methylpropane}
    \+
    \chemname
    {\ce{H2O}}
    {Water}
    \schemestop
\end{document}

这会创建非常长且重叠的名称:

结果

我想确保化学名称完全可见。我尝试过使用隐形箭头,但这只会弄乱垂直对齐。

答案1

只需在s 和箭头周围通过 等\hspace{<dim>}添加一些水平间距。\qquad\+

\documentclass{article}
\usepackage[version=4]{mhchem}
\usepackage{chemfig}

\begin{document}
      \chemnameinit{[:-30]-[:30](-[2,0.6]Cl)(-[6,0.6])-[:-30]}
    \schemestart
    \chemname
    {\chemfig{[:-30]-[:30](-[2,0.6]OH)(-[6,0.6])-[:-30]}}
    {2-methylpropan-2-ol}
    \hspace{1em}
    \+
    \hspace{2em}
    \chemname
    {\chemfig{HCl}}
    {hydrochloric acid}
    \hspace{1.5em}
    \arrow{->}
    \hspace{0.5em}
    \chemname
    {\chemfig{[:-30]-[:30](-[2,0.6]Cl)(-[6,0.6])-[:-30]}}
    {2-chloro-2-methylpropane}
    \hspace{1em}
    \+
    \hspace{0.5em}
    \chemname
    {\ce{H2O}}
    {Water}
    \schemestop
\end{document}

在此处输入图片描述

相关内容