4 texidoc = "Context modifications can be stored into a variable as a
5 \with object. They can be later inserted into another \with block."
8 % Some sample modifications to be inserted into a \with block later on
10 \remove "Time_signature_engraver"
11 \consists "Ambitus_engraver"
12 \override StaffSymbol #'line-count = 4
15 music = \relative c'' { \key fis \minor c1 d e }
20 % Some context modifications manually written in a \with block
22 \remove "Time_signature_engraver"
23 \consists "Ambitus_engraver"
24 \override StaffSymbol #'line-count = 4
26 % The same mods as direct value of \with
27 \new Staff \with \ctxmod { \music }
28 % Mods as part of a \with block
29 \new Staff \with { \ctxmod } { \music }
30 % Mods before a context mod in a with block are working:
32 \remove "Clef_engraver"
35 % Mods before and after a context mod in a with block are working:
37 \remove "Clef_engraver"
39 \remove "Key_engraver"
41 % Mods can be inserted instead of a \with block (i.e. \with is not required)
42 \new Staff \ctxmod { \music }