]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/toc-init.ly
Lilypond-book: Rewrite docs for MusicXML snippets
[lilypond.git] / ly / toc-init.ly
index 488e22ba2a6eb823a43f048dac5bdcfef344abec..55b48b96c2fec65040489667e5768e86ff093d21 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.12.0"
+\version "2.14.0"
 
 %% defined later, in a closure
 #(define-public (add-toc-item! markup-symbol text)
@@ -48,9 +48,10 @@ Usage: @code{\\markuplines \\table-of-contents}" )
                                 (text (caddr toc-item)))
                             (interpret-markup
                               layout
-                              (cons (list (cons 'toc:page 
-                                           (markup #:page-ref label "XXX" "?"))
-                                          (cons 'toc:text text))
+                              (cons (list (cons 'toc:page
+                                           (markup #:with-link label #:page-ref label "XXX" "?"))
+                                          (cons 'toc:text (markup #:with-link label text))
+                                          (cons 'toc:label label))
                                     props)
                               (ly:output-def-lookup layout toc-markup))))
                         (toc-items)))))