Omikhleia / resilient.sile

Advanced book classes and packages for the SILE typesetting system
MIT License
21 stars 4 forks source link

Incorrect running header initialization in absence of odd header #43

Closed Omikhleia closed 1 year ago

Omikhleia commented 1 year ago

Resilient.book 2.0: If an essay never runs \odd-running-header -- I failed to notice it earlier because I usually have the book name here -- then on the first even page after a chapter title, we won't get the chapter title. To investigate further, but this might be due to the header being fully bypassed (and thus not clearing the status set by \noheaderthispage)?

Omikhleia commented 1 year ago

Hmm it's worse than that, the logic is quite broken. I knew very little when I initially wrote this package, deriving it from the core book class ;)

We need to use info nodes to be sure which title ended up on a page...

Omikhleia commented 1 year ago

And this is tricky, because info nodes add a box, which has to be inserted at the right place not to cause side-effects (blank lines, parindent issue) = just after the chapter/section text ideally... ... But without its styling, so we need a slightly different approach in our generic styling system here... ... and its a mess with text casing / inputfilters on the title content.