![如何在不改变其他内容的情况下更改 ClassicThesis 中的主字体](https://linux22.com/image/419960/%E5%A6%82%E4%BD%95%E5%9C%A8%E4%B8%8D%E6%94%B9%E5%8F%98%E5%85%B6%E4%BB%96%E5%86%85%E5%AE%B9%E7%9A%84%E6%83%85%E5%86%B5%E4%B8%8B%E6%9B%B4%E6%94%B9%20ClassicThesis%20%E4%B8%AD%E7%9A%84%E4%B8%BB%E5%AD%97%E4%BD%93.png)
我正在使用 ClassicThesis 和 Arsclassica 软件包,我想将主字体更改为标准计算机现代字体,同时,我不想更改 Headers 样式、Toc 样式或其他任何样式。我已使用 ClassicThesis 选项部分实现了此目的:palatino=false
,但现在 Toc 字体已切换为计算机现代字体,而我想要默认的 Arsclassica 样式。有什么建议吗?
这里是代码:
\documentclass[a4paper,11pt,oneside,openright,titlepage,headinclude,
footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty]{scrreprt}
\usepackage{subfig}
\usepackage[eulerchapternumbers,beramono,pdfspacing,palatino=false]{classicthesis}
\usepackage{arsclassica}
\usepackage{lipsum}
\usepackage[english,italian]{babel}
%\usepackage{microtype}
\usepackage{afterpage}
\usepackage{setspace}
\usepackage[italian]{varioref}
\usepackage{eurosym}
\usepackage{quoting}
\quotingsetup{font=small}
\usepackage{indentfirst}
\usepackage{enumerate}
\usepackage{epigraph}
\usepackage[output-decimal-marker={,}]{siunitx}
\usepackage{booktabs,amsmath,eurosym,mathtools,amssymb,bm}
\usepackage{array}
%\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{acronym}
\usepackage{tabularx}
%\usepackage{caption}
\captionsetup{tableposition=top,figureposition=bottom,font=small}
%\usepackage{xcolor}
\usepackage{tikz}
\usepackage{float}
%\usepackage{subcaption}
\usetikzlibrary{calc,matrix,patterns}
\usepackage{pgfplots}
\usepackage[autostyle,italian=guillemets]{csquotes}
\usepackage{url}
\renewbibmacro*{doi+eprint+url}{%
\printfield{doi}%
\newunit\newblock%
\iftoggle{bbx:eprint}{%
\usebibmacro{eprint}%
}{}%
\newunit\newblock%
\iffieldundef{doi}{%
\usebibmacro{url+urldate}}%
{}%
}
\DeclareCiteCommand{\citeyear}
{\usebibmacro{prenote}}
{\bibhyperref{\printfield{year}}\bibhyperref{\printfield{extrayear}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\citeyearpar}[\mkbibparens]
{\usebibmacro{prenote}}
{\bibhyperref{\printfield{year}}\bibhyperref{\printfield{extrayear}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\makeatletter
\AtBeginDocument{%
\renewcommand*{\AC@hyperlink}[2]{%
\begingroup
\hypersetup{hidelinks}%
\hyperlink{#1}{#2}%
\endgroup
}%
}
\makeatother
\date{}
\begin{document}
\tableofcontents
\phantomsection
\addcontentsline{toc}{chapter}{Introduction}
\chapter*{Introduzione}
\lipsum
\chapter{Dummy title 1}
\lipsum
\section{Dummy title 2}
\lipsum
\chapter{Dummy title 3}
\lipsum
\section{Dummy title 4}
\lipsum
\end{document}
这是我得到的结果(请注意,简介和章节标题采用 cm 字体,而章节我认为是默认的 iwona 加欧拉数字样式):
这是我想要的*(我认为章节标题和数字采用 palatino 字体,而介绍仍采用 cm,这可能是因为 \addcontentsline;我可以用 修复它\section[{\fontfamily{ppl}\selectfont Introduction}]{Introduction}
):
任何帮助将不胜感激。