答案1
这是我创建半方程式的小小尝试。
代码:
\documentclass{article}
\usepackage{amsmath}
\usepackage[dvipsnames]{xcolor}
\usepackage{chemmacros}
\begin{document}
\[
\begin{aligned}
{\color{OliveGreen} 3} \\ {\color{OliveGreen} 1}
\end{aligned}%
\left\{%
\begin{aligned}
&\ch{H2S -> S + 2 \el} \\
&\ch{Cr2O7\mch[2] + 6 \el -> 2 Cr\pch[3]}
\end{aligned}
\right.
\]
\centerline{\rule{6cm}{1pt}}
\[
{\color{OliveGreen} 8 \color{blue} \ch{H\pch}} +
{\color{OliveGreen} 3} \ch{H2S + Cr2O7\mch[2] ->}
{\color{OliveGreen} 3} \ch{S + 2 Cr\pch[3] +}
{\color{OliveGreen} 7 \color{blue} \ch{H2O}}
\]
\end{document}
附录
如果对齐对于半个方程来说不是大问题,那么\begin{cases}...\end{cases}
答案会更简洁(感谢@Moriambar!)。在这种情况下(没有双关语的意思),半个方程可以排版如下:
...
\[
\begin{aligned}
{\color{OliveGreen} 3} \\ {\color{OliveGreen} 1}
\end{aligned}%
\begin{cases} % <------------- NOTE
\ch{H2S -> S + 2 \el} \\
\ch{Cr2O7\mch[2] + 6 \el -> 2 Cr\pch[3]}
\end{cases}
\]
...