配置 LaTeX 默认使用 lmodern 作为 T1?

配置 LaTeX 默认使用 lmodern 作为 T1?

就像那些参与讨论的人一样为什么自动使用位图字体?,我还发现自动使用位图字体非常烦人,因为输出效果非常糟糕。我的问题是:

如何配置 LaTeX(TeX Live)以便如果使用 T1 则lmodern默认使用,如果lmodern不可用则不尝试生成位图字体?

答案1

您可以通过修改 fonttext.cfg 和 fontmath.cfg 来更改字体配置,请参阅LaTeX 2e 的配置选项。您可以通过以下方式找到此文档

texdoc cfgguide

但是,不建议更改字体设置。以下是来自 fontdef.dtx 的引文:

% \section{Customization}
%
% You are not allowed to change this source file!  If you want to
% change the default encodings and/or the font shape groups preloaded
% you should should create a copy of \texttt{fonttext.ltx}
% under the name \texttt{fonttext.cfg} and change this copy. If
% \LaTeXe{} finds a file of this name it will use it, otherwise it
% uses the standard file which is \texttt{fontdef.ltx}.
%
% If you don't plan to use Computer Modern much or at all, it might
% (!)  be a good idea to make your own \texttt{fonttext.cfg}. Look at
% the comments below (docstrip module `text') to see what should
% should go into such a file.
%
% To change the math font setup use a copy of \texttt{fontmath.ltx}
% under the name \texttt{fontmath.cfg} and change this copy. However,
% dealing with this interface is even more a job for an expert than
% changing the text font setup --- in short, we don't encourage either.

相关内容