
How to check if there is (not) a level 1 heading in a page ?
Hello,
I'm trying to setup my headers for a novel I am typesetting :
- On even (left) pages, there would be the author name. It is done.
- On odd (right) pages where there is no level 1 heading (those are set to always be in odd pages), there would be the book title and the chapter number. This is where I am struggling.
I was thinking of using hydra, but I cannot seem to be able to display custom, predefinite text along the chapter number.
I wanted to go with a if calc.odd(here().page().and([check if there is no level 1 heading in the page]) but I feel like I can go with only the test to check the presence of a level 1 heading since those are always on an odd page.
Sooo... Do you know how to do such a check ?
Thanks in advance !