fixlatex): fix chapter formatting and spacing in thesis class to be aligned at before chapter number and restyle \chapter to be centered and use hardcoded prefix "BAB" following with roman numbering
This commit is contained in:
@@ -53,25 +53,36 @@
|
|||||||
\fancyfoot[C]{\thepage}
|
\fancyfoot[C]{\thepage}
|
||||||
|
|
||||||
% Chapter formatting
|
% Chapter formatting
|
||||||
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter.}{1em}{}
|
\titleformat{\chapter}[display]
|
||||||
\titlespacing*{\chapter}{0pt}{-10pt}{20pt}
|
{\bfseries\Large\centering}
|
||||||
|
{BAB~\Roman{chapter}} % << display format
|
||||||
|
{1ex}
|
||||||
|
{\MakeUppercase}
|
||||||
|
|
||||||
|
% Ensure chapter reference in TOC matches
|
||||||
|
\renewcommand{\cftchappresnum}{BAB~}
|
||||||
|
\renewcommand{\cftchapaftersnum}{\quad}
|
||||||
|
|
||||||
|
% \titlespacing*{\chapter}{0pt}{-10pt}{20pt}
|
||||||
|
|
||||||
% Redefine \maketitle
|
% Redefine \maketitle
|
||||||
\renewcommand{\maketitle}{\input{frontmatter/maketitle}}
|
\renewcommand{\maketitle}{\input{frontmatter/maketitle}}
|
||||||
|
|
||||||
% Chapter & Section format
|
% Chapter & Section format
|
||||||
\renewcommand{\cftchapfont}{\bfseries\MakeUppercase}
|
\renewcommand{\cftchapfont}{\bfseries\MakeUppercase}
|
||||||
\renewcommand{\cftsecfont}{}
|
% \renewcommand{\cftsecfont}{}
|
||||||
\renewcommand{\cftsubsecfont}{\itshape}
|
% \renewcommand{\cftsubsecfont}{\itshape}
|
||||||
|
% \renewcommand{\thesection}{\textup{\Roman{chapter}}.\arabic{section}}
|
||||||
|
|
||||||
|
|
||||||
% Dot leaders, spacing, indentation
|
% Dot leaders, spacing, indentation
|
||||||
\setlength{\cftbeforechapskip}{1em}
|
\setlength{\cftbeforechapskip}{0em}
|
||||||
\setlength{\cftchapindent}{0pt}
|
\setlength{\cftchapindent}{0pt}
|
||||||
\setlength{\cftsecindent}{1.5em}
|
\setlength{\cftsecindent}{0em}
|
||||||
\setlength{\cftsubsecindent}{3em}
|
\setlength{\cftsubsecindent}{3em}
|
||||||
\setlength{\cftchapnumwidth}{3em}
|
\setlength{\cftchapnumwidth}{4em}
|
||||||
\setlength{\cftsecnumwidth}{3.5em}
|
\setlength{\cftsecnumwidth}{1.5em}
|
||||||
\setlength{\cftsubsecnumwidth}{4.5em}
|
\setlength{\cftsubsecnumwidth}{2.5em}
|
||||||
|
|
||||||
% Title styling
|
% Title styling
|
||||||
\renewcommand{\contentsname}{\hfill\bfseries\normalsize DAFTAR ISI\hfill}
|
\renewcommand{\contentsname}{\hfill\bfseries\normalsize DAFTAR ISI\hfill}
|
||||||
|
|||||||
Reference in New Issue
Block a user