-
Notifications
You must be signed in to change notification settings - Fork 314
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
A system for book sections enabling section labelling and distinct page numbering #3258
base: master
Are you sure you want to change the base?
Conversation
This reverts commit bc8892f.
…ewery into Section_Labelling_Test
The deployment doesn't seem to work at this point. It doesn't load the stylesheet and some other error. Crashes if I type in the editor as well. I haven't taken a look at the code yet so don't have much more to say, just a heads up. |
I haven't updated this one in a bit, I'm not surprised it has some issues. I'm going to move it back to draft until I can catch it back up. |
This is one take on how to handle the notion of a brew having multiple, distinctly numbered sections in a way that both the CSS and snippets can track the page number resetting.
This system works by adding a single word parameter to the \page token. This value is added to the class list. This allows both a predefined list and the users to create their own.
These classes should hold no CSS properties and exist to act as triggers to reset the page counter ( phb-page-numbers - which should probably be renamed ) and reset the Section Label and the numbering type for the page counter (Roman numerals, decimal, etc - based on the LI numbering types)
This system uses .(sectionname):nth-of-type(1) for counter resets and .(sectionname) to override two global CSS variables where (sectionname) current defaults to one of index, appendix, chapter, frontmatter, and index.
Current design weaknesses that aren't addressed
Strengths:
Solves:
Issue #2826