我使用的是 LegrandOrangeBook,其中章节标题和目录的字体与正文的字体不同。我不喜欢这种外观,我想将书中的所有文本转换为 Times New Roman。
我最接近的猜测是在 Class (.cls) 文件的“字体”部分中进行一些更改。在此文件中,我可以看到他们在哪里声明标题的 Avantgarde 字体。我尝试将其更改为 Times New Roman,但似乎没有任何变化:
%----------------------------------------------------------------------------------------
% FONTS
%----------------------------------------------------------------------------------------
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[T1]{fontenc} % Output font encoding for international characters
%\usepackage{avant} % Use the Avantgarde font for headings
\usepackage{times} % Use Times New Roman font for headings
\usepackage{mathptmx} % Use the Adobe Times Roman as the default text font together with math symbols from the Symbol, Chancery and Computer Modern fonts
\usepackage{microtype} % Improve typography
我错过了什么?
答案1
您不需要修改已经加载包的类mathptmx
以使用 Adobe Times Roman 作为默认文本字体
所有章节标题(及更多)均由 定义。可以在声明后
\sffamily
使用 更改默认值。\renewcommand{\sfdefault}{\rmdefault}
\documentclass
要使用无衬线字体书写文本,请按照\fontfamily{pag}\fontsize{9}{11}\selectfont
所示示例使用。
与
\chapter{Sectioning Examples}\index{Sectioning}
\section{Section Title}\index{Sectioning!Sections}
Lorem ipsum dolor sit amet, consectetur adipiscing elit\footnote{Footnote example text\ldots Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.}. Praesent porttitor arcu luctus, imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie. Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl. Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
Aliquam arcu turpis, ultrices sed luctus ac, vehicula id metus. Morbi eu feugiat velit, et tempus augue. Proin ac mattis tortor. Donec tincidunt, ante rhoncus luctus semper, arcu lorem lobortis justo, nec convallis ante quam quis lectus. Aenean tincidunt sodales massa, et hendrerit tellus mattis ac. Sed non pretium nibh. Donec cursus maximus luctus. Vivamus lobortis eros et massa porta porttitor.
{\fontfamily{pag}\fontsize{9}{11}\selectfont Aliquam arcu turpis, ultrices sed luctus ac, vehicula id metus. Morbi eu feugiat velit, et tempus augue. Proin ac mattis tortor. Donec tincidunt, ante rhoncus luctus semper, arcu lorem lobortis justo, nec convallis ante quam quis lectus. Aenean tincidunt sodales massa, et hendrerit tellus mattis ac. Sed non pretium nibh. Donec cursus maximus luctus. Vivamus lobortis eros et massa porta porttitor.}