如何将标题的大小设置为标准大小?

如何将标题的大小设置为标准大小?

在以下 MWE 中,各部分标题的大小比通常的大小小一号,如下面的两张图片所示。我该如何修改呢?

在此处输入图片描述

在此处输入图片描述

\documentclass[hidelinks,12pt,twoside,openright,a4paper]{book}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{setspace}
\usepackage{lipsum}

\usepackage{tocloft}

%%%% center part titles
\renewcommand{\cftpartfont}{\hfil\bfseries}
\renewcommand{\cftpartleader}{\hfil}

\setlength{\cftbeforechapskip}{3pt}%espace entre chapitres
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{fancyhdr}

\pagestyle{fancy}
% We don’t want chapter and section numbers
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{} % sets both header and footer to nothing
\fancyfoot{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[CE]{\textit{A title}} % even pages: chapter title
\fancyhead[CO]{\textit\leftmark} % odd pages: book title

\setlength{\headheight}{15pt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\title{A title}
\author{A name}
\date{}
\maketitle

\tableofcontents
    
\frontmatter
\part{Why is Latex so complicated?}
\chapter{A chapter}
\lipsum
    
\mainmatter
\part{How to customize a part section?}
\chapter{Another chapter}
\lipsum

\backmatter

\end{document}

相关内容