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

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

How to remove appendix, bibliography, etc from part minitoc

Postby aesalazarj » Wed Nov 11, 2015 11:28 pm

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 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9794
Joined: Mon Mar 10, 2008 9:44 pm

How to remove appendix, bibliography, etc from part minitoc

Postby Stefan Kottwitz » Thu Nov 12, 2015 9:37 am

Hi Augusto,

welcome to the forum!

You could insert
\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

Postby Ebisu » Wed Oct 12, 2016 10:55 am

Stefan Kottwitz wrote:Hi Augusto,

welcome to the forum!

You could insert
\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: 4183
Joined: Thu Nov 01, 2012 4:08 pm

How to remove appendix, bibliography, etc from part minitoc

Postby Johannes_B » Wed Oct 12, 2016 6:00 pm

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

Postby Ebisu » Fri Oct 14, 2016 8:09 pm

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 100 times

User avatar
Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

How to remove appendix, bibliography, etc from part minitoc

Postby Johannes_B » Sat Oct 15, 2016 9:33 am

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?
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

Postby Ebisu » Sat Oct 15, 2016 9:53 am

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


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests