Werner

Thanks for referring to the regression test. This confirms my assumption, that the PDF bookmarks are only rendered if a \table-of-contents is present since - as its name states - \tocItem is semantically different from a PDF bookmark ;-) My further investigation shows that Lilypond does not offer a command / macro comparable to the Latex /pdfbookmark command.

So I'm thinking about

- calling \table-of-contents but make it invisible (or worse: print it as a last page and eventually cut this page off); or

- overriding \table-of-contents so that it doesn't output anything

While having no clue about Scheme and not being able to lead ChatGPT to a working solution, I’m about to give up — unless someone here knows a simple fix off the top of their head.

Best regards

Stephan

Am 05.11.2025 um 11:39 schrieb Werner LEMBERG:
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.
You can find a complete example as a regression test:

   
https://gitlab.com/lilypond/lilypond/-/blob/master/input/regression/toc-structured.ly

Using `evince` (on GNU/Linux), I can view the PDF bookmarks just fine.


     Werner


Reply via email to