\title{Sections and Chapters}
\tableofcontents
\section{Introduction}
This is the first section (numbered).
\addcontentsline{toc}{section}{Unnumbered Section}
\section*{Unnumbered Section}
An unnumbered section
\section{Second section}
The second numbered section.
We already have the ability to generate a table of contents in the background with
[[toc]]
We can add the ability to support the
\tableofcontents
commandhttps://www.overleaf.com/learn/latex/Table_of_contents