As part of my thesis, I am trying to create a final table of contents listing all the titles that appear in my thesis (the basic format suits me fine), but I also want to display a summary at the beginning, which is a simplified table of contents where only the \part, \chapter and \section found in the \mainmatter are displayed, nothing else.
I tried shorttoc, titletoc, minitoc, etc., with varying degrees of success, and never managed to remove what is in the \fontmatter or \backmatter (at least, without removing it from the toc at the same time).
If I understand correctly, minitoc only allows you to display toc at the beginning of each chapter, not at the start, and shorttoc doesn't really provide any options...
\documentclass[12pt, oneside]{book}
\begin{document}
\frontmatter
\chapter{Introduction}
%Here, the partial toc with all parts, chapters and sections that are in the mainmatter and only these%
\mainmatter
\part{Part 1}
\chapter{Chapter 1}
\section{Section 1}
\section{Section 2}
\part{Part 2}
\chapter{Chapter 2}
\section{Section 1}
\section{Section 2}
\backmatter
\chapter{Conclusion}
\tableofcontents %Which is perfect%
\end{document}
Please let me know which package would be able to do this and how!


tocB) and add\addcontentslinecommands to every\part,\chapteretc. Search\@starttoc.etocdefinitely. the documentation is also extremely good (if a bit overwhelming.)