From 0b057a3829d6f78dc6cfe343c649dfaca0ac8c3f Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Sat, 18 Jul 2026 00:03:31 +0200 Subject: [PATCH] Fix indexing for roman-numbered pages --- thesis.tex | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/thesis.tex b/thesis.tex index 36fbd48..e0c0053 100644 --- a/thesis.tex +++ b/thesis.tex @@ -210,15 +210,43 @@ \clearpage \pagenumbering{roman} - \tableofcontents % Genera l'Indice - \renewcommand{\listfigurename}{Elenco delle Figure} - \listoffigures % Genera la Lista delle Figure - \renewcommand{\lstlistingname}{Codice} - \renewcommand{\lstlistlistingname}{Elenco dei Codici} + % indice + \tableofcontents + \addcontentsline{toc}{chapter}{\contentsname} - \lstlistoflistings % Genera la Lista dei Codici + % figure + \cleardoublepage + \phantomsection + \renewcommand{\listfigurename}{Figure} + \listoffigures + \addcontentsline{toc}{chapter}{\listfigurename} + + % grafico + \cleardoublepage + \phantomsection + \listofgraphs + \addcontentsline{toc}{chapter}{Grafici} + + % codice + \cleardoublepage + \phantomsection + \renewcommand{\lstlistingname}{Codice} + \renewcommand{\lstlistlistingname}{Codice} + \lstlistoflistings + \addcontentsline{toc}{chapter}{\lstlistlistingname} + + % acronimi + \cleardoublepage + \phantomsection + \chapter*{Acronimi} + \addcontentsline{toc}{chapter}{Acronimi} + \printacronyms[heading=none] \clearpage + \pagestyle{scrplain} + \pagenumbering{arabic} + \clearpage + \pagestyle{scrplain} \pagenumbering{arabic}