The granularity of the table of contents is generally controlled by the counter
tocdepth that can be set globally for the whole document.
Is it possible to change the granularity of the table of contents in the middle of a document, and if so, how?
I have a particular document where I want to have a
tocdepth of two for the first part and a
tocdepth of one in the second part (nothing more complicate).