![局部增加箭頭的大小](https://rvso.com/image/476258/%E5%B1%80%E9%83%A8%E5%A2%9E%E5%8A%A0%E7%AE%AD%E9%A0%AD%E7%9A%84%E5%A4%A7%E5%B0%8F.png)
我想在同一條線上顯示一系列反應(對於化學家來說,坎尼扎羅反應)。就我而言,我必須在箭頭上寫一個長分子(Ph-CH=O),但我的程式碼有問題:要么我有正確的大小,但箭頭上的文字不起作用(使用命令\arrow[,2,](start.mid east--.mid west){->[\chemfig{Ph-CH=O}]}
)或者我在箭頭上寫了字,但尺寸不正確(使用指令\arrow(start.mid east--.mid west){->[\chemfig{Ph-CH=O}]}
)。
如何增加箭頭的大小,同時將文字保留在其上方?
\documentclass[border=1mm]{standalone}
\usepackage{graphicx} % Required for inserting images
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{[:-30]*6(=-=(-@{atoc}C([6]=[@{db}]@{atoo1}O)-H)-=-)}
\arrow(start.mid east--.mid west){->[\chemfig{@{atoo2}\chemabove{O}{\scriptstyle\ominus}}H]}
\chemfig{[:-30]*6(=-=(-C([6]-[@{sb1}]@{atoo1}\chembelow{O}{\scriptstyle\ominus})([2]-OH)-[@{sb2}]H)-=-)}
\arrow[,2,](start.mid east--.mid west){->[\chemfig{Ph-CH=O}]}
\chemfig{[:-30]*6(=-=(-C([1]-@{atoo2}O-[@{sb}0]@{atoh}H)([6]=O))-=-)}
\arrow{0}
\chemfig{[:-30]*6((-C(-[5]H)(-[7]H)-[2]@{atoo1}\chemabove{O}{\scriptstyle\ominus})-=-=-=)}
\chemmove[-stealth,shorten >=2pt,dash pattern=on 1pt off 1pt,thin]{
\draw[shorten <=7pt](atoo1.90) ..controls +(+90:8mm) and +(up:10mm)..(atoh);
\draw[shorten <=2pt](sb) ..controls +(up:5mm) and +(up:5mm)..(atoo2);}
\schemestop
\end{document}
答案1
因此?
您也可以縮短箭頭上方分子的鍵
\documentclass[border=1mm]{standalone}
\usepackage{graphicx} % Required for inserting images
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{[:-30]*6(=-=(-@{atoc}C([6]=[@{db}]@{atoo1}O)-H)-=-)}
\arrow(start.mid east--.mid west){->[\chemfig{@{atoo2}\chemabove{O}{\scriptstyle\ominus}}H]}
\chemfig{[:-30]*6(=-=(-C([6]-[@{sb1}]@{atoo1}\chembelow{O}{\scriptstyle\ominus})([2]-OH)-[@{sb2}]H)-=-)}
\arrow{->[\chemfig{Ph-[,.7]CH=[0,.7]O}]}[0,2]
\chemfig{[:-30]*6(=-=(-C([1]-@{atoo2}O-[@{sb}0]@{atoh}H)([6]=O))-=-)}
\arrow{0}
\chemfig{[:-30]*6((-C(-[5]H)(-[7]H)-[2]@{atoo1}\chemabove{O}{\scriptstyle\ominus})-=-=-=)}
\chemmove[-stealth,shorten >=2pt,dash pattern=on 1pt off 1pt,thin]{
\draw[shorten <=7pt](atoo1.90) ..controls +(+90:8mm) and +(up:10mm)..(atoh);
\draw[shorten <=2pt](sb) ..controls +(up:5mm) and +(up:5mm)..(atoo2);}
\schemestop
\end{document}