答案1
另一个解决方案是stackengine
:
\documentclass{article}
\usepackage[usestackEOL]{stackengine}
\usepackage{amsmath, amssymb}
\begin{document}
\[ \text{mass \% elements} = \frac{
\left(\Centerstack{ number of\\ atoms of element\\ per formula unit} \right)
\times
\left(\Centerstack{molar mass\\ of element} \right)}
{\text{molar mass of compound}} \]%
\end{document}
答案2
最简单的方法是使用单列tabular
来堆叠文本\left(
并\right)
围绕每个表格:
\[
\mbox{mass \% element}=\frac{
\left(
\begin{tabular}{c}
number of\\
atoms of element\\
per formula unit
\end{tabular}
\right)
\times
\left(
\begin{tabular}{c}
molar mass\\
of element
\end{tabular}
\right)
}
{
\mbox{molar mass of compound}
}
\times
100\%
\]
这使
答案3
例如使用\pmatrix
纯 TeX:
$$
\let\t=\hbox
\t{mass \% elements} =
{ \pmatrix{\t{number of}\cr \t{atoms of element}\cr \t{per formula unit}}
\times \pmatrix{\t{molar mass}\cr \t{of element}}
\over
\t{molar mass of compound} } \times 100\%
$$
答案4
如果您愿意,我选择了使用矩阵/数组的方法。
这是我的 MWE 和生成相同字体的包。
\documentclass[a4paper,12pt]{article}
\usepackage[OT1]{fontenc}
\usepackage{amsmath}
\usepackage{mathpazo}
\usepackage[scaled=.95]{helvet}
\usepackage{courier}
\begin{document}
\[\textnormal{mass \% element}=\frac{
\begin{pmatrix} \text{number of} \\ \text{atoms of element} \\ \text{per formula unit} \end{pmatrix}\times \begin{pmatrix} \text{molar mass} \\ \text{of element} \end{pmatrix}}{\text{molar mass of compound}}\times 100 \%
\]
\end{document}