I’m trying to compile my work as an e-book with a clickable TOC. All the pages that I have marked to have a page break before them end up in the TOC, the others don’t.
Only documents that have a page break before can appear in the ToC. Internally, this is a sign to split these files into separate HTML files, and only separate HTML files can be part of the ToC.