我希望草酸铵和草酸钙处于中间位置。但不知道该怎么做 :(
\documentclass[a4paper,11pt]{article}
\usepackage[version=4]{mhchem}
\usepackage{chemfig}
\setchemfig{atom sep=4ex}
\begin{document}
\ce{Ca^2+ + \chemfig{C(-[:180,1.4]NH_{4}^{+}\charge{90=\|}{O})(-[:90]C(-[:180,1.4]NH_{4}^{+}\charge{90=\|}{O})=O)=O} ->Ca^{2+}} \chemfig{C(-[:180]\charge{90=\|}{O})(-[:90]C(-[:180]\charge{90=\|}{O})=O)=O} \ce{v + 2NH4+}
\end{document}
答案1
仅使用chemfig
包,
\documentclass[a4paper,11pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows,arrows.meta}
\usepackage{chemfig}
\setchemfig{atom sep=4ex,arrow style={-stealth}} % or arrow style={->}
\begin{document}
\schemestart
\chemfig{Ca^{2+}}
\arrow(.mid east--){0}[,0]
\+
\arrow{0}[,0]
\chemfig{C(-[:180,1.4]NH_{4}^{+}\charge{90=\|}{O})(-[:90]C(-[:180,1.4]NH_{4}^{+}\charge{90=\|}{O})=O)=O}
\arrow
\chemfig{C(-[:180]Ca^{2+}\,|\charge{90=\|}{O})(-[:90]C(-[:180]\charge{90=\|}{O})=O)=O|\,\downarrow}
\arrow{0}[,0]
\+
\arrow(--.mid east){0}[,0.6]
\chemfig{2\,|NH_4^{\,+}}
\schemestop
\end{document}
答案2
其他方式
\schemestart
\chemfig[yshift=10pt]{Ca^{2+}}
%
\chemfig[yshift=10pt]{+}
%
\chemfig{C(-[:180,1.4]NH^{+}_{4}{}^{-}O)(-[:90]C(-[:180,1.4]NH^{+}_{4}{}^{-}O)=O)=O}
%
\arrow{->}[0,1]
%
\chemfig{C(-[:180,1.4]{}^{-}O-[:160,1.5,,,dotted]Ca^{2+}-[:20,1.5,,,dotted])(-[:90]C(-[:180,1.4]{}^{-}O)=O)=O}
%
\arrow{0}[0,.1]\+
%
\chemfig{2\,|NH_4^{\,+}}
\schemestop