I have many unnumbered sections in my report (more than 100), all created with:
\section*{section name}
I want to find a way to easily add them all to the TOC (specifically to a minitoc). Since I use the * to remove the numbering, they won't appear in TOC. I found out in minitoc documentation that I should use:
\addcontentsline{toc}{section}{repeat here section title}
However, I don't want to have a duplicated title in every section, or even to change all the involved files to add those already written sections to the TOC. How to add those sections' names to the minitoc without using the addcontentsline command? Is it possible?
{}and use\makeatletter\c@secnumdepth=0\makeatotherat the beginning.Also, to apply either to chapters, use -1. – golvok Aug 01 '19 at 17:00\phantomsectionadditions and hope that nothing breaks. – Emit Taste May 14 '20 at 15:05