-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Get un-numbered chapters back in the ToC #1751
Conversation
@Omikhleia This works but I have no idea why. The same applies to sections too: if the hook functions don't output some sort of node the caller functions don't end up writing an info node. |
The reason why some "special" boxes (such as the info node) disappear when immediately followed by a line break seems very similar to #1495 - There's something dubious at play... But in this very case, why are the pre/post hooks called when the header is unnumbered? (E.g. in a chapter, I was assuming the |
Because disabling numbering has to do with counters and the hook has to do with page layout. It's quite likely that people have already worked around the spacing they want to use for numbered vs. unnumbered chapters and there isn't a good reason to fix the logic yet. A good reason is coming up when we add |
Well, honestly, I can't really judge here. After all, I took quite different directions very soon in my resilient.book (and for more than 1 year now, I have working parts, captioned environments, custom ToC, etc. all with customization and styling possible nearly everywhere at several levels -- and I hope to soon focus appendices and indexes, having no idea what "volumes" are, heh) -- So the directions might take the standard default book class (and, IMHO, really, its all too complex hooks) are a bit beyond my reach. It's just bad to have regressions, so these need at least to be fixed... |
I agree the book class is terrible. I've been using cabook that has all this stuff overhauled for years and years now. This PR is to fix the regression, not fix the book class. I want to see that happen to so new users have a better starting point, but that will be a breaking release. |
So we are both using our own book class for real projects :) It tells something. At some point, we may need to re-assess what the default book class in SILE ought to be, but that might be premature for now. |
Aside note: If I had to use LaTeX nowadays for a novel, I wouldn't even consider using its default book class. There are several better alternatives, such as koma. So people might find interesting to start with the default book class (as long as it remains simple enough to be instructive), but then turn to better alternatives too (whether resilient, cabook... or their own take at it, when they feel ready). |
That's a good point, the default book class doesn't have to be the most tricked out one. I was (and still am!) a On the other hand the default class should be cover all the basics well, be robust, look pretty good, and get ease people into customization. I don't think it does any of those really. |
Reverts a part of sile-typesetter#1751 now that we fixed the root cause sile-typesetter#479
Reverts a part of sile-typesetter#1751 now that we fixed the root cause sile-typesetter#479
Fixes #1707