Thomas Morley <[email protected]> writes: > Am 27. April 2012 12:36 schrieb Jan-Peter Voigt <[email protected]>: >> Hello list, >> >> for some Books, I set the first page number to -1, to start page numbers >> with the real music. >> Now the PDF-internal links to the corresponding pages refer to the wrong >> page: >> If a tocItem displays page 8 it will open PDF-page 8 but that has the >> printed page-number 6, if its started with -1. >> >> Is this a bug, or can one tweak it? >> >> Cheers, Jan-Peter > > Hi, > > not sure it's a bug. It's the way \with-link works. > > But you may want to redefine it. See code below. > I didn't manage to get acces to the `first-page-number' of \paper from > inside define-markup-command, so I used a work-around. Do you know how > to do?
Shouldn't (ly:output-def-lookup layout 'first-page-number) do the trick? -- David Kastrup _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
