From 92a7143d900783404eac74e401a1633d229bcb23 Mon Sep 17 00:00:00 2001 From: nuluh Date: Sun, 11 May 2025 11:38:53 +0700 Subject: [PATCH] fix(latex): update frontmatter section command to correctly add TOC entries as chapters --- latex/thesis.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latex/thesis.cls b/latex/thesis.cls index 0dc8155..8ae946d 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -97,7 +97,7 @@ \newcommand{\frontmattersection}[3]{% \begin{titlepage} \centering - \ifstrequal{#1}{toc}{\section*{#2}\addcontentsline{toc}{section}{#2}}{\section*{#2}}% + \ifstrequal{#1}{toc}{\addcontentsline{toc}{chapter}{#2}}{\chapter*{#2}}% \input{frontmatter/#3} \end{titlepage} \clearpage