![如何排版/绘制共轭酸和碱](https://linux22.com/image/386767/%E5%A6%82%E4%BD%95%E6%8E%92%E7%89%88%2F%E7%BB%98%E5%88%B6%E5%85%B1%E8%BD%AD%E9%85%B8%E5%92%8C%E7%A2%B1.png)
您好,我需要帮助绘制/排版显示共轭对的酸碱反应:
以下是我目前所掌握的信息:
\documentclass{article}
\usepackage{chemfig}
\usepackage{endiagram}
\usepackage{booktabs}
\begin{document}
\setchemfig{cram width=3pt}
\schemestart
\chemname{\chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{Acetic Acid}
+
\chemname{\chemfig{H_{3}C-\Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{Methylamine}
\arrow{<=>}
\chemname{\chemfig{H_{3}C-C(=[:45]O)-[:-45]O\rlap{${}^-$}}}{Acetate Ion}
+
\chemname{\chemfig{H_{3}C-N\rlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{Mathylammonium Ion}
\schemestop
\end{document}
这会产生我感兴趣的反应和路易斯结构。我不需要颜色,也不需要氧原子周围的点,我只需要图的底部部分。我的代码目前产生这样的结果:
我知道可能可以使用
\tikz[overlay,remember picture]{}
,但我不知道如何标记化学品下方的文字。
答案1
像这样吗?
\documentclass{article}
\usepackage{chemfig}
\usepackage{endiagram}
\usepackage{booktabs}
\usetikzlibrary{tikzmark,positioning,shapes.geometric}
\definecolor{dullblue}{RGB}{178,201,231}
\begin{document}
\setchemfig{cram width=3pt}
\schemestart
\chemname{\chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{\tikzmarknode{A}{Acetic
Acid}}
+
\chemname{\chemfig{H_{3}C-\Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{\tikzmarknode{B}{Methylamine}}
\arrow{<=>}
\chemname{\chemfig{H_{3}C-C(=[:45]O)-[:-45]O\rlap{${}^-$}}}{\tikzmarknode{C}{Acetate
Ion}}
+
\chemname{\chemfig{H_{3}C-N\rlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{\tikzmarknode{D}{Mathylammonium
Ion}}
\schemestop
\begin{tikzpicture}[overlay,remember picture]
\node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
\node[below=3mm of B,draw,ellipse] (Base1) {Base};
\node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
\node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
\draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
\draw (Base1) -- ++ (0,-2) -| (Acid2);
\node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
\end{tikzpicture}
\end{document}