![화살표 크기를 로컬로 늘리기](https://rvso.com/image/476258/%ED%99%94%EC%82%B4%ED%91%9C%20%ED%81%AC%EA%B8%B0%EB%A5%BC%20%EB%A1%9C%EC%BB%AC%EB%A1%9C%20%EB%8A%98%EB%A6%AC%EA%B8%B0.png)
나는 동일한 라인에서 일련의 반응(화학자의 경우 Cannizzaro 반응)을 보여주고 싶습니다. 제 경우에는 화살표에 긴 분자(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}