Stream: IG creation
Topic: Header numbering overriding
John Moehrke (Feb 15 2021 at 21:49):
Is there a way to define the header number that a page would start with? Or if not, a way to turn off header numbering so that I can put the number I want into the header text?
Lloyd McKenzie (Feb 15 2021 at 23:07):
Not using the standard template.
John Moehrke (Feb 16 2021 at 13:13):
@Jose Costa Teixeira is there any hope of getting something like this for IHE in the coming months? I am okay with YES or NO. I just want to know what I can plan on.
Jose Costa Teixeira (Feb 16 2021 at 13:26):
Number overriding - hardly. Perhaps it is possible but we'd have to decipher the code
Removal of all numbering - I think that is possible, but if we do it, it would apply to all IGs published on the IHE template - which I don't think we want
Jose Costa Teixeira (Feb 16 2021 at 13:28):
let me see if I can tweak to the CSS to see of overriding would be possible
John Moehrke (Feb 16 2021 at 13:36):
we could have two IHE templates.
Jose Costa Teixeira (Feb 16 2021 at 13:40):
Hopefully not! :)
Jose Costa Teixeira (Feb 16 2021 at 13:41):
so, on the page, we can change the top level number
Jose Costa Teixeira (Feb 16 2021 at 13:41):
this was supposed to be 3. but I could override it to 7:
Jose Costa Teixeira (Feb 16 2021 at 13:41):
Jose Costa Teixeira (Feb 16 2021 at 13:42):
(I'm just waiting for the build to confirm this )
Jose Costa Teixeira (Feb 16 2021 at 13:42):
the problem is that it does not show in the TOC
Jose Costa Teixeira (Feb 16 2021 at 13:42):
the TOC still shows this as 3.
Jose Costa Teixeira (Feb 16 2021 at 13:52):
yes, it seems possible (haven't tried if the CI build bloxks inline CSS). But this is what we could do without changing the template
Jose Costa Teixeira (Feb 16 2021 at 13:53):
John Moehrke (Feb 16 2021 at 13:56):
note that for various parts of the IG, the numbering would be radically different. this because the Overview stuff goes into Volume 1, and the Transactions go into Volume 2. I don't mind not having the volume indicator, but the numbers are different.
John Moehrke (Feb 16 2021 at 13:56):
I am not sure I understand your comment on 3 vs 7
Jose Costa Teixeira (Feb 16 2021 at 14:07):
Look at the screenshots I sent - the number was supposed to be 3, I just manage to override it to 7 (or 71 in the second screenshot)
Lloyd McKenzie (Feb 16 2021 at 15:01):
You could overwrite the JSON data file before Jekyll runs or you could override the template that leverages the Jekyll content. You'd also have to gen your own ToC.
Lloyd McKenzie (Feb 16 2021 at 15:01):
Alternative is we'd have to push something into the publisher to use when it generates the section numbers.
Jose Costa Teixeira (Feb 16 2021 at 16:05):
the change i show above was done jut by changing the markdown.
Jose Costa Teixeira (Feb 16 2021 at 16:06):
without changing the template, the only thing we can do is to override the number in a specific page (it is not persisted, and it is in the TOC)
John Moehrke (Feb 16 2021 at 18:31):
so, how might I do this in the markdown.
John Moehrke (Feb 16 2021 at 18:32):
I might not be too worried about the auto generated TOC. We have a compact min-table of contents in the index.html.
Last updated: Apr 12 2022 at 19:14 UTC