Theses, Books, Title pages ⇒ How to remove appendix, bibliography, etc from part minitoc
-
- Posts: 1
- Joined: Wed Nov 11, 2015 11:23 pm
How to remove appendix, bibliography, etc from part minitoc
I would like to know how to exclude the appendix, bibliography and index form the part table of contents?
Thanks in advance.
Augusto Salazar
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
How to remove appendix, bibliography, etc from part minitoc
welcome to the forum!
You could insert
Code: Select all
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
Stefan
How to remove appendix, bibliography, etc from part minitoc
Hi! I'm trying to use this code to hide "Table of contents" in the same Table of contents. However, while it does hide it, it also hides from the Table of contents the rest of the chapters, etc., that goes after it.Stefan Kottwitz wrote:Hi Augusto,
welcome to the forum!
You could insertwhen the appendix starts.Code: Select all
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
Stefan
Thanks in advance!
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
How to remove appendix, bibliography, etc from part minitoc
How to remove appendix, bibliography, etc from part minitoc
Hi Johannes, many thanks for your help. This is the first time I do this, I attach a MWE, I hope to have done it right!Johannes_B wrote:If your table of contents has an own entry in the table of contents, something is dodgy. It is not standard and the reason is in your code. Please prepare a minimal working example for us to reproduce your special problem.
- Attachments
-
- Test (Problem ToC).zip
- Test (Problem ToC)
- (44.36 KiB) Downloaded 190 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
How to remove appendix, bibliography, etc from part minitoc
What do you think the following line in your code is doing?
Code: Select all
toctotoc, % Uncomment to add the main table of contents to the table of contents
Re: How to remove appendix, bibliography, etc from part mini
