如何正確顯示下標的複合分數?

如何正確顯示下標的複合分數?

哪一個是正確的表示複合分數的方法equation環境中複合分數的方法?和正確的我的意思是,一種使表示形式為所有分子和分母提供相同字體尺寸的方法。考慮下圖:

在此輸入影像描述

例如,我希望w_{VDW}具有與 相同的尺寸H_{W,VDW}。這是印刷上正確的選擇嗎?你有什麼建議?

我試過了\sfrac,但似乎更糟。

答案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}

在此輸入影像描述

相關內容