Theses, Books, Title pagesHow to remove appendix, bibliography, etc from part minitoc

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
aesalazarj
Posts: 1
Joined: Wed Nov 11, 2015 11:23 pm

How to remove appendix, bibliography, etc from part minitoc

Post by aesalazarj »

Hello,

I would like to know how to exclude the appendix, bibliography and index form the part table of contents?

Thanks in advance.

Augusto Salazar

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Stefan Kottwitz »

Hi Augusto,

welcome to the forum!

You could insert

Code: Select all

\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
when the appendix starts.

Stefan
LaTeX.org admin
User avatar
Ebisu
Posts: 3
Joined: Wed Oct 12, 2016 10:52 am

How to remove appendix, bibliography, etc from part minitoc

Post by Ebisu »

Stefan Kottwitz wrote:Hi Augusto,

welcome to the forum!

You could insert

Code: Select all

\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
when the appendix starts.

Stefan
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.

Thanks in advance!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to remove appendix, bibliography, etc from part minitoc

Post by Johannes_B »

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Ebisu
Posts: 3
Joined: Wed Oct 12, 2016 10:52 am

How to remove appendix, bibliography, etc from part minitoc

Post by Ebisu »

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.
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!
Attachments
Test (Problem ToC).zip
Test (Problem ToC)
(44.36 KiB) Downloaded 190 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to remove appendix, bibliography, etc from part minitoc

Post by Johannes_B »

Guys, you gotta do just a very little bit of reading. A teplate will not save you from learning LaTeX, but it adds a few blows and whistles. So you don't have to read everything.

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
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Ebisu
Posts: 3
Joined: Wed Oct 12, 2016 10:52 am

Re: How to remove appendix, bibliography, etc from part mini

Post by Ebisu »

Thanks... I don't know how I skipped that :?
Post Reply