在第 1 章中,我看不到任何页眉(其中包含章节或节名)。但在第二章中,我看到了节名。我不确定为什么会发生这种情况。我甚至尝试使用 和 清除页眉和页脚\fancyhead{}
。\fancyfoot{}
但仍然不起作用。
% !TeX root = MasterThesis.tex
% !TeX encoding = utf8
% !TeX spellcheck = en_US
\documentclass[12pt, twoside, openany]{scrbook}
%page layout
\RedeclareSectionCommand[beforeskip=0pt]{chapter}
\usepackage{fontspec}
\fontspec{Times New Roman}
\usepackage{babel}
\newcommand\fh{\babelhyphen{hard}}
\usepackage{url}
\linespread{1.5}
\usepackage[toc, acronym]{glossaries}
\makeglossaries
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage[a4paper]{geometry}
\title{Seamless Firmware Update Over the Air}
\author{Vijay Bhargava B}
\date{February 2023}
%\pdfstringdefDisableCommands{
% \def\\{}%
% \def\texttt#1{<#1>}%
%}
\setcounter{tocdepth}{3}
\renewcommand{\contentsname}{Table of Contents}
\usepackage{titletoc}
\newcommand{\setupname}[1][\chaptername]{
\titlecontents{chapter}[0pt]{\vspace{1ex}}{\bfseries#1~\thecontentslabel:\quad}{\bfseries}{\bfseries\hfill\contentspage}[]
}
\usepackage{lipsum}
\begin{document}
\maketitle
\include{00_1_Declaration_honest}
\setlength{\parindent}{0pt}
\frontmatter
\include{00_1_Abstract}
\setupname
\tableofcontents
\mainmatter
\include{01_Introduction/01_Introduction}
\include{02_Theoretical/02_Theoretical_Background}