我需要创建一个以 Utopia(Fourier 软件包)作为默认字体的文档。但是,在某个时候,我需要将默认的罗马字体更改为例如 CM-Roman。此时恢复为 utopia 会使文本看起来更厚更宽。
下面的 MWE 说明了我的问题。
\documentclass[12pt, a4paper, draft]{article}
\usepackage{fourier}
\newcommand{\ffont}[2]{
\fontencoding{#1}
\fontfamily{#2}
\selectfont
}
\begin{document}
Fourier-Utopia\\
The quick brown fox jumps over the lazy dog.\
\ffont{OT1}{cmr}
Compuer Modern Roman\\
The quick brown fox jumps over the lazy dog.\\
\ffont{T1}{put}
Fourier-Utopia Again\\
The quick brown fox jumps over the lazy dog.\
\end{document}
这似乎只发生在 Utopia 字体上。有人能告诉我实现此问题的正确方法吗?
谢谢
答案1
将其放入本地字体进行更改{...}
\documentclass[12pt, a4paper, draft]{article}
\usepackage{fourier}
\newcommand{\ffont}[2]{%
\fontencoding{#1}
\fontfamily{#2}
\selectfont}
\begin{document}
Fourier-Utopia\\
The quick brown fox jumps over the lazy dog.
{\ffont{OT1}{cmr}
Compuer Modern Roman\\
The quick brown fox jumps over the lazy dog.}
Fourier-Utopia Again\\
The quick brown fox jumps over the lazy dog.
\end{document}
傅氏罗马字体的正确设置是\ffont{T1}{futs}