From b96a336761c9c2c2978fa97edf1ee38033e473db Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Fri, 28 Oct 2011 13:52:54 +0200 Subject: [PATCH] changing-defaults.itely: correct misstatement about variables for context mods --- .../notation/changing-defaults.itely | 44 +++++++++++++++++-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index c589a6932d..83f9aee050 100644 --- a/Documentation/notation/changing-defaults.itely +++ b/Documentation/notation/changing-defaults.itely @@ -724,10 +724,48 @@ this score block. Modifications can be made to the @code{Score} context or all @code{Voice} contexts in a similar way. -@knownissues +Context changes can be placed in a variable and applied to a +@code{\context} definition by prepending the modification with +@code{\with}: +@lilypond[quote,verbatim] +blubb = \with { + fontSize = #-4 + \override Stem #'thickness = #4.0 + \remove "Time_signature_engraver" +} -It is not possible to collect context changes in a variable and apply -them to a @code{\context} definition by referring to that variable. +bla = \with { + fontSize = #3 + \override Stem #'thickness = #-2.0 +} + +melody = \relative c'' { + a4 a a a | + a4 a a a | +} + +\score { + << + \new Staff << + \melody + s1*0^"Small, thicker stems, no time signature" + >> + \new Staff \bla << + \melody + s1*0^"Different" + >> + >> + \layout { + \context { + \Staff + \blubb + } + } +} +@end lilypond + + +@knownissues The @code{\Staff \RemoveEmptyStaves} will overwrite your current @code{\Staff} settings. If you wish to change the defaults for a -- 2.39.5