符号与箭头对齐

符号与箭头对齐

我试图让这两个方程的箭头和右侧与 'n' 和 + 号水平对齐。我尝试重写 chemfig 分子,但这只能帮助将 'n' 与 + 号对齐。如果有人有任何建议,我将不胜感激,谢谢!

\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}
\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 13cm {|X[cm]|}
    \hline
    \schemestart
    \arrow{0}[,0]
    \scalebox{1.25}{\textit{n}}
    \hspace{0.5mm}
    \scalebox{0.75}{\chemfig{(-[:150,0.75]H|O)-[:30](-[:-30,0.75]O|H)}}
    \+
    \scalebox{1.25}{\textit{n}}
    \hspace{0.5mm}
    \scalebox{0.75}{\chemfig{(-[:150,0.75]H|O)(=[:-90,0.75]O)-[:30](=[:90,0.75]O)(-[:-30,0.75]O|H)}}
    \arrow[,,thick]
    \scalebox{0.7}{\chemfig{-[@{left,.65}:30,0.75]O-[:-30]-[:30]O-[:-30](=[:-90,0.75]O)-[:30](=[:90,0.75]O)-[@{right,0.45}:-30,0.75]}
    \polymerdelim[height = 20pt, depth = 20pt, indice = \!\!n]{left}{right}}
    \schemestop
    \\
    \hline
\end{tabu}
\end{center}

\begin{center}
\tabulinesep = ^ 4mm _ 4mm % border gap
\begin{tabu} to 13cm {|X[cm]|}
    \hline
    \schemestart
    \arrow{0}[,0]
    \scalebox{1.25}{\textit{n}}
    \hspace{0.5mm}
    \scalebox{0.75}{\chemfig{(-[:150,0.75]H_2|N)-[:30](-[:-30,0.75]N|H_2)}}
    \+
    \scalebox{1.25}{\textit{n}}
    \hspace{0.5mm}
    \scalebox{0.75}{\chemfig{(-[:150,0.75]Cl)(=[:-90,0.75]O)-[:30](=[:90,0.75]O)(-[:-30,0.75]Cl)}}
    \arrow[,,thick]
    \scalebox{0.7}{\chemfig{-[@{left,.65}:30,0.75]N(-[:90,0.3,,,draw=none]H)-[:-30]-[:30]N(-[:90,0.3,,,draw=none]H)-[:-30](=[:-90,0.75]O)-[:30](=[:90,0.75]O)-[@{right,0.45}:-30,0.75]}
    \polymerdelim[height = 20pt, depth = 20pt, indice = \!\!n]{left}{right}}
    \schemestop
    \\
    \hline
\end{tabu}
\end{center}

\end{document}

答案1

使用\chemabove\chembelow将某物放置在分子中的原子上方或下方。

我修改了最后一个反应分子。

尝试这个:

% SECOND EQUATION
\begin{center}
    \tabulinesep = ^ 4mm _ 4mm % border gap
    \begin{tabu} to 15cm {|X[cm]|}
        \hline
        \schemestart
        \arrow{0}[,0]
        \scalebox{1.25}{\textit{n}}
        \hspace{0.5mm}
        \scalebox{0.75}{\chemfig{(-[:150,0.75]H_2|N)-[:30](-[:-30,0.75]N|H_2)}}
        \+
        \scalebox{1.25}{\textit{n}}
        \hspace{0.5mm}
        \scalebox{0.75}{\chemfig{(-[:150,0.75]Cl)(=[:-90,0.75]O)-[:30](=[:90,0.75]O)(-[:-30,0.75]@{y}Cl)}}
        \arrow(@{y}--[yshift=-6pt]){->[][][-2pt]}[,,thick]
        \scalebox{0.7}{\chemfig{\chemabove{N}{H}(-[@{left}:210])-[:330]-[:30]\chemabove{N}{H}-[:330](=[6]O)-[:30](=[2]O)-[@{right}:330]}
            \polymerdelim[height = 20pt, depth = 20pt, indice = \!\!n]{left}{right}}
        \schemestop
        \\
        \hline
    \end{tabu}
\end{center}

在此处输入图片描述

相关内容