答案1
答案2
另一个具有alignat
环境的解决方案,chemformula
以及\cmidrule
:
\documentclass{article}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage{chemformula}
\usepackage{lipsum}
\begin{document}
{ \bfseries\boldmath\setlength{\aboverulesep}{-1.2ex}\setlength{\belowrulesep}{-0.5ex}
\begin{alignat}{2}
&\phantom{{}-{}} &\quad \ch{PuF6} + 2\ch{PuF3} & = 3\ch{PuF4} \\
\notag &{}- {}& & \\
& & \ch{F2} + 2\ch{PuF3} & = 2\ch{PuF4} \\
\cmidrule[\heavyrulewidth](l{-0.6em}r{-1em}){1-4}
& &\ch{PuF6} & = \ch{PuF4} + \ch{F2}
\end{alignat}
}
\end{document}
答案3
像这样:
\documentclass{article}
\usepackage{mathtools}
\usepackage{booktabs, tabularx}
\usepackage[version=4]{mhchem}
\usepackage{lipsum}
\begin{document}
\begin{tabularx}{\linewidth}{X}
\begin{gather}
\ce{PuF6} + \ce{2PuF3} = 3\ce{Pu} \\
\mathllap{-}\
\ce{PuF6} + \ce{2PuF3} = 3\ce{Pu}
\end{gather} \\[-5ex]
\cmidrule[1pt](l{9em}r{9em}){1-1} \\[-8ex]
\begin{gather}
\ce{PuF6} + \ce{2PuF3} = 3\ce{Pu}
\end{gather}
\end{tabularx}
\lipsum[1][1-3]
\end{document}