我有一个图形,我想使用它mhchem
并chemfig
打包。是否可以使用mhchem
/制作分叉箭头chemfig
?请帮忙。我没有为这种图形创建任何 MWE。
\documentclass{article}
\usepackage{mhchem}
\usepackage{chemmacros}
\usepackage{mychemistry}
\usepackage{amsmath}
\usepackage{chemfig}
\begin{document}
\chemname{\chemfig{*6(=-(-[:-30]C{(}CH_3{)}_3)=-(-[:90]OH)=-)}}{Z}
\end{document}
答案1
只需使用tikz
。
\documentclass{article}
%\usepackage{mhchem}
\usepackage{chemmacros}
\usepackage{mychemistry}
\usepackage{amsmath}
\usepackage{chemfig}
\begin{document}
\begin{tikzpicture}
\node (benzine) at (0,0) {\chemname{\chemfig{*6(=-(-[:-30]C{(}CH_3{)}_3)=-(-[:90]OH)=-)}}{$Z$}};
\coordinate (a) at ($(benzine.east)+(1,0)$);
\draw[] ($(benzine)!0.5!(benzine.east)$) -- node[above]{$X_2$} (a);
\draw[->] (a) |-++ (1,1) node[right,text width=6cm]{
monohalo substututed derivative\\
when $X_2$ = \ch{I_2}
};
\draw[->] (a) --++ (1,0) node[right,text width=6cm]{
dihalo substututed derivative\\
when $X_2$ = \ch{Br_2}
};
\draw[->] (a) |-++ (1,-1) node[right,text width=6cm]{
trihalo substututed derivative\\
when $X_2$ = \ch{Cl_2}
};
\end{tikzpicture}
\end{document}