fix(latex): add figure and table numbering prefixes to TOC

This commit is contained in:
nuluh
2025-05-13 02:02:41 +07:00
parent f97c58e114
commit ee004e55f4

View File

@@ -109,9 +109,13 @@
\setlength{\cftchapnumwidth}{3.5em} \setlength{\cftchapnumwidth}{3.5em}
\setlength{\cftsecnumwidth}{3.5em} \setlength{\cftsecnumwidth}{3.5em}
\setlength{\cftsubsecnumwidth}{2.5em} \setlength{\cftsubsecnumwidth}{2.5em}
\setlength{\cftfignumwidth}{5em}
\setlength{\cfttabnumwidth}{4em}
\renewcommand \cftchapdotsep{4.5} % https://tex.stackexchange.com/a/273764 \renewcommand \cftchapdotsep{4.5} % https://tex.stackexchange.com/a/273764
\renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}} \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftsecdotsep}}
\renewcommand{\cftchappagefont}{\normalfont} \renewcommand{\cftchappagefont}{\normalfont}
\renewcommand{\cftfigpresnum}{\figurename~}
\renewcommand{\cfttabpresnum}{\tablename~}
% Ensure TOC and References Respect Custom Numbering % Ensure TOC and References Respect Custom Numbering
\renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\thechapter}{\Roman{chapter}}