X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ly%2Ftitling-init.ly;h=12bfa4f34072e919b2a38b2e607b47f33bab1554;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=c35b97aa750c61a00a6d35ead1195e4e966d567c;hpb=785441aeb8cc557217d1b0658ef88d058f58eeb4;p=lilypond.git diff --git a/ly/titling-init.ly b/ly/titling-init.ly index c35b97aa75..12bfa4f340 100644 --- a/ly/titling-init.ly +++ b/ly/titling-init.ly @@ -1,5 +1,8 @@ \version "2.16.0" +#(if (guile-v2) + (use-modules (ice-9 curried-definitions))) + slashSeparator = \markup { \center-align \vcenter \combine @@ -8,17 +11,19 @@ slashSeparator = \markup { } tagline = \markup { - \with-url + \pad-to-box #'(0 . 0) #'(0 . 3) + { \with-url - #"http://lilypond.org/" - \line { + #"http://lilypond.org/" + \line { - %% 2014 = em dash. + %% 2014 = em dash. - #(format #f "Music engraving by LilyPond ~a~awww.lilypond.org" - (lilypond-version) - (ly:wide-char->utf-8 #x2014) - ) + #(format #f "Music engraving by LilyPond ~a~awww.lilypond.org" + (lilypond-version) + (ly:wide-char->utf-8 #x2014) + ) + } } } @@ -59,7 +64,7 @@ bookTitleMarkup = \markup { } scoreTitleMarkup = \markup { \column { - \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 } + \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece \fromproperty #'header:opus @@ -71,14 +76,8 @@ scoreTitleMarkup = \markup { \column { #(define (book-first-page? layout props) "Return #t iff the current page number, got from @code{props}, is the book first one." - (define (ancestor layout) - "Return the topmost layout ancestor" - (let ((parent (ly:output-def-parent layout))) - (if (not (ly:output-def? parent)) - layout - (ancestor parent)))) (= (chain-assoc-get 'page:page-number props -1) - (ly:output-def-lookup (ancestor layout) 'first-page-number))) + (book-first-page layout props))) #(define (book-last-page? layout props) "Return #t iff the current page number, got from @code{props}, is the @@ -150,9 +149,7 @@ book last one." oddHeaderMarkup = \markup \fill-line { - %% force the header to take some space, otherwise the - %% page layout becomes a complete mess. - " " + "" \on-the-fly #not-part-first-page \fromproperty #'header:instrument \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string } @@ -163,7 +160,7 @@ evenHeaderMarkup = \markup \fill-line { \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string \on-the-fly #not-part-first-page \fromproperty #'header:instrument - " " + "" } oddFooterMarkup = \markup {