diff --git a/title_with_category_images.ly b/title_with_category_images.ly index d3df852..2310bf4 100644 --- a/title_with_category_images.ly +++ b/title_with_category_images.ly @@ -41,7 +41,7 @@ (ly:make-stencil (list 'embedded-ps (ly:format - "[/Action /GoTo /View [/Fit] /Title (~a) /OUT pdfmark" (pdf-encode title))) + "[/Action /GoTo /View [/XYZ -4 currentpagedevice /PageSize get 1 get 4 add null] /Title (~a) /OUT pdfmark" (pdf-encode title))) empty-interval empty-interval ;'(0 . 0) '(0 . 0) )) @@ -52,12 +52,9 @@ (starttext (chain-assoc-get 'header:starttext props #f)) (pdfbookmark (if starttext (string-append starttext " | " title) title))) (if title - ;(if (chain-assoc-get 'header:categories props #f) (if right #{\markup { \title-to-pdf-toc #pdfbookmark \fill-line \general-align #Y #UP { \null \bookTitleMarkupCustom \category-images } } #} #{\markup { \title-to-pdf-toc #pdfbookmark \fill-line \general-align #Y #UP { \category-images \bookTitleMarkupCustom \null } } #}) - ;#{\markup \fill-line \general-align #Y #UP { \null \bookTitleMarkupCustom \null } #}) - ;(make-null-markup)) #{ \markup { " " } #}) )))