[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PDF bookmark questions
From: |
Nate Whetsell |
Subject: |
PDF bookmark questions |
Date: |
Tue, 1 Feb 2022 16:11:01 -0500 |
I’m trying to add PDF bookmarks (to display in PDF readers) to a collection of
studies. I’m having three issues:
1. If several studies appear on the same page, the bookmarks appear in reverse
order.
2. The bookmarks seem to navigate to the *page* on which a study appears, not
the study itself.
3. It doesn’t seem to be possible to add PDF bookmarks without also using
`\markuplist \table-of-contents` to add a table of content.
Below is an example illustrating the issues I’m having. Is there a way to
create PDF bookmarks without using `\markuplist \table-of-contents`, have them
appear in the expected order, and have them navigate to the expected position?
Thanks,
Nate
```
\version "2.22.0"
\book {
\markuplist \table-of-contents
#(do ((study-number 1 (1+ study-number)))
((> study-number 15))
(let ((header (make-module)))
(module-define! header 'piece (number->string study-number))
(let* (
(score (scorify-music #{
\new Staff <<
\tocItem \markup { #(number->string study-number) }
\new Voice { c' }
>>
#})))
(begin
(ly:score-set-header! score header)
(add-score score)))))
}
```
- PDF bookmark questions,
Nate Whetsell <=