mathpazo 和 \mathcal 與非大寫字母的問題

mathpazo 和 \mathcal 與非大寫字母的問題

我正在嘗試使用 mathpazo 字體,但在使用 \mathcal 處理小寫字母時遇到一些問題

這是我的模板

\documentclass[11pt]{amsart}
\usepackage{geometry}                % See geometry.pdf to learn the layout options. There are lots.
\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                % Activate for for rotated page geometry
%\usepackage[parfill]{parskip}    % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{mathptmx}
\usepackage{accents}
\usepackage{amssymb}
\usepackage{amsfonts}

\usepackage{mathpazo}



\begin{document}
\maketitle
%\section{}
%\subsection{}

just some test  $ \infty \mathcal{l}$

\end{document}  

答案1

大寫書法字母對應到 font cmsy10。此字體僅包含書法大寫字母。

用於字體檢查的 Plain TeX 版本

testfont.tex可以使用普通格式(不是 LaTeX)來檢查字型。 LaTeX 提供了nfssfont.tex,源自testfont.tex,請參閱下一節。

互動式會話範例testfont

$ pdftex testfont
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
([...]/texmf-dist/tex/plain/base/testfont.tex

Name of the font to test = cmsy10
Now type a test command (\help for help):)
*\help 

\init switches to another font;
\end or \bye finishes the run; 
\table prints the font layout in tabular format;
\text prints a sample text, assuming TeX text font conventions;
\sample combines \table and \text;
\mixture mixes a background character with a series of others;
\alternation interleaves a background character with a series;
\alphabet prints all lowercase letters within a given background;
\ALPHABET prints all uppercase letters within a given background;
\series prints a series of letters within a given background;
\lowers prints a comprehensive test of lowercase;
\uppers prints a comprehensive test of uppercase;
\digits prints a comprehensive test of numerals; 
\math prints a comprehensive test of TeX math italic;
\names prints a text that mixes upper and lower case;
\punct prints a punctuation test;
\bigtest combines many of the above routines;
\help repeats this message;
and you can use ordinary TeX commands (e.g., to \input a file).
*\table

*\bye
[1{[...]/texmf-dist/fonts/map/pdftex/updmap/pdftex.map}]
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.p
fb><[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7
.pfb><[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cm
sy10.pfb><[...]/texmf-dist/fonts/type1/public/amsfonts/c
m/cmti10.pfb><[...]/texmf-dist/fonts/type1/public/amsfon
ts/cm/cmtt10.pfb>
Output written on testfont.pdf (1 page, 72843 bytes).
Transcript written on testfont.log.

或者可以建立用於非互動式使用的驅動程式檔案:

\let\noinit!
\input testfont
\def\fontname{cmsy10}
\startfont
\table
\bye

結果 cmsy10

乳膠版

\mathcal使用數學符號字體(來自fontmath.ltx):

\DeclareSymbolFontAlphabet{\mathcal}{symbols}

套件mathpazo包含以下帶有 OMS 編碼的符號字體定義:

\DeclareSymbolFont{symbols}{OMS}{zplm}{m}{n}

後四個參數與 for 相同\usefont且是 所需的nfssfont.tex。互動式會話範例:

$ pdflatex nfssfont
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
([...]/texmf-dist/tex/latex/base/nfssfont.tex
LaTeX2e <2011/06/27>
Babel <3.9f> and hyphenation patterns for 77 languages loaded.
([...]/texmf-dist/tex/latex/base/article.cls 
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
([...]/texmf-dist/tex/latex/base/size10.clo))
No auxiliary output files.

**********************************************
* NFSS font test program version <v2.2b>
*
* Follow the instructions
**********************************************

Input external font name, e.g., cmr10
(or <enter> for NFSS classification of font):

\currfontname=


*** NFSS classification ***

Font encoding [T1]:

\encoding=OMS
([...]/texmf-dist/tex/latex/base/omsenc.def)
Font family [cmr]:

\family=zplm
Font series [m]:

\series=m
Font shape [n]:

\shape=n
Font size [10pt]:

\size=
([...]/texmf-dist/tex/latex/psnfss/omszplm.fd)
Now type a test command (\help for help):)
*\table

*\bye
[1{[...]/texmf-dist/fonts/map/pdftex/updmap/pdftex.map}]
{[...]/texmf-dist/fonts/enc/dvips/base/8r.enc}
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb>
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb>
<[...]/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb>
<[...]/texmf-dist/fonts/type1/public/mathpazo/fplmr.pfb>
<[...]/texmf-dist/fonts/type1/urw/palatino/uplr8a.pfb>
Output written on nfssfont.pdf (1 page, 88770 bytes).
Transcript written on nfssfont.log.

非互動式會話的驅動程式檔案可能如下所示:

\let\noinit!
\input{nfssfont}
\def\encoding{OMS}
\usefont{OMS}{zplm}{m}{n}
\edef\currfontname{\fontname\font}
\startfont
\table
\bye

結果 OMS/zplm/m/n

概括

對於“書法”小寫字母,您需要不同的字體並且不能使用\mathcal.

相關內容