我正在使用一个模板,它使用字体\usefont{T1}{bch}{m}{n}\selectfont{}
,即代码和输出中的第三个字体,作为一般文本。但是这种字体不用于环境内部,例如Theorem
等。当页面上有一个定理,其中包含大量一般文本时,我感觉字体有些不一致。我的问题是:我是否应该将环境内部的字体更改为与一般文本使用的字体相同?如果是,如何正确执行此操作?
\documentclass[a4paper]{article}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{thm}{Theorem}
\begin{document}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
\ \\
\usefont{T1}{cmbr}{m}{n}\selectfont{}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
\ \\
\usefont{T1}{bch}{m}{n}\selectfont{}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
\end{document}
答案1
\usefont{T1}{bch}{m}{n}\selectfont{}
仅用于罕见的一次性访问未设置的字体,它不会更改任何默认值。
如果你想将 bhc 设为默认字体系列,你应该使用
\renewcommand\familydefault{bhc}
还绝不做这个:
\ \\
它会破坏在文档中获得良好间距的任何机会。
\documentclass[a4paper]{article}
\renewcommand\familydefault{bch}
\usepackage[T1]{fontenc}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{thm}{Theorem}
\begin{document}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
This is an example.
We will show the differences.
\begin{thm}
This is inside the theorem.
\end{thm}
\end{document}