Am Sa., 25. Jan. 2020 um 06:31 Uhr schrieb Werner LEMBERG <w...@gnu.org>: > > > I have to typeset a snippet that is an excerpt of a longer piece, and > this snippet ends with a key change: > > \relative c' { > \key d \major > d1 > \key c \major > } > > However, the staff stops right before the key change, see attached > image. What can I do to avoid that? > > > Werner
Try: \relative c' { \override Staff.StaffSymbol.break-align-symbols = #'(time-signature key-cancellation key-signature staff-bar break-alignment) \key d \major d1 \tweak X-extent #'(0.25 . 2.4) \key c \major } The StaffSymbol being too short is a consequence of a bug-fix some time ago, though in this case the cure isn't nice either. Furthermore you need to add some padding to the right manually. Cheers, Harm