Jump to content

Printing marks on every staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Although rehearsal and text marks are normally only printed above the topmost staff, they may also be printed on every staff.
Although rehearsal and text marks are normally only printed above the topmost staff, they may also be printed on every staff.


<lilypond version="2.24.0">
<lilypond version="2.24">
\score {
\score {
   <<
   <<
Line 24: Line 24:
</lilypond>
</lilypond>


[[Category:Contexts and engravers]]
[[Category:Text]]
[[Category:Text]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 17:44, 12 December 2025

Although rehearsal and text marks are normally only printed above the topmost staff, they may also be printed on every staff.

\version "2.24"

\score {
  <<
    \new Staff { \mark \default c''1 \textMark "molto" c'' }
    \new Staff { \mark \default c'1 \textMark "molto" c' }
  >>
  \layout {
    \context {
      \Score
      \remove Mark_engraver
      \remove Text_mark_engraver
      \remove Staff_collecting_engraver
    }
    \context {
      \Staff
      \consists Mark_engraver
      \consists Text_mark_engraver
      \consists Staff_collecting_engraver
    }
  }
}