新增到目錄 - 更改字體

新增到目錄 - 更改字體

我的問題是,當我抑制章節編號但想將其添加到目錄中時,Latex 不使用與我使用 \chapter{} 時應使用的字體相同的字體。

\documentclass[12pt,a4paper,oneside,ngerman,titlepage=firstiscover,chapterentrydots]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[babel,german=guillemets]{csquotes}
\usepackage[onehalfspacing]{setspace}
\usepackage[pdfspacing]{classicthesis}

\begin{document}

\tableofcontents

\addchap*{Abstract}





\mainmatter
\chapter*{Remarks}
\addcontentsline{toc}{chapter}{Remarks}

\chapter{Remarks}

\end{document}

答案1

它不是 LaTeX,而是 classicthesis,而且似乎是設計使然。你可以這樣改變它:

\documentclass[12pt,a4paper,oneside,ngerman,titlepage=firstiscover,chapterentrydots]{scrbook}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[babel,german=guillemets]{csquotes}
\usepackage[onehalfspacing]{setspace}
\usepackage[pdfspacing]{classicthesis}
\renewcommand{\cftchapfont}{\spacedlowsmallcaps}%
\begin{document}
\frontmatter
\tableofcontents

\chapter*{Abstract}   

\mainmatter
\chapter*{Remarks}
\addcontentsline{toc}{chapter}{Remarks}

\chapter{Remarks}

\end{document}

請注意,classicthesis 使用 titlesec 和 titletoc,它們與 KOMA 類別不相容且不受 KOMA 類別支援。預計會有副作用。

相關內容