5 Markings can be attached to (invisible) barlines.
9 \layout { ragged-right = ##t }
11 onestaff = \new Staff\relative c'' {
12 \set Staff.shortInstrumentName = instr
13 \set Staff.instrumentName = instrument \mark "B"
14 c1 \mark "A" \break c2 c2 \break
17 grstaff = \relative c''
18 \context GrandStaff <<
21 \set Staff.shortInstrumentName = instr
23 \mark "B" \break c1 \mark "A" c2 }