Theses, Books, Title pagesSolution to too many sections in a single chapter with mitoc

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Solution to too many sections in a single chapter with mitoc

Post by templateuser »

I'm currently compiling a book, and some of the chapters have far too many sections to fit into the mini-toc at the beginning of each chapter. I have four different chapters that have over 20 sections, most of which run off the background and some of which even run behind the title bar. Is there a formatting solution to this, or will I have to live with overlap? Unfortunately removing sections is not a viable option.

axxroytovu

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Solution to too many sections in a single chapter with mitoc

Post by templateuser »

Kind of similar problem here, but I had far too many SUBsections, and manageable sections numbers. So I have the mini-toc now showing only sections (without subsection items showing):

Go into the structure.tex and in the % Commenting the 3 lines below removes the small contents box in the chapter heading, change this

Code: Select all

\node[anchor=north west] at (1.1cm,.35cm) 
{\parbox[t][8cm][t]{6.5cm}{\huge\bfseries\flushleft 
\printcontents{l}{1}{\setcounter{tocdepth}{2}}}};
for this:

Code: Select all

\node[anchor=north west] at (1.1cm,.35cm)
  {\parbox[t][8cm][t]{6.5cm}{\huge\bfseries\flushleft \printcontents{l}{1}{\setcounter{tocdepth}{1}}}};
petalo
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Re: Solution to too many sections in a single chapter with m

Post by Vel »

Hey,

As petalo said, the best thing you can do is stop subsections going into the minitoc. Another solution might be to decrease the font size as much as you are happy with to squeeze them in.

Another more adventurous solution may be to try splitting that box into two columns with the multicol package. I have no idea if this will work but it would be a good way of doubling the amount of content in the box!

I'd appreciate if you post your eventual solution here so others with a similar problem can use it in the future

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply