如何在章节标题前添加单词章节编号

如何在章节标题前添加单词章节编号

我正在写论文。我想在每章开头的章节标题前添加“章节编号”。例如,第 1 章后面是下一行的章节标题。在目录中,它应该保持如下 MWE 中显示的样子。

% arara: pdflatex: { synctex: on }
% arara: pdflatex: { synctex: on }
\documentclass[oneside,12pt ]{scrbook}
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage[english]{babel}
\usepackage[autostyle]{csquotes}
\usepackage{cite}

\linespread{1.5}

\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=blue,
    urlcolor=blue
}
\AtBeginDocument{\renewcommand{\bibname}{References}}

\begin{document}

%\maketitle
\frontmatter

\tableofcontents
\listoffigures
\listoftables
%\chapter{Acknowledgements}

%\chapter{Abstract}
%A brief summary of the thesis goes here.
\mainmatter
\chapter {Introduction}
Introduction
\chapter{ Literature Review}


\backmatter
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{IEEEtran}
%\bibliographystyle{unsrt}
%\bibliographystyle{plain}
\bibliography{myBib}
\end{document}

答案1

添加选项chapterprefixheadings=chapterwithprefixline

\documentclass[oneside,12pt,
  chapterprefix% <- add this option
]{scrbook}
\begin{document}
\frontmatter
\tableofcontents
\listoffigures
\listoftables
\mainmatter
\chapter {Introduction}
Introduction
\chapter{ Literature Review}
\end{document}

在此处输入图片描述

相关内容