
考慮這個例子\[\sup_{i\in I},\; \inf_{i\in I}\]
:在顯示模式下渲染時\[ \]
,上確界中的下標顯示在文字下方顯著低於下確界中的下標。有沒有辦法解決這個問題?我知道存在允許您手動移動內容的軟體包,但我對它們不熟悉。此外,為什麼會出現這種情況呢?
答案1
\sup
下標比低,僅僅是\inf
因為字母“p”低於基線。您可以更改此行為並定義新命令,其中 的下標\sup
會更高,或者 的下標\inf
會更低。
例如,
\documentclass{article}
\usepackage{mathtools}
\newcommand{\newsup}{\mathop{\smash{\mathrm{sup}}}}
\newcommand{\newinf}{\mathop{\mathrm{inf}\vphantom{\mathrm{sup}}}}
\begin{document}
\begin{tabular}{ll}
Default: & \(\displaystyle \sup_{i\in I},\; \inf_{i\in I} \) \\
Raised subscript in \verb|\sup|: & \(\displaystyle \newsup_{i\in I},\; \inf_{i\in I} \) \\
Lowered subscript in \verb|\inf|: & \(\displaystyle \sup_{i\in I},\; \newinf_{i\in I} \) \\
\end{tabular}
\end{document}
\inf
然而,在這兩種修改後的情況下,它看起來很奇怪(至少在我看來),因為在一種情況下下標與“p”重疊,而在另一種情況下,其下標之間有很多空白。我同意預設值可能並不完全令人滿意,但我認為它仍然是最好的。