From ee004e55f4e7ed4d7d86ac0e9142c9eca368ddee Mon Sep 17 00:00:00 2001 From: nuluh Date: Tue, 13 May 2025 02:02:41 +0700 Subject: [PATCH] fix(latex): add figure and table numbering prefixes to TOC --- latex/thesis.cls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/latex/thesis.cls b/latex/thesis.cls index cd34b29..227bc91 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -109,9 +109,13 @@ \setlength{\cftchapnumwidth}{3.5em} \setlength{\cftsecnumwidth}{3.5em} \setlength{\cftsubsecnumwidth}{2.5em} +\setlength{\cftfignumwidth}{5em} +\setlength{\cfttabnumwidth}{4em} \renewcommand \cftchapdotsep{4.5} % https://tex.stackexchange.com/a/273764 \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}} \renewcommand{\cftchappagefont}{\normalfont} +\renewcommand{\cftfigpresnum}{\figurename~} +\renewcommand{\cfttabpresnum}{\tablename~} % Ensure TOC and References Respect Custom Numbering \renewcommand{\thechapter}{\Roman{chapter}}