![向所有 Chemfig 爱好者提问:如何将“+”放在同一行](https://linux22.com/image/451335/%E5%90%91%E6%89%80%E6%9C%89%20Chemfig%20%E7%88%B1%E5%A5%BD%E8%80%85%E6%8F%90%E9%97%AE%EF%BC%9A%E5%A6%82%E4%BD%95%E5%B0%86%E2%80%9C%2B%E2%80%9D%E6%94%BE%E5%9C%A8%E5%90%8C%E4%B8%80%E8%A1%8C.png)
这是我目前的小分子:
\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}