Hi Steven,
I think LilyPond is confused because you called set-global-staff-size several 
times. In my eyes, as this is a global setting, it shouldn't be done more than 
once. Remember that a score is processed in several passes.
So you should just use layout-set-staff-size instead. See 
http://lilypond.org/doc/v2.19/Documentation/notation/setting-the-staff-size 
<http://lilypond.org/doc/v2.19/Documentation/notation/setting-the-staff-size> 
and your corrected code below. This produces correct output.
Regards,
Jean Abou Samra.


\version "2.21.0"

notes = \relative c' { c1 d e f g}

\header {
  title = "Adios, Au Revoir, Auf Wiedersehen"
  tagline = ""
}

\paper {
  bookTitleMarkup = \markup {
    \fill-line  {
        \abs-fontsize #20
        { \fromproperty #'header:title }
    }
  }
}


% for conductor's score
\book {
  \score {
    <<
      { \notes \notes \notes }
    >>
    \layout {
      #(layout-set-staff-size 12.5)
    }
  }
}


% for Instrumental parts
\book {
  \score {
    <<
      { \notes \notes \notes }
    >>
    \layout {
      #(layout-set-staff-size 20)
    }
  }
}




> Le 18 juil. 2019 à 01:27, Steven Smith <[email protected]> a écrit :
> 
> I am working on an arrangement for band, and would like the header 
> information to be the same size on the conductor's score and the instrumental 
> parts. I put the scores in different \book block so I could use the 
> #(set-global-staff-size 12.5) for the conductor's score and 
> #(set-global-staff-size 20) for the parts.
> 
> Then I tried to use    \abs-fontsize #20  for the Title in a \bookTitleMarkup 
> block. The second book has the correct font size, but the letter spacing is 
> wrong. If the first book has the smaller staff size, the second book title 
> spacing is too wide. If the first book has the larger staff size, the second 
> book title spacing is too narrow.
> 
> What is going on here? MWE code follows, images attached.
> 
> -Steven Smith
> 
> -----------------------------------------
> 
> \version "2.19.80"
> \language "english"
> 
> notes = \relative c' { c1 d e f g}
> 
> % Just to make the image smaller
> #(set! paper-alist (cons '("my size" . (cons (* 8.5 in) (* 2 in))) 
> paper-alist))
> 
> \header {
>   title = "Adios, Au Revoir, Auf Wiedersehen"
>   tagline = ""
> }
> 
> \paper {
>   #(set-paper-size "my size")
>   bookTitleMarkup = \markup {
>     \fill-line  {
>         \abs-fontsize #20
>         { \fromproperty #'header:title}
>     }
>   }
> }
> 
> 
> #(set-global-staff-size 12.5)
> % for conductor's score
> \book {
>   \score {
>     <<
>       {\notes \notes \notes}
>     >>
>   }
> }
> 
> 
> #(set-global-staff-size 20)
> % for Instrumental parts
> \book {
>   \score {
>     <<
>       {\notes \notes \notes}
>     >>
>   }
> }
> 
> 
> 
> 
> <headertest.png><headertest-1.png>_______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to