use starttext and better PDF bookmarks
This commit is contained in:
@ -233,6 +233,7 @@ headerToTOC = #(define-music-function (parser location header label) (ly:book? s
|
||||
(if (and extracted (not (string-null? extracted))) extracted #f)
|
||||
)))
|
||||
(title (extract-var-and-check 'title))
|
||||
(starttext (extract-var-and-check 'starttext))
|
||||
(alttitle (extract-var-and-check 'alttitle))
|
||||
(altalttitle (extract-var-and-check 'altalttitle))
|
||||
(categorytitle (extract-var-and-check 'categorytitle))
|
||||
@ -241,6 +242,7 @@ headerToTOC = #(define-music-function (parser location header label) (ly:book? s
|
||||
(add-index-item! 'indexItemMarkup tocmarkup toctitle label)))
|
||||
)
|
||||
(if categories (add-category-index-item! (string-tokenize categories) 'indexItemMarkup (cons (list (cons 'rawtext (if categorytitle categorytitle title))) '()) label))
|
||||
(if starttext (add-to-toc! starttext (cons (list (cons 'rawtext starttext) (cons 'alternative #t)) '())))
|
||||
(if alttitle (add-to-toc! alttitle (cons (list (cons 'rawtext alttitle) (cons 'alternative #t)) '())))
|
||||
(if altalttitle (add-to-toc! altalttitle (cons (list (cons 'rawtext altalttitle) (cons 'alternative #t)) '())))
|
||||
(if title (add-to-toc! title (cons (list (cons 'rawtext title)) '())) #{ #})
|
||||
|
Reference in New Issue
Block a user