Problem with tables in and exercises section of a book

9 views
Skip to first unread message

Karen Gunderson

unread,
Aug 20, 2025, 4:28:36 PMAug 20
to PreTeXt support
Hi all,

I'm working on a PreTeXt-based textbook project for a Discrete Mathematics course and I think I'm running into problems with having tables in exercises sections.  The first chapter is on logic and I had written the truth tables using a tabular environment (inside a table environment).

I can produce both the html and pdf outputs with tables and tabular environments within a section.  However, if I place them in an <exercises>, the html output seems to be fine, but the pdf output is missing the table of contents and stops after the first section or the first few exercises (before a table appears).

I've created a minimal example that replicates the problem I'm having:

I looked through the Pretext book and the group's conversations and couldn't see a solution.

Thanks for your help!

Best wishes,
Karen Gunderson




Alex Jordan

unread,
Aug 20, 2025, 4:53:05 PMAug 20
to pretext...@googlegroups.com
Your table has 4 col elements, but then rows have 5 cells. This is causing a latex compilation error, so then you see the PDF just short of where the error occurs. And the incomplete build process means there's no chance to build the TOC.

Karen Gunderson

unread,
Aug 20, 2025, 5:02:29 PMAug 20
to PreTeXt support
Oh, yes you are right -- that is a problem.  Thanks!  I'll go check if that fixes the rest of my file!

Thanks again.
- Karen

Reply all
Reply to author
Forward
0 new messages