Is it possible just to generate a table of contents based on sections in asterisk mode, i.e., \section*
? I basically just want the table of contents without section numbers. Like a list of headings and their associated pages.
The following doesn't generate a ToC:
\documentclass[12pt,a4paper]{article}
\begin{document}
\tableofcontents
\subsection*{Section 1}
\subsection*{Section 2}
\end{document}