
왜 이 두 개의 화살은 제자리에 있지 않습니까? 처음 두 개의 chemmoves 줄은 올바른 위치에 있고 다른 두 개는 다른 것이므로 코드에서 문제를 찾을 수 없습니다. 나는 그것을 몇 번이나 정리했다.
그리고 두 번째 화살표 위에 네 번째 구조를 배치하고 싶은데 거기에 화살표를 배치할 수 있나요?
\schemestart
\chemfig{@{b1}\charge{-50:2pt=$\scriptsize\ominus$}{C}(-[:30,.6]Z)(-[:150,.6]Z)-[:-120,.6]H}
\hspace*{1cm}
\chemfig{@{b2}C(-[:120,.6]R)(-[:-120,.6]H)=[@{b3},.6]@{b4}\charge{0=\|,-90=\|}{O}}
\arrow{<=>}
\chemfig{@{a5}C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]@{o1}\charge{45:2pt=$\scriptsize\ominus$}{O}}
\+
\chemfig{@{n1}\charge{140:2pt=$\scriptstyle\oplus$}{N}(-[:115,.6]H)(-[@{b5}:-135,.6]@{h2}H)-[:60,.6]-[:0,.6]-[:-60,.6]-[:-120,.6]-[:180,.6]-[:120,.6]}
\arrow{<=>}
\chemfig{C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]\charge{90=\|,0=\|}{O}-[:-90,.6]H}
\schemestop
\chemmove[-stealth,red]{
\draw[shorten <=8pt,shorten >=1pt](b1).. controls +(-45:15mm) and +(180:8mm).. (b2);
\draw[shorten <=2pt,shorten >=2pt](b3).. controls +(100:5mm) and +(90:5mm).. (b4);
\draw[shorten <=8pt,shorten >=2pt](o1).. controls +(45:4mm) and +(160:4mm).. (h2);
\draw[shorten <=2pt,shorten >=2pt](b5).. controls +(120:4mm) and +(180:4mm).. (n1);
}
답변1
이 같은?
화살표 3과 4는 각도와 길이를 약간 조정해야 했습니다. 그게 전부였습니다.
네 번째 분자의 고리가 잘못되었습니다. 분자를 다시 썼습니다.
\documentclass[border=2mm]{standalone}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{@{b1}\charge{-50:2pt=$\scriptsize\ominus$}{C}(-[:30,.6]Z)(-[:150,.6]Z)-[:-120,.6]H}
\hspace*{1cm}
\chemfig{@{b2}C(-[:120,.6]R)(-[:-120,.6]H)=[@{b3},.6]@{b4}\charge{0=\|,-90=\|}{O}}
\arrow{<=>}
\chemfig{@{a5}C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]@{o1}\charge{45:2pt=$\scriptsize\ominus$}{O}}
%
\arrow{<=>[\chemfig{@{n1}\charge{140:2pt=$\scriptstyle\oplus$}{N}*6([,.5]------)(-[:115,.6]H)(-[@{b5}:-135,.6]@{h2}H)}]}[,2]
%
\chemfig{C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]\charge{90=\|,0=\|}{O}-[:-90,.6]H}
\schemestop
\chemmove[-stealth,red]{
\draw[shorten <=8pt,shorten >=1pt](b1).. controls +(-45:15mm) and +(180:8mm).. (b2);
\draw[shorten <=2pt,shorten >=2pt](b3).. controls +(100:5mm) and +(90:5mm).. (b4);
\draw[shorten <=8pt,shorten >=2pt](o1).. controls +(40:6mm) and +(150:6mm).. (h2);
\draw[shorten <=2pt,shorten >=0pt](b5).. controls +(150:6mm) and +(180:4mm).. (n1);
}
\end{document}
XeLatex로 컴파일하기해결책표시된 문제는 \arrow 명령과 해결 방법에 있음을 확인하고 \subscheme 내에 \arrow 명령을 배치합니다.
\documentclass[border=2mm]{standalone}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{@{b1}\charge{-50:2pt=$\scriptsize\ominus$}{C}(-[:30,.6]Z)(-[:150,.6]Z)-[:-120,.6]H}
\hspace*{1cm}
\chemfig{@{b2}C(-[:120,.6]R)(-[:-120,.6]H)=[@{b3},.6]@{b4}\charge{0=\|,-90=\|}{O}}
\subscheme{\arrow{<=>}}
\chemfig{@{a5}C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]@{o1}\charge{45:2pt=$\scriptsize\ominus$}{O}}
\+
\chemfig{@{n1}\charge{120:2pt=$\scriptstyle\oplus$}{N}*6([,.5]------)(-[:150,.6]H)(-[@{b5}:-135,.6]@{h2}H)}
\subscheme{\arrow{<=>}}
\chemfig{C(-[:30,.6]Z)(-[:150,.6]Z)(-[:-130,.6]H)-[:-60,.6](-[:-120,.6]R)-[,.6]\charge{90=\|,0=\|}{O}-[:-90,.6]H}
%------------------------------------
\chemmove[-stealth,red]{
\draw[shorten <=8pt,shorten >=1pt](b1).. controls +(-45:15mm) and +(180:8mm).. (b2);
\draw[shorten <=2pt,shorten >=2pt](b3).. controls +(100:5mm) and +(90:5mm).. (b4);
\draw[shorten <=8pt,shorten >=2pt](o1).. controls +(40:6mm) and +(150:6mm).. (h2);
\draw[shorten <=2pt,shorten >=0pt](b5).. controls +(150:6mm) and +(180:4mm).. (n1);
}
\schemestop
\end{document}