![如何正確顯示下標的複合分數?](https://rvso.com/image/335488/%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A2%BA%E9%A1%AF%E7%A4%BA%E4%B8%8B%E6%A8%99%E7%9A%84%E8%A4%87%E5%90%88%E5%88%86%E6%95%B8%EF%BC%9F.png)
答案1
主要是風格問題。我會給你三種不同的策略。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
First display with \verb|\frac|, in the right hand side
the fractions are smaller
\[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\frac{\Delta_{VDW}}{w_{VDW}}
}{
\frac{\Delta_{TDW}}{w_{TDW}}
}
\]
and second display with \verb|\dfrac|, in the right
hand side the fractions are larger
\[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\,\dfrac{\Delta_{VDW}}{w_{VDW}\mathstrut}\,
}{
\,\dfrac{\mathstrut \Delta_{TDW}}{w_{TDW}}\,
}
\]
Finally, a third display with the slashed form
\[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\Delta_{VDW}/w_{VDW}
}{
\Delta_{TDW}/w_{TDW}
}
\]
\end{document}
答案2
第四個顯示,其中\mfrac
(~80% \displaystyle
)來自nccmath
。選取egreg的例子:
\documentclass{article}
\usepackage{nccmath}
\begin{document}
First display with \verb|\frac|, in the right hand side
the fractions are smaller: \[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\frac{\Delta_{VDW}}{w_{VDW}}
}{
\frac{\Delta_{TDW}}{w_{TDW}}
}
\]
and second display with \verb|\dfrac|, in the right
hand side the fractions are larger: \[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\,\dfrac{\Delta_{VDW}}{w_{VDW}\mathstrut}\,
}{
\,\dfrac{\mathstrut \Delta_{TDW}}{w_{TDW}}\,
}
\]
Finally, a third display with \verb|\mfrac| in the right-hand side as a compromise: \[
\frac{H_{W,WDV}}{H_{W,TDW}}=
\frac{
\,\mfrac{\Delta_{VDW}}{w_{VDW}\mathstrut}\,
}{
\,\mfrac{\mathstrut \Delta_{TDW}}{w_{TDW}}\,
}
\] \end{document}