From e9568583e41fbc4722ceaf003f21033869744cdc Mon Sep 17 00:00:00 2001 From: nuluh Date: Sun, 11 May 2025 22:13:46 +0700 Subject: [PATCH 1/2] fix(latex): change document class from report to book for having access to \frontmatter, \mainmatter, and \backmatter --- latex/thesis.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/thesis.cls b/latex/thesis.cls index 5b1788e..ef3c511 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -6,7 +6,7 @@ \DeclareOption{draftmark}{\@draftmarktrue} \ProcessOptions \relax -\LoadClass[a4paper,12pt]{report} +\LoadClass[a4paper,12pt,oneside]{book} % Load common packages \RequirePackage{fontspec} From 104b72e624e66eae81741c49df05c6caab9e5e6a Mon Sep 17 00:00:00 2001 From: nuluh Date: Sun, 11 May 2025 22:15:05 +0700 Subject: [PATCH 2/2] fix(latex): remove second `\hfill` in the `\cftaftertoctitle` to fix the `\contentsname` with `book` document class --- latex/thesis.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/thesis.cls b/latex/thesis.cls index ef3c511..42515e6 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -105,7 +105,7 @@ % Table of Contents (TOC) Title styling \renewcommand{\contentsname}{DAFTAR ISI} \renewcommand{\cfttoctitlefont}{\bfseries\MakeUppercase} -\renewcommand{\cftaftertoctitle}{\hfill\hfill} % https://tex.stackexchange.com/a/255699/394075 +\renewcommand{\cftaftertoctitle}{\hfill} % https://tex.stackexchange.com/a/255699/394075 % \renewcommand{\cftaftertoctitle}{\vskip 2em} % Frontmatter Macro (Toggle TOC Inclusion)