第 2 部分:Chemfig 将箭头从一个原子排列到另一个原子

第 2 部分:Chemfig 将箭头从一个原子排列到另一个原子

在成功获得一些帮助建立反应方案后,又出现了另一个问题:

来自一个氢原子的箭头并非直接指向另一个氢原子。

我也希望它能够被修复:

\documentclass{article}

\usepackage{chemfig}
\usepackage{amssymb}


\begin{document}


\schemestart
\chemfig[atom sep=32pt]{C([2]-H)([4]-H)(-\charge{90=\|,-90=\|}{O}-@{h1}H)([6,2]-C([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-@{h2}H)([6,2]-C([6,1]-@{c3}H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]@{h3}H)))}
\arrow(@{c3}--)[-90,1]
\chemfig[atom sep=32pt]{C([2]-@{hh1}H)([4]-H)(-\charge{90=\|,-90=\|}{O}-H)([6,2]-C([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-H)([6,2]-C([6,1]-@{c3}H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]H)))}
\arrow(@{h1}--){0}[0,0.063]\+ 
\chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]-CH_3)} 
\arrow(@{h3}--){0}[0,0.063]\+
\chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]-CH_3)} 
\arrow(@{h2}--){0}[0,0.063]\+
\chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]=-[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]-CH_3)} 
\schemestop

\end{document}

修复之前:

在此处输入图片描述

答案1

很简单。在底部分子左侧的氢上添加一个“隐形”键 (-[4,1.1,,,draw=none])。这将等于该分子的水平尺寸,顶部的氢将位于分子的中心。

\documentclass{article}

\usepackage{chemfig}
\usepackage{amssymb}


\begin{document}
    
    
    \schemestart
    \chemfig[atom sep=32pt]{C([2]-H)([4]-H)(-\charge{90=\|,-90=\|}{O}-@{h1}H)([6,2]-C([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-@{h2}H)([6,2]-C([6,1]-@{c3}H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]@{h3}H)))}
    \arrow(@{c3}--)[-90,1]
    \chemfig[atom sep=32pt]{C([2]-@{hh1}H)([4]-H-[4,1.1,,,draw=none])(-\charge{90=\|,-90=\|}{O}-H)([6,2]-C([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-H)([6,2]-C([6,1]-@{c3}H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]H)))}
    \arrow(@{h1}--){0}[0,0.063]\+ 
    \chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]-CH_3)} 
    \arrow(@{h3}--){0}[0,0.063]\+
    \chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]-CH_3)} 
    \arrow(@{h2}--){0}[0,0.063]\+
    \chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]=-[-1,0.5]--[-1,0.5]--[-1,0.5]--[-1,0.5]-CH_3)} 
    \schemestop
    
\end{document}
    

在此处输入图片描述

相关内容