Hi David,
But even what I asked for isn't what I would really like in a perfect
world, which is as follows.
The items are numbered sequentially, starting with number 1. At the
top of each page, I would like to have (in fairly large print) the
number(s) of the item(s) contained on that page, placed at the outer
edge of the page. Sometimes there might be 2 items on a page. Other
items might take up 1 or 2 pages, possibly more. So, for example, I
would like the following:
Page 1, containing items 1 and 2: header shows '1&2'
Pages 2-3, each containing a single item: headers show '3' and '4'
respectively
Pages 4-5, containing item 5 spread over the 2 pages: headers show '5'
and '(5)'
I don't want the actual page numbers shown at all.
I'm not sure that there is any way of doing this in Lilypond. Clearly
I need to specify the contents of the page header separately for each
item, but so far as I can see I can only have page headers which
repeat through the whole book. If I specify oddHeaderMarkup etc. in
the files for individual items, which are called by my top-level file,
I find that the last one is applied to the whole document.
Maybe Jean's great code in
https://lists.gnu.org/archive/html/lilypond-user/2022-12/msg00095.html
could be used here?
Lukas