classicthesis 套件中目錄中的章節標題中的小寫字母

classicthesis 套件中目錄中的章節標題中的小寫字母

我正在使用classicthesis套件並\chapter在目錄中建立大寫字母的章節標題。我怎樣才能將它們更改為小寫?

答案1

與一個標準級您可以載入 KOMA-Script 套件tocbasic\spacedlowsmallcaps在 ToC 標題後重新定義:

\usepackage{tocbasic}
\addtotoclist[book.cls]{toc}
\renewcommand*{\tableofcontents}{\listoftoc[{\contentsname}]{toc}}
\AfterTOCHead[toc]{\renewcommand\spacedlowsmallcaps[1]{#1}}

在此輸入影像描述

代碼:

\documentclass{book}
\usepackage{tocbasic}
\addtotoclist[book.cls]{toc}
\renewcommand*{\tableofcontents}{\listoftoc[{\contentsname}]{toc}}
\AfterTOCHead[toc]{\renewcommand\spacedlowsmallcaps[1]{#1}}
\usepackage{classicthesis}
\begin{document}
\tableofcontents
\chapter{A Chapter}
\section{A Section}
\end{document}

如果您使用的是KOMA-Script 類,那麼您只需\spacedlowsmallcaps在 ToC 標題後重新定義:

代碼:

\documentclass{scrbook}
\usepackage{classicthesis}
\AfterTOCHead[toc]{\renewcommand\spacedlowsmallcaps[1]{#1}}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\chapter{A Chapter}
\section{A Section}
\end{document}

答案2

只要撤消 classicthesis 所做的操作即可:

\renewcommand{\cftchappresnum}{\normalfont}

這是在載入 classicthesis.sty 的命令之後執行的。

相關內容