Greetings David, I may be wading into this discussion a bit late, but the following links should address exactly what you initialy asked. They are somewhat dated, but the solution still works for me using 2.19.82. Many thanks to David Nalesnik for his work on this.
http://lists.gnu.org/archive/html/lilypond-user/2012-08/msg00665.html http://lists.gnu.org/archive/html/lilypond-user/2014-01/msg00878.html Hwaen Ch'uqi On 1/12/19, Thomas Morley <thomasmorle...@gmail.com> wrote: > Am Sa., 12. Jan. 2019 um 20:44 Uhr schrieb Kieren MacMillan > <kieren_macmil...@sympatico.ca>: >> >> Hi Harm, >> >> > You could go for: >> > >> > #(define-markup-command (bookpart-page-number layout props) () >> > (let ((first-page-number (ly:output-def-lookup layout >> > 'first-page-number)) >> > (page-number (chain-assoc-get 'page:page-number props 0))) >> > (interpret-markup layout props >> > (number-format >> > (ly:output-def-lookup layout 'page-number-type) >> > (1+ (- page-number first-page-number)))))) >> >> Thanks! I’ll study your solution as part of my Scheme education. =) > > Not much scheme here... > You need to know LilyPond's 'number-format'-procedure exists at all. > And how to get 'page-number-type, but that's a minor problem (some as > for 'first-page-number). > >> >> > Though, what about the table-of-content? >> > Right now I've not a good idea what should be printed if several >> > bookparts have equal page-numbers. >> >> That’s almost more of an editorial choice than a technical one, no? If for >> some reason I want the score for my Opera In Three Acts to have per-act >> page numbers, then I will end up with a TOC that looks something like >> >> Act One >> Aria 1 I-1 >> Aria 2 I-22 >> >> Act Two >> Aria 3 II-1 >> Aria 4 II-9 >> >> etc. >> >> The Dover reprints of Bach works often include per-sub-collection >> numbering alongside the main page numbering, e.g. >> >> 1 [1], 2 [2], … 25 [25], 26 [1], 27 [2], … 124 [99], 125 [1], 126 [2], >> … >> >> In musical theatre scores, it’s also useful to have double numbering >> (e.g., >> page-number-within-entire-score [page-number-within-this-song] > > Well, I'll think about the problem... > > Thanks, > Harm > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user