Hi folks
Based on LilyPond Changes: LilyPond — Changes
<cid:[email protected]> (2.22)
* PDF bookmarks are now supported and allow for|\tocItem|entries to
appear in the ‘table of contents’ panel of PDF viewers that support it.
I would expect the following code to generate PDF bookmarks
independently of a \table-of-contents TOC, so that I can easily jump
from section to section when reading the sheet in my score reader
(MobileSheets i.e.). Unfortunately neither Adobe Reader nor PDF24 Reader
show bookmarks.
\version "2.25.29"
%\markuplist \table-of-contents
\score {
\relative c' {
\sectionLabel "Intro"
\tocItem \markup "Intro"
\repeat unfold 4 {
c d e d
}
\break
\sectionLabel "Verse"
\tocItem \markup "Verse 1"
\repeat unfold 4 {
e f g f
}
\pageBreak
\sectionLabel "Chorus"
\tocItem \markup "Chorus"
\repeat unfold 4 {
g a c a
}
}
}
Is there anything that I've missed so far?
Outlook: I already have a music function called \namedSection that adds
a \tocItem alongside with a \sectionLabel, so that the PDF bookmarks
should represent the structure of the score - but with no PDF bookmarks
added so far :-(
Workaround: Yes, I could simply add a \table-of-contents at the end of
the score for technical reasons. But I'd like to avoid this since I
don't need it from my user perspective.
TIA
Stephan