有沒有辦法設定它以便數學模式自動地停止使用斜體大寫字母嗎?也就是說,這樣$U$
會產生現在的效果$\mathrm{U}$
?我正在使用現代計算機。我知道其他字體有此選項,但我想在現代計算機中執行此操作。但是,如果某些解決方案與字體無關,那就太好了,這樣我就可以在它們之間切換並保留此設定。
答案1
關於 LaTeX,請參閱 Philippe Goutet 的回答!
為了純文字定義可以是:
\mathcode`A="7041
\mathcode`B="7042
\mathcode`C="7043
% ...
\mathcode`Z="705A
$ ABC\dots Z $
\bye
答案2
如果您使用 LaTeX 而不是普通 TeX,您應該更\DeclareMathSymbol
喜歡\mathcode
.您甚至可以透過使用`A
而不是相應的數字來避免明確給出大寫字母在字體中的位置41
:
\DeclareMathSymbol{A}{\mathalpha}{operators}{`A}
\DeclareMathSymbol{B}{\mathalpha}{operators}{`B}
\DeclareMathSymbol{C}{\mathalpha}{operators}{`C}
\DeclareMathSymbol{D}{\mathalpha}{operators}{`D}
\DeclareMathSymbol{E}{\mathalpha}{operators}{`E}
\DeclareMathSymbol{F}{\mathalpha}{operators}{`F}
\DeclareMathSymbol{G}{\mathalpha}{operators}{`G}
\DeclareMathSymbol{H}{\mathalpha}{operators}{`H}
\DeclareMathSymbol{I}{\mathalpha}{operators}{`I}
\DeclareMathSymbol{J}{\mathalpha}{operators}{`J}
\DeclareMathSymbol{K}{\mathalpha}{operators}{`K}
\DeclareMathSymbol{L}{\mathalpha}{operators}{`L}
\DeclareMathSymbol{M}{\mathalpha}{operators}{`M}
\DeclareMathSymbol{N}{\mathalpha}{operators}{`N}
\DeclareMathSymbol{O}{\mathalpha}{operators}{`O}
\DeclareMathSymbol{P}{\mathalpha}{operators}{`P}
\DeclareMathSymbol{Q}{\mathalpha}{operators}{`Q}
\DeclareMathSymbol{R}{\mathalpha}{operators}{`R}
\DeclareMathSymbol{S}{\mathalpha}{operators}{`S}
\DeclareMathSymbol{T}{\mathalpha}{operators}{`T}
\DeclareMathSymbol{U}{\mathalpha}{operators}{`U}
\DeclareMathSymbol{V}{\mathalpha}{operators}{`V}
\DeclareMathSymbol{W}{\mathalpha}{operators}{`W}
\DeclareMathSymbol{X}{\mathalpha}{operators}{`X}
\DeclareMathSymbol{Y}{\mathalpha}{operators}{`Y}
\DeclareMathSymbol{Z}{\mathalpha}{operators}{`Z}