I just started using Latex and I'm writing my end-of-study thesis. I have been writing chapters and sections and updating my table of content to structurize my work and make it easier. I have also Divided everything into separate tex files and just use \input whenever I need to input that file.
I have met a few problems but the most annoying one that I tried with for a while and It didn't work is that The chapters/sections numbering is messed up. This is an extract of my code:
\begin{document}
\frontmatter
\maketitle
\newpage
\include{Remerciement/dedicace}
\newpage
\include{Remerciement/remerciement}
\newpage
\tableofcontents
\chapter{List of figures}
\chapter{Glossary}
\input{Glossary}
\chapter{General Introduction}
\blindtext[4]
\pagenumbering{arabic}
\chapter{Project Context}
\input{I.Project context/Project Context}
\chapter{Theoretical Concepts and State-of-the-art}
\input{II.Theoretical Concept and state of the art/stateofArt}
\chapter{proposed solution}
\input{III.Proposed Solution/ProposedSolution}
\chapter{Results and Discussion}
\input{IV.Results and discussion/Results}
\chapter{Bibliography}
\input{Bibliography}
\pagestyle{fancy}
\fancyhf{}
\end{document}
This is an example of the first chapter tex file:
{\fontfamily{qtm}\selectfont
\addcontentsline{toc}{section}{Introduction}
\section*{Introduction}
\blindtext[1]
\vspace{1cm}
\section{Host Company Presentation}
\subsection{Lindt Presentation}
\input{I.Project context/Host Company presentation/Lindt/Lindt presentation}\newpage
\subsection{SOPP Presentation}
\input{I.Project context/Host Company presentation/SOPP/SOPP Presentation}\newpage
\subsection{STIR Presentation}
\input{I.Project context/Host Company presentation/STIR/STIR presentation}\newpage
\section{Project Overview}
\subsection{Project Frame}
\input{I.Project context/Project Overview/Project Frame/Project Frame}
\subsection{Problem and issues faced}
\subsection{Existing Solution and limitations}
\subsection{Proposed solution}
\section{Project Schedule}
}
This is how the Table of contents ends up looking :
Any one knows what I did wrong or how I can fix it? I want chapters to have Roman numbers on them and section numbering to reset every chapter.