在定理內的 \text 中使用直立文本

在定理內的 \text 中使用直立文本

如何讓定理環境中的文字\text自動垂直?

例如,我想使用這些程式碼來獲得以下效果:

\documentclass{article}
\usepackage{amsmath}
\newtheorem{theorem}{Theorem}

\begin{document}
\begin{theorem}
  This is a theorem.
  \[ F_\text{left}=F_\text{right} \]
\end{theorem}
\end{document}

在此輸入影像描述

(實際上,我\textup在這裡就是為了得到這種效果。)

更新:問題在數學模式下,我應該使用哪個命令來處理文字下標?可能會有幫助。

相關內容