fix(documentclass): update chapter title prefix and toc chapter presnum to be babel/polyglossia-compatible

This commit is contained in:
Rifqi D. Panuluh
2025-10-14 14:07:02 +00:00
parent 9e22db4665
commit b277d3cda6

View File

@@ -171,7 +171,7 @@
\titleformat{\chapter}[display] \titleformat{\chapter}[display]
{\normalsize\bfseries\centering} {\normalsize\bfseries\centering}
{BAB~\Roman{chapter}} % << display format {\MakeUppercase\chaptername~\Roman{chapter}} % << display format
{1ex} {1ex}
{\MakeUppercase} {\MakeUppercase}
\titleformat{\section} \titleformat{\section}
@@ -184,7 +184,7 @@
\setcounter{secnumdepth}{3} \setcounter{secnumdepth}{3}
% Ensure chapter reference in TOC matches % Ensure chapter reference in TOC matches
\renewcommand{\cftchappresnum}{BAB~} \renewcommand{\cftchappresnum}{\MakeUppercase\chaptername~}
\renewcommand{\cftchapaftersnum}{\quad} \renewcommand{\cftchapaftersnum}{\quad}