I am using a template provided by the school to write my thesis. On the main.tex I am using \documentclass[11pt]{thesis}. Now I am trying to add a list of symbols page, I am using this code
\documentclass{article}
\usepackage{nomencl}
\makenomenclature
\begin{document}
Here is an example:
\nomenclature{(c)}{Speed of light in a vacuum}
\nomenclature{(h)}{Planck constant}
\printnomenclature
\end{document}
Doing this does not display other pages.
Removing the \documentclass{article} throws an error Can only be used in preamble.
How can I display the symbol page?

nomenclpackage not mixing document classes which is something to be avoided in almost all cases. – Alan Munn Jul 07 '22 at 02:32