From 0373743ca729abf1dccf54187d5660594a19962d Mon Sep 17 00:00:00 2001 From: nuluh Date: Tue, 3 Jun 2025 21:34:05 +0700 Subject: [PATCH] fix(documentclass): enhance dot separation in ToC and add prefixes for figures and tables --- latex/thesis.cls | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/latex/thesis.cls b/latex/thesis.cls index 36b5057..71e9ac1 100644 --- a/latex/thesis.cls +++ b/latex/thesis.cls @@ -161,11 +161,15 @@ \setlength{\cftsubsecnumwidth}{2.5em} \setlength{\cftfignumwidth}{5em} \setlength{\cfttabnumwidth}{4em} -\renewcommand \cftchapdotsep{1} % Denser dots (closer together) https://tex.stackexchange.com/a/273764 -\renewcommand \cftsecdotsep{1} % Apply to sections too -\renewcommand \cftsubsecdotsep{1} % Apply to subsections too +\renewcommand \cftchapdotsep{1} % https://tex.stackexchange.com/a/273764 +\renewcommand \cftsecdotsep{1} % https://tex.stackexchange.com/a/273764 +\renewcommand \cftsubsecdotsep{1} % https://tex.stackexchange.com/a/273764 +\renewcommand \cftfigdotsep{1.5} % https://tex.stackexchange.com/a/273764 +\renewcommand \cfttabdotsep{1.5} % https://tex.stackexchange.com/a/273764 \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}} \renewcommand{\cftchappagefont}{\normalfont} + +% Add Prefix in the Lof and LoT entries \renewcommand{\cftfigpresnum}{\figurename~} \renewcommand{\cfttabpresnum}{\tablename~}