Hi Dimitri, I can't give a working example right now as I'm writing on my phone, but look at the break-visibility property of the Staff.KeySignature grob. #end-of-line-invisible would be a reasonable setting.
Btw, the ' in all-invisible looks fishy to me. These are not symbols but actual variables IIRC. Lukas Dimitri Sykias <[email protected]> schrieb am So., 28. Sept. 2025, 19:13: > In a harmony exercise I have a different key signature every two measures. > I’ve managed to hide the cancellation of the previous key signature at the > beginning of the next two-bar segment with these commands: > \set Staff.printKeyCancellation = ##f > \override Staff.KeyCancellation.break-visibility = #'all-invisible > The exercise spans two systems. At the end of the first system, LilyPond > prints the key signature of the next system as a cautionary key signature > at the end of the staff. > How can I prevent this from appearing? > Thanks >
