我试图让两个反应中的加号与方程中的箭头和其他加号对齐。我尝试重新排列 \arrow{0}[,0] 看看是否有什么变化,不过现在我有点不知所措了。
\documentclass{article}
\usepackage{graphicx}
\usepackage{chemfig}
\usepackage{geometry}
\usepackage{tabu}
\usepackage{textgreek}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{siunitx}
\usepackage{chemmacros}
\usetikzlibrary{arrows}
\begin{document}
\vspace{2mm}
\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 13cm {|X[cm]|}
\hline
\schemestart
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]O-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]}
\arrow{0}[,0]
\+
\chemfig{-[:30,0.75]-[:-30,0.75]OH}
\arrow[,1.1,thick]
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]O-[:30,0.75]-[:-30,0.75]}
\arrow{0}[,0]
\+
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]OH}
\schemestop
\\
\hline
\end{tabu}
\end{center}
\vspace{2mm}
\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 13cm {|X[cm]|}
\hline
\schemestart
\chemfig{-[:30](=[:90,0.75]O)-[:-30,0.75]OH}
\arrow{0}[,0]
\+
\chemfig{-[:30](=[:90,0.75]O)-[:-30,0.75]OH}
\arrow[,1.5,thick]
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30]O-[:30](=[:90,0.75]O)-[:-30,0.75]}
\arrow{0}[,0]
\+
\chemfig{H_2O}
\schemestop
\\
\hline
\end{tabu}
\end{center}
\end{document}
答案1
问题可能在于分子的书写方式
\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 16cm {|X[cm]|}
\hline
\schemestart
%
\chemfig{(-[:210])(=[2]O)-[:330]O-[:30](=[2]O)-[:330]}
%
\+
%
\chemfig{-[:30]-[:330]OH}
%
\arrow{->}
%
\chemfig{(-[:210])(=[2]O)-[:330]O-[:30]-[:330]}
%
\+
%
\chemfig{(-[:210])(=[2]O)-[:330]OH}
\schemestop
\\
\hline
\end{tabu}
\end{center}
\vspace{1cm}
\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 16cm {|X[cm]|}
\hline
\schemestart
%
\chemfig{(-[:210])(=[2]O)-[:330]OH}
%
\+
%
\chemfig{(-[:210])(=[2]O)-[:330]OH}
%
\arrow{->}
%
\chemfig{(-[:210])(=[2]O)-[:330]O-[:30](=[2]O)-[:330]}
%
\+
%
\chemfig{(-[:210])(=[2]O)-[:330]OH}
\schemestop
\\
\hline
\end{tabu}
\end{center}
答案2
这是一个可能的解决方案,也使用\arrow{0}[,0]
为了将所有分子垂直居中,以及一个反应内的加号和箭头。我还用tabu
一种基础方法替换了反应方案周围的基础框架tcolorbox
。由于第二种方案中的乙酸和乙酸酐分子由于键长不同而看起来相当扭曲,我添加了一个替代版本,不需要手动调整每个键长:
\documentclass{article}
\usepackage{chemfig}
\usepackage{geometry}
\usepackage{tcolorbox}
\newtcolorbox{mybox}{colback=white,colframe=black,sharp corners, halign=center, boxrule=\arrayrulewidth}
\begin{document}
\begin{mybox}
\schemestart
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]O-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]}
\arrow{0}[,0]
\+
\chemfig{-[:30,0.75]-[:-30,0.75]OH}
\arrow[,1.1,thick]
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]O-[:30,0.75]-[:-30,0.75]}
\arrow{0}[,0]
\+
\arrow{0}[,0]
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30,0.75]OH}
\schemestop
\end{mybox}
\smallskip
\begin{mybox}
\schemestart
\arrow{0}[,0]
\chemfig{-[:30](=[:90,0.75]O)-[:-30,0.75]OH}
\arrow{0}[,0]
\+
\arrow{0}[,0]
\chemfig{-[:30](=[:90,0.75]O)-[:-30,0.75]OH}
\arrow[,1.5,thick]
\chemfig{-[:30,0.75](=[:90,0.75]O)-[:-30]O-[:30](=[:90,0.75]O)-[:-30,0.75]}
\arrow{0}[,0]
\+
\chemfig{H_2O}
\schemestop
\end{mybox}
\bigskip
\setchemfig{atom sep=2.5em}
\begin{mybox}
\schemestart
\chemfig{-[:30](=[:90]O)-[:-30]O-[:30](=[:90]O)-[:-30]}
\arrow{0}[,0]
\+
\chemfig{-[:30]-[:-30]OH}
\arrow[,1.1,thick]
\chemfig{-[:30](=[:90]O)-[:-30]O-[:30]-[:-30]}
\arrow{0}[,0]
\+
\arrow{0}[,0]
\chemfig{-[:30](=[:90]O)-[:-30]OH}
\schemestop
\end{mybox}
\smallskip
\begin{mybox}
\schemestart
\arrow{0}[,0]
\chemfig{-[:30](=[:90]O)-[:-30]OH}
\arrow{0}[,0]
\+
\arrow{0}[,0]
\chemfig{-[:30](=[:90]O)-[:-30]OH}
\arrow[,1.5,thick]
\chemfig{-[:30](=[:90]O)-[:-30]O-[:30](=[:90]O)-[:-30]}
\arrow{0}[,0]
\+
\chemfig{H_2O}
\schemestop
\end{mybox}
\end{document}