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}
Best Answer
You don't have numbered sections, do you? In this case the simplest arrangement is
No sectional unit below
\section
will be numbered, but sections and subsections will go anyway in the table of contents (as this depends on the value of thetocdepth
counter, default 2).