fix(latex): update frontmatter section command to correctly add TOC entries as chapters

This commit is contained in:
nuluh
2025-05-11 11:38:53 +07:00
parent 5e08d4f8c6
commit 92a7143d90

View File

@@ -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