fix(documentclass): enhance dot separation in ToC and add prefixes for figures and tables

This commit is contained in:
nuluh
2025-06-03 21:34:05 +07:00
parent 49d6395e6f
commit 0373743ca7

View File

@@ -161,11 +161,15 @@
\setlength{\cftsubsecnumwidth}{2.5em} \setlength{\cftsubsecnumwidth}{2.5em}
\setlength{\cftfignumwidth}{5em} \setlength{\cftfignumwidth}{5em}
\setlength{\cfttabnumwidth}{4em} \setlength{\cfttabnumwidth}{4em}
\renewcommand \cftchapdotsep{1} % Denser dots (closer together) https://tex.stackexchange.com/a/273764 \renewcommand \cftchapdotsep{1} % https://tex.stackexchange.com/a/273764
\renewcommand \cftsecdotsep{1} % Apply to sections too \renewcommand \cftsecdotsep{1} % https://tex.stackexchange.com/a/273764
\renewcommand \cftsubsecdotsep{1} % Apply to subsections too \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{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}}
\renewcommand{\cftchappagefont}{\normalfont} \renewcommand{\cftchappagefont}{\normalfont}
% Add Prefix in the Lof and LoT entries
\renewcommand{\cftfigpresnum}{\figurename~} \renewcommand{\cftfigpresnum}{\figurename~}
\renewcommand{\cfttabpresnum}{\tablename~} \renewcommand{\cfttabpresnum}{\tablename~}