页眉上有章节标题,而不是子章节

页眉上有章节标题,而不是子章节

您好,我尝试只使用章节标题而不是章节或子章节作为标题,但我发现的所有帖子都没有帮助,我不确定是否可以以及如何更改它,这就是为什么我上传了以下示例。我希望有人可以提供帮助,提前致谢。

\documentclass[
% Replace twoside with oneside if you are printing your thesis on a single side
% of the paper, or for viewing on screen.
%oneside,
oneside,
11pt, a4paper,
footinclude=true,
headinclude=true,
cleardoublepage=empty
]{scrbook}

\usepackage{lipsum}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{acronym}
\usepackage[titles]{tocloft}
\usepackage{tocloft}
\usepackage{minitoc}
\usepackage{times}
\usepackage{setspace}
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\cftchapfont}{\normalfont}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} 
\renewcommand{\listfigurename}{LIST OF FIGURES}
\setlength{\cftbeforefigskip}{0.25in}
\renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}

\renewcommand{\listtablename}{LIST OF TABLES}
\setlength{\cftbeforetabskip}{0.2in}

\title{Thesis Title}
\author{John Doe}

\begin{document}

\maketitle
\frontmatter
\tableofcontents
\listoffigures 
\listoftables 

\chapter{Acknowledgements} 

I would like to thank my supervisor, Professor Someone. This 
research was funded by the Imaginary Research Council. 

\chapter{Abstract} 

A brief summary of the project goes here. 

\chapter{Abbreviations}

\mainmatter 

\include{intro2} 

\backmatter  

\begin{thebibliography}{100} % 100 is a random guess of the total number of 
 %references 
\end{thebibliography}

\end{document} 

对于 intro2.tex:

\chapter{Introduction} 
\label{ch:intro} 
\section{Blabal}

blaalblbla
\subsection{blubl} 
blublbu 

答案1

无需太多麻烦,只需将以下内容添加到序言中即可:

\renewcommand{\chaptermark}[1]{%
  \markboth{\spacedlowsmallcaps{\thechapter~#1}}{\spacedlowsmallcaps{\thechapter~#1}}}
\renewcommand{\sectionmark}[1]{}%

\chaptermark被更新为插入\thechapter到章节标题之前作为标题的一部分,同时\sectionmark被制作成一个只吞噬其参数的宏(从而不执行任何操作)。

相关内容