On Sun, 2022-02-06 at 00:15 +0900, Masaki, Akikazu wrote: > Hi Richard, > > The last spacer is not necessary, but staff lines don't reach > trailing > key or time signatures by default. (I guess you tried that.)
yes, that's the purpose of the spacer. > Set StaffSymbol.break-align-symbols property; > %%%%%%%% > \version "2.22.0" > \layout { > \context { > \Staff > \override StaffSymbol.break-align-symbols = #'() > % \override StaffSymbol.break-align-symbols = #'(key-signature) > %% a bit different result > } > } > \markup { Movement I } > { > c'' c'' c'' c'' > c'' c'' > \bar "|." \key bes \major } > %%%%%%%% Thank you for this insight. I worry what else altering this value might change, but can find no reference to break-align-symbols, a search on lilypond.org gives just one hit for break-align-symbol (not symbols) - namely http://lilypond.org/doc/v2.20/Documentation/internals/doublepercentrepeat which lead me to http://lilypond.org/doc/v2.20/Documentation/internals/break_002dalignment_002dinterface which still doesn't mention a property break-align-symbols ... I'm guessing setting this must impact something else, as otherwise the present default just leads to the rather unusual typesetting for the trailing key change. Richard > > Akikazu > > > On 2022/02/05 21:58, Richard Shann wrote: > > When the following movement in a score is going to be in a > > different > > key the player is sometimes warned by printing a key signature > > change > > after the closing barline. > > The attached file accomplishes this, but I wonder if there is > > something > > less hacky that does this. In particular the spacer rest duration > > matters but what it is doing exactly seems a mystery. > > > > Richard Shann > > > > >