PDF bookmarks without table of contents: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
There is currently no built-in way to obtain an outline in the PDF metadata without also printing a table of contents (see {{Issue|6300}}). This snippet provides a workaround. | |||
Note that you have to compile the snippet by yourself to get a PDF so that you can see the bookmarks. | |||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
Latest revision as of 08:32, 6 January 2026
There is currently no built-in way to obtain an outline in the PDF metadata without also printing a table of contents (see Issue #6300). This snippet provides a workaround.
Note that you have to compile the snippet by yourself to get a PDF so that you can see the bookmarks.
\version "2.24"
#(define-markup-list-command (invisible-table-of-contents layout props) ()
(interpret-markup-list layout props (make-table-of-contents-markup-list))
(list empty-stencil))
\markuplist \invisible-table-of-contents
\tocItem \markup "Piece 1"
{ c' }
\tocItem \markup "Piece 2"
{ d' }