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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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 203 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
