请考虑以下示例代码。我正在使用 TeX Live 2019 ( 2019.20190710-1
) 和 Debian 10 (buster)。
\documentclass[12pt]{scrlttr2}
\begin{document}
\setkomavar{fromname}{Faheem Mitha}
\setkomavar{fromaddress}{Address}
\renewcommand{\mobilephonename}{Mobile}
\setkomavar{frommobilephone}{Phone number}
\setkomavar{fromemail}{Email address}
\setkomavar{signature}{(\usekomavar{fromname})}
\setkomavar{subject}{Subject}
\setkomavar{date}{\today}
\setkomavar{firsthead}{%
\parbox{\linewidth}{\centering
{\fontfamily{pzc}\selectfont
\hspace{\textwidth}
\usekomavar{fromname}\\
\usekomavar{fromaddress}\\
\usekomavar*{mobilephoneseparator}\usekomavar{mobilephoneseparator}\usekomavar{frommobilephone}\\
\usekomavar*{emailseparator}\usekomavar{emailseparator}\usekomavar{fromemail}
}
}%
}
\def\today{xxth xxxxxxx, 201x}
\begin{letter}{To Address}
\opening{Addressee}
\closing{Yours Sincerely,}
\end{letter}
\end{document}
使用 LuaTeX 时不会显示以 pzc 字体系列设置的标题,但它在 PDFLaTeX 中可以显示。
这是使用 LuaTeX 的消息。
LaTeX Font Info: Try loading font information for TU+pzc on input line 28.
LaTeX Font Info: No file TUpzc.fd. on input line 28.
LaTeX Font Warning: Font shape `TU/pzc/m/n' undefined
(Font) using `TU/lmr/m/n' instead on input line 28.
这是使用 PDFLaTeX 对应的消息。
LaTeX Font Info: Try loading font information for OT1+pzc on input line 27.
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1pzc.fd
File: ot1pzc.fd 2001/06/04 font definitions for OT1/pzc.
)
LaTeX Font Info: Font shape `OT1/pzc/m/n' in size <12> not available
(Font) Font shape `OT1/pzc/mb/it' tried instead on input line 27.
答案1
不要在 luatex 中使用此类旧式 8 位字体系列名称,请使用软件包fontspec
并使用 Unicode OpenType 字体
TeX Gyre Chorus 将是合适的 Zapf Chancery 克隆。
\documentclass[12pt]{scrlttr2}
\usepackage{fontspec}
\begin{document}
\setkomavar{fromname}{Faheem Mitha}
\setkomavar{fromaddress}{Address}
\renewcommand{\mobilephonename}{Mobile}
\setkomavar{frommobilephone}{Phone number}
\setkomavar{fromemail}{Email address}
\setkomavar{signature}{(\usekomavar{fromname})}
\setkomavar{subject}{Subject}
\setkomavar{date}{\today}
\setkomavar{firsthead}{%
\parbox{\linewidth}{\centering
{\fontspec{TeX Gyre Chorus}
\hspace{\textwidth}
\usekomavar{fromname}\\
\usekomavar{fromaddress}\\
\usekomavar*{mobilephoneseparator}\usekomavar{mobilephoneseparator}\usekomavar{frommobilephone}\\
\usekomavar*{emailseparator}\usekomavar{emailseparator}\usekomavar{fromemail}
}
}%
}
\def\today{xxth xxxxxxx, 201x}
\begin{letter}{To Address}
\opening{Addressee}
\closing{Yours Sincerely,}
\end{letter}
\end{document}