X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Ftoc-init.ly;h=f959e1679f443f90b763f905ab0ce31af2f8f394;hb=c8081a4fa115c8759180e8fa9dd093a013a04576;hp=488e22ba2a6eb823a43f048dac5bdcfef344abec;hpb=cadb80a98fffcf101886553dd1327e7c468682dc;p=lilypond.git diff --git a/ly/toc-init.ly b/ly/toc-init.ly index 488e22ba2a..f959e1679f 100644 --- a/ly/toc-init.ly +++ b/ly/toc-init.ly @@ -1,4 +1,4 @@ -\version "2.12.0" +\version "2.15.17" %% defined later, in a closure #(define-public (add-toc-item! markup-symbol text) @@ -38,7 +38,7 @@ tocItemWithDotsMarkup = \markup \fill-with-pattern #1 #RIGHT . ( _i "Outputs the table of contents, using the paper variable @code{tocTitleMarkup} for its title, then the list of lines built using the @code{tocItem} music function -Usage: @code{\\markuplines \\table-of-contents}" ) +Usage: @code{\\markuplist \\table-of-contents}" ) (cons (interpret-markup layout props (ly:output-def-lookup layout 'tocTitleMarkup)) (space-lines (chain-assoc-get 'baseline-skip props) @@ -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)))))