```\mathcal``` 和 ```mathscr``` 在我的模板中看起來相同

```\mathcal``` 和 ```mathscr``` 在我的模板中看起來相同

在我目前由 pdflatex 編譯的模板中,我看到\mathcal強制\mathscr.例如,$\mathcal{T},\mathscr{T}$導致輸出在此輸入影像描述。誰能提出這個問題的潛在原因? PS,我認為這是正常輸出\mathcal{T}在此輸入影像描述

答案1

沒有「正常」\mathcal。不同的字體集對此有不同的選擇。

您應該意識到這mathptmx本質上是一種拼湊。文字字體是(多種)Times,符號是從各處繪製的,主要目的是使文件盡可能小,並在翻譯為 Postscript 或最近幾年翻譯為 PDF 時盡可能小。

碰巧它mathptmx也使用了 RSFS 字體來載入\usepackage{mathrsfs}\mathcal字母表。

如今有更好的選擇mathptmx

mathptmx

\documentclass{article}
\usepackage{amsmath}

\usepackage{mathptmx}
\usepackage{mathrsfs}

\begin{document}

Some text $A\cap B\in\mathscr{P}(X)\ne\mathcal{P}(X)$ and some text

\end{document}

在此輸入影像描述

mathptmxcmsy

\documentclass{article}
\usepackage{amsmath}

\usepackage{mathptmx}
\usepackage{mathrsfs}

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}

\begin{document}

Some text $A\cap B\in\mathscr{P}(X)\ne\mathcal{P}(X)$ and some text

\end{document}

在此輸入影像描述

newtxtext,newtxmath

\documentclass{article}
\usepackage{amsmath}

\usepackage{newtxtext,newtxmath}

\begin{document}

Some text $A\cap B\in\mathscr{P}(X)\ne\mathcal{P}(X)$ and some text

\end{document}

在此輸入影像描述

stix2

\documentclass{article}
\usepackage{amsmath}

\usepackage{stix2}
\usepackage{mathrsfs}

\begin{document}

Some text $A\cap B\in\mathscr{P}(X)\ne\mathcal{P}(X)$ and some text

\end{document}

在此輸入影像描述

相關內容