我想将 mathpazo 与 scrlttr2 一起使用。
如果我加载包裹,收件人地址的反向地址不会在 palatino 中设置。
我怎样才能更改所有文本的字体?提前致谢!
最小示例:
\documentclass{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[osf,sc]{mathpazo}
\LoadLetterOption{DIN}
\setkomavar{fromname}{From Name}
\setkomavar{fromaddress}{From Street\\00000 From City}
\setkomavar{fromphone}{+49 0000 0\,00\,00\,00}
\setkomavar{fromemail}{[email protected]}
\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{(From Name)}
\setkomavar{place}{From City}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\begin{document}
\begin{letter}{To Name\\To Street\\00000 To Place}
\setkomavar{subject}{Subject}
\opening{Ladies and Gentlemen,}
\blindtext
\closing{Sincerely,}
\end{letter}
\end{document}
答案1
Koma-Script 手册第 176 页告诉您,反向地址的默认字体是\sffamily
。只需添加
\setkomafont{backaddress}{\normalfont}
完整代码
\documentclass{scrlttr2}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[osf,sc]{mathpazo}
\LoadLetterOption{DIN}
\setkomavar{fromname}{From Name}
\setkomavar{fromaddress}{From Street\\00000 From City}
\setkomavar{fromphone}{+49 0000 0\,00\,00\,00}
\setkomavar{fromemail}{[email protected]}
\setkomavar{backaddressseparator}{\enspace\textperiodcentered\enspace}
\setkomavar{signature}{(From Name)}
\setkomavar{place}{From City}
\setkomavar{date}{\today}
\setkomavar{enclseparator}{: }
\setkomafont{backaddress}{\normalfont}
\begin{document}
\begin{letter}{To Name\\To Street\\00000 To Place}
\setkomavar{subject}{Subject}
\opening{Ladies and Gentlemen,}
\blindtext
\closing{Sincerely,}
\end{letter}
\end{document}