更改模板章节布局

更改模板章节布局

我正在使用提供的这个 Overleaf 模板模板链接

他们给出了:

在此处输入图片描述

我想改为这种chapter布局:

在此处输入图片描述

有可能吗?我找不到他们在哪里进行此项设置。

他们的 main.tex 文件:

\begin{document}

% Title page
\include{structure/title}

% All subsequent pages must be numbered, title page is considered page i,
% front matter is numbered in lowercase Roman numerals
\pagestyle{fancy}
\pagenumbering{roman}
\setcounter{page}{2}
\doublespacing

% Dedication (optional)
\include{structure/dedication}

% Acknowledgments
\include{structure/acknowledgements}

% Abstract
\include{structure/abstract}

% Table of Contents, List of Tables, List of Figures
\tableofcontents

%List of Tables & Figures
\include{structure/tablesfigures}


%%%%%%%%%%%%%%%%%%%% DISSERTATION CONTENT %%%%%%%%%%%%%%%%%%%%

% Regular numbering starts now, first page of first chapter is page 1
\clearpage
\setcounter{page}{0}
\pagenumbering{arabic}

% Body


\include{chapters/01-introduction}

\include{chapters/02-background}

\include{chapters/03-chapter}

\include{chapters/04-chapter}

% References
\clearpage
\addcontentsline{toc}{chapter}{Bibliography}
\markboth{\MakeUppercase{Bibliography}}{}
\singlespacing
\printbibliography

\appendix
\include{chapters/99-appendix}

\end{document}

答案1

我很乐意删除它,但也许

\documentclass[12pt,oneside]{book}
\usepackage{titlesec}
\titleformat{\chapter}[block]
  {\normalfont\sffamily\huge\bfseries\filcenter}
  {\filcenter\chaptertitlename\ \thechapter\filcenter\\}{20pt}{\Huge}
\begin{document}
\chapter{Study 1: Study about \LaTeX}
\end{document}  

在此处输入图片描述

给你你想要的。正如我在评论中所写的,在你的文档中测试这一点是不可能的,所以我所做的就是从链接中获取类,并在答案中使用它。

相关内容