我在 TexLive 2016 下运行 newtx 包,发现数学斜体字体(预期为 ntxmi,.sty 文件下的 OML 编码)被 UWR/nimbus 字体(utmri8a)替换。所有其他字体似乎都很好。不知道这是为什么?
详细信息:TexShop 3.75 下的 pdflatex 与 TexLive 2016,Mac OS Sierra
newtxtext.sty 2016/08/12 v1.5
omlntxmi.fd 2015/08/25 Fontinst v1.933 font definitions for OML/ntxmi.
newtxmath.sty 2016/11/18 v1.514
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{newtxtext}
\usepackage{newtxmath}
\DeclareMathAlphabet{\mathbfit}{OML}{ntxmi}{b}{it} % for comparison
\thispagestyle{empty}
\begin{document}
$h\,x\,d$ % results in /usr/local/texlive/2016/texmf-dist/fonts/type1/urw/times/utmri8a.pfb
$\mathbfit{h\,x\,d}$ % results in /usr/local/texlive/2016/texmf-dist/fonts/type1/public/newtx/rntxbmi.pfb
$\mathbf{h\,x\,d}$ % results in usr/local/texlive/2016/texmf-dist/fonts/type1/public/tex-gyre/qtmb.pfb>
\end{document}
答案1
\textfont1
(第一个公式中的字符)使用的字体是
\OML/ntxmi/m/it/10.95
映射到ntxmi at 10.95pt
。下面是我们执行 时的输出开头vftovp ntxmi.vf
:
(VTITLE )
(FAMILY UNSPECIFIED)
(FACE F MRR)
(CODINGSCHEME TEX MATH ITALIC)
(DESIGNSIZE R 10.0)
(COMMENT DESIGNSIZE IS IN POINTS)
(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
(CHECKSUM O 34425111214)
(SEVENBITSAFEFLAG TRUE)
(FONTDIMEN
(SLANT R 0.277)
(SPACE R 0.0)
(STRETCH R 0.0)
(SHRINK R 0.0)
(XHEIGHT R 0.441)
(QUAD R 1.0)
(EXTRASPACE R 0.0)
)
(MAPFONT D 0
(FONTNAME txmi)
(FONTCHECKSUM O 5432341673)
(FONTAT R 1.0)
(FONTDSIZE R 10.0)
)
(MAPFONT D 1
(FONTNAME rntxmi)
(FONTCHECKSUM O 11446214367)
(FONTAT R 1.0)
(FONTDSIZE R 10.0)
)
通过查看其余输出并搜索SELECTFONT D 1
,我们意识到字体rntxmi
用于数字,G,五,瓦,是和八进制 176(箭头)。因此,其余部分使用\vec
主字体。现在让我们做:txmi
vftovp txmi.vf
(VTITLE )
(FAMILY TXMI)
(FACE F MRR)
(CODINGSCHEME FONTSPECIFIC + CMMIENCODING)
(DESIGNSIZE R 10.0)
(COMMENT DESIGNSIZE IS IN POINTS)
(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
(CHECKSUM O 5432341673)
(SEVENBITSAFEFLAG TRUE)
(FONTDIMEN
(SLANT R 0.277)
(SPACE R 0.0)
(STRETCH R 0.0)
(SHRINK R 0.0)
(XHEIGHT R 0.441)
(QUAD R 1.0)
(EXTRASPACE R 0.0)
)
(MAPFONT D 0
(FONTNAME rtxmi)
(FONTCHECKSUM O 12672155070)
(FONTAT R 1.0)
(FONTDSIZE R 10.0)
)
(MAPFONT D 1
(FONTNAME rtxptmri)
(FONTCHECKSUM O 16356635626)
(FONTAT R 1.0)
(FONTDSIZE R 10.0)
)
[...]
(CHARACTER C A
(CHARWD R 0.636)
(CHARHT R 0.6535)
(COMMENT
(KRN O 177 R 0.111)
)
(MAP
(MOVERIGHT R 0.025)
(SELECTFONT D 1)
(SETCHAR C A)
)
)
(CHARACTER C B
(CHARWD R 0.636)
(CHARHT R 0.6535)
(COMMENT
(KRN O 177 R 0.058)
)
(MAP
(MOVERIGHT R 0.035)
(SELECTFONT D 1)
(SETCHAR C B)
)
)
[...]
字体rtxptmri
用于字母,这是我们的情况。现在,这是此字体的条目pdftex.map
:
rtxptmri NimbusRomNo9L-ReguItal " TeXBase1Encoding ReEncodeFont " <8r.enc <utmri8a.pfb
所以,是的:字体中的数学斜体字母newtxmath
取自使用“Nimbus Roman No9 Regular Italic”实现的字体,除了上述字母之外。确实pdflatex
,
\documentclass[11pt]{article}
\usepackage{newtxmath}
\thispagestyle{empty}
\begin{document}
$gvwy$
\end{document}
导致输出如下pdffonts
:
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
WKGQAX+rntxmi Type 1 yes yes no 4 0