
答え1
chemfig
およびパッケージを使用するとmhchem
、化学式は\llap
(左) およびrlap
(右) コマンドに表示されます。
\documentclass{article}
\usepackage{chemfig}
\usepackage[version=4]{mhchem}
\begin{document}
\begin{center} % or figure[ht]\centering
\schemestart
\llap{\ce{C2H5OH}}\arrow{->[\color{teal}\ce{ZnO}][]}[30] \rlap{\ce{C2H4 + H2O}}
\arrow(@c1--C){->[][\color{teal}\ce{Cu}]}[-30] \rlap{\ce{C2H4O + H2}}
\schemestop
\end{center}
\end{document}
答え2
chemfigとchemformulaを使用
\documentclass[border=3pt]{standalone}
\usepackage{chemfig}
\usepackage{chemformula}
\begin{document}
\schemestart
\ch{C2H5OH}
\arrow(eth.mid east--.mid west){->[ \color{green!80!black}\scriptsize\ch{ZnO} ]}[10]
\ch{C2H4 + H2O}
\arrow(@eth.mid east--.mid west){->[][ \color{green!80!black}\scriptsize\ch{Cu} ]}[-10]
\ch{C2H4O + H2}
\schemestop
\end{document}
答え3
パッケージ化学式空間化学には関係ないようです。そのような例は示されていません。一方、ケムフィグ多くの空間化学化合物を提示します。
Chemformula
セクション 7.2 では、オンラインで more than を使用する例がいくつか示され、セクション 12 では、math 環境内での例がいくつかalign
示されています。以下に両方を再現します。
パッケージを交換したくない(または交換できない)場合の回避策としては、必要な場所で TikZ を使用することです。
\documentclass{article}
\usepackage{chemformula}
\usepackage{tikz}
\begin{document}
% 7.2. Option Input
\ch{H2O +}\textcolor{red}{\ch{H2SO4}}\ch{-> H3O+ + HSO4-} \par
2 \ch{H2O +}\ch[subscript-vshift=2pt]{H2SO4}\ch{-> H3O+ + HSO4-}
% 12. Usage In Math Equations
\begin{align}
\ch{
H2O & ->[a] H2SO4 \\
Cl2 & ->[x][y] CH4
}
\end{align}
% Possible workaround with TikZ
\begin{tikzpicture}
\draw[->] (0,0) coordinate(A) node[left]{\ch{H2O +}\textcolor{red}{\ch{H2SO4}}} --
++(1,1) node[right]{\ch{H3O+ + HSO4-}};
\draw[->] (A) --
++(1,-1) node[right]{\ch{H3O+ + HSO4-}};;
\end{tikzpicture}
\end{document}
答え4
もう少しカラフルな解決策
\documentclass[margin={2mm 4mm}]{standalone}
\usepackage{chemfig}
\usepackage{tikz}
\begin{document}
\schemestart
%
\chemfig{C_2H_5O@{z}H}
%
\arrow(@{z}--){0}[60,.1]\chemfig{-[:60,1,,,red,thick]@{y}}
\arrow(@{y}--){->[\chemfig{\textcolor{blue}{ZnO}}]}[0,1.5,,,red,thick,shorten <=-10pt]
%
\chemfig{C_2H_4} \+ \chemfig{H_2O}
%-------------------------------------------------------------------------------------------
\arrow(@{z}--){0}[300,.1]\chemfig{-[:300,1,,,blue,thick]@{x}}
\arrow(@{x}--){->[\chemfig{\textcolor{red}{Cu}}]}[0,1.5,,blue,thick,shorten <=-10pt]
%
\chemfig{C_2H_4O} \+ \chemfig{H_2}
%
\schemestop
\end{document}