I'm using a template my college provided to write my thesis in Latex, and i'm having a minor issue with autoref adding unwanted chapters to the TOC (index), the relevant bit are as such I believe
The code can be seen here:
chapter not to be included in TOC
I tried following this link from stackoverflow, and this post, but I can't seem to figure out the problem, specially because it only started appearing after I used the package hyperref to include the labels in chapters. I know that by doing \chapter*{}, however that does not seem to work since I included hyperref
The index appears like this:
But I don't want the unnumbered entries to appear (I mean Resumo, abstract, Indice, Lista de Tabelas and Lista de Figuras)


\documentclass{...}\usepackage{hyperref}\begin{document}\tableofcontents\chapter{DummyChapter}\end{document}and any packages you are using that specifically affect the chapter formatting. The template itself (either a package or class) can be linked if needed. – Alan Munn Aug 13 '21 at 23:25\myPrefaceChaptercommand uses that and the various\myTableofContentscommands also use a similar command. – Alan Munn Aug 13 '21 at 23:34