向所有 Chemfig 爱好者提问:如何将“+”放在同一行

向所有 Chemfig 爱好者提问:如何将“+”放在同一行

这是我目前的小分子:

\documentclass{article}

\usepackage{chemfig}
\usepackage{amssymb}


\begin{document}

\schemestart
\chemfig[atom sep=24pt]{C([2]-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]-H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]H)))}
\+ 
\chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,1]--[-1,1]-CH_3)} 
\+
\chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)}
\schemestop

\end{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

在这里我绝对希望箭头从氢原子直接指向另一个氢原子

答案1

你想要这样的东西吗?

\documentclass{article}

\usepackage{chemfig}
\usepackage{amssymb}


\begin{document}
    
    \schemestart
    \chemfig[atom sep=24pt]{C([2]-H)([4]-H)(-\charge{90=\|,-90=\|}{O}-H)([6,2]-C([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-@{a}H)([6,2]-C([6,1]-H)([4,1]-H)([0,1]-\charge{90=\|,-90=\|}{O}-[0,1]H)))}
    \+ 
    \chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)([1,1]--[-1,1]-CH_3)} 
    \arrow(@{a}--){0}[0,.1]\+
    \chemfig[atom sep=24pt]{C([3,1]=O)([5,1]-H)}
    \schemestop
    
\end{document}

在此处输入图片描述

相关内容