Table of contents for each part

12 views
Skip to first unread message

Federico Galetto

unread,
Aug 16, 2026, 3:26:55 PM (3 days ago) Aug 16
to PreTeXt support
Hello!

I am preparing notes for a course as a PreTeXt book. It makes sense to divide the content into three parts, each with its own chapters.

Is it possible to have a table of contents for each individual part rather than a comprehensive table of contents at the beginning?

Thanks,
Fred

Rob Beezer

unread,
Aug 16, 2026, 4:32:07 PM (3 days ago) Aug 16
to pretext...@googlegroups.com
Dear Fred,

On 8/16/26 12:26, Federico Galetto wrote:
> Is it possible to have a table of contents for each individual part rather than
> a comprehensive table of contents at the beginning?

For LaTeX output, this would require adding a new package, "etoc" being the
leading suggestion. Adding a new package is always a fraught exercise, and in
this case is directly in conflict with "titletoc" that we are already using
along with "titlesec".

It sounds like "minitoc" is not very well-behaved, enough so I wouldn't even
want to try using it.

My assistant suggests the Chicago Manual of Style says nothing about this option.

Rob

Federico Galetto

unread,
Aug 16, 2026, 4:58:32 PM (3 days ago) Aug 16
to PreTeXt support
Thank you, Rob! This is not a big deal, just something I was curious about.

For my own understanding: when you say adding a new package, does that mean having PreTeXt output a .tex file, then editing that? Or can this be achieved within PreTeXt itself?

Thank you,
Fred

Rob Beezer

unread,
Aug 16, 2026, 5:12:46 PM (3 days ago) Aug 16
to pretext...@googlegroups.com
On 8/16/26 13:58, Federico Galetto wrote:
> For my own understanding: when you say adding a new package, does that mean
> having PreTeXt output a .tex file, then editing that? Or can this be achieved
> within PreTeXt itself?

"adding a new package" means that to support some feature (here, a publisher
switch to turn on per-part ToC) would mean that we would have to add a new
\usepackage{} to the LaTeX preamble that we create as part of the intermediate
*.tex file used to make a PDF.

We try to stick to established robust packages with a history of regular
maintenance. And keep the total number of extra packages to a minimum. So the
*.tex file will compile in all the various scenarios we support. If you write
legal PreTeXt your LaTeX should always compile to a PDF.

Does that explain it?

Rob

Federico Galetto

unread,
Aug 16, 2026, 5:21:44 PM (3 days ago) Aug 16
to PreTeXt support
Yes, thank you for the clarification!

Cheers,
Fred

Reply all
Reply to author
Forward
0 new messages