-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnumbered chapters do not appear in TOC (regression) #1707
Comments
FWIW, this is a regression, it worked with SILE 0.12:
... has the unnumbered chapter in the TOC. Where (FWIW again, the resilient.book does have it too with SILE 0.14, yay... though it doesn't use the fluent thing either... yet?) |
The regression occurred between 0.13.3 (TOC correct) and 0.14.0 (TOC showing this issue) |
First of all (while I look into the real issue here) the |
This has something to do with the default |
I'm at a loss to explain exactly why, but chapters marked with
numbering=false
do not appear in the table of contents. (Sections and subsections appear as expected.) This seems to have something to do with thebook:chapter:post
hook inserting\par
. I found that if I redefined that command to do nothing, the unnumbered chapter did appear in the TOC. Mystifying!I also found that the
...:post
hooks for sections and subsections inserts a space, which I think shouldn't happen if the headers are unnumbered as well. Similarly, redefining the hooks to null commands seems to fix the problem.The text was updated successfully, but these errors were encountered: