Text FormattingPart TOC with minitoc - Too Long to Fit

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
PSNYLaTexUser
Posts: 4
Joined: Fri Dec 31, 2010 4:32 am

Part TOC with minitoc - Too Long to Fit

Post by PSNYLaTexUser »

I am having a problem using minitoc for a part toc. It mostly works just fine, except for the fact that the table of contents is too long to fit on the page (it needs three pages) and so it puts as much as it can onto one page and then the rest is lost.

I tried to insert a page break within the part (tried \addtocontents{part}{\newpage} and tried \addcontentsline{part}{\newpage} and neither worked.

How can I tell the minitoc to continue the part toc onto the next pages?

Here is a minimal working example, which I failed to include when I first posted this question. Notice that the main TOC works just fine. It is the mini TOC for Part 2 that has the problem.

Code: Select all

\documentclass[11pt, twoside]{amsbook}

\usepackage{minitoc} 
\renewcommand{\ptctitle}{Part~\thepart~ Table of Contents}
\renewcommand{\ptcCfont}{\normalsize\normalfont}

\setcounter{secnumdepth}{-1}
\renewcommand\thepart{\arabic{part}} 
\setcounter{tocdepth}{0}
\setcounter{parttocdepth}{0}



\begin{document}

\doparttoc
\tableofcontents

\part{Part 1}
\parttoc
\chapter{Chapter 1.1}
\chapter{Chapter 1.2}

\part{Part 2}
\parttoc
\chapter{Chapter 2.1}
\chapter{Chapter 2.2}
\chapter{Chapter 2.3}
\chapter{Chapter 2.4}
\chapter{Chapter 2.5}
\chapter{Chapter 2.6}
\chapter{Chapter 2.7}
\chapter{Chapter 2.8}
\chapter{Chapter 2.9}
\chapter{Chapter 2.10}
\chapter{Chapter 2.11}
\chapter{Chapter 2.12}
\chapter{Chapter 2.13}
\chapter{Chapter 2.14}
\chapter{Chapter 2.15}
\chapter{Chapter 2.16}
\chapter{Chapter 2.17}
\chapter{Chapter 2.18}
\chapter{Chapter 2.19}
\chapter{Chapter 2.20}
\chapter{Chapter 2.21}
\chapter{Chapter 2.22}
\chapter{Chapter 2.23}
\chapter{Chapter 2.24}
\chapter{Chapter 2.25}
\chapter{Chapter 2.26}
\chapter{Chapter 2.27}
\chapter{Chapter 2.28}
\chapter{Chapter 2.29}
\chapter{Chapter 2.30}
\chapter{Chapter 2.31}
\chapter{Chapter 2.32}
\chapter{Chapter 2.33}
\chapter{Chapter 2.34}
\chapter{Chapter 2.35}
\chapter{Chapter 2.36}
\chapter{Chapter 2.37}
\chapter{Chapter 2.38}
\chapter{Chapter 2.39}

\end{document}


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

Post Reply