]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: Issue 5032: Using \with with \chords, \drums and \figures
authorTrevor Daniels <t.daniels@treda.co.uk>
Sun, 15 Jan 2017 17:47:54 +0000 (17:47 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Sun, 22 Jan 2017 17:49:39 +0000 (17:49 +0000)
Document the use of \with with the short forms of the
input-mode-specifying commands.

Documentation/notation/changing-defaults.itely

index c8f9ebc510c3ee2f5b993291025278bb2a8a37ff..8457f6dba0aaa65b2739ec73e5b2b489773c716d 100644 (file)
@@ -1005,8 +1005,26 @@ command:
 @}
 @end example
 
-Since such a @q{context modification} is specified inside of
-music, it will affect @emph{all} outputs (typesetting @emph{and}
+Alternatively, if the music is being entered using the short form of the
+input mode-specifying commands, e.g. @code{\chords} rather than
+@code{\chordmode}, the @code{\with} command must be placed immediately
+after the mode-specifying command:
+
+@example
+\chords \with @{ [context settings for this (implicit) context instance only] @}
+@{
+  @dots{}
+@}
+@end example
+
+@noindent
+as it is the implicit context created by these short forms which should
+be modified.  The same consideration applies to the other input
+mode-specifying short forms (@code{\drums}, @code{\figures}), see
+@ref{Input modes}.
+
+Since context modifications specified in @code{\with} blocks are inside
+music, they will affect @emph{all} outputs (typesetting @emph{and}
 Midi) as opposed to changes within an output definition.
 
 The following types of settings may be specified:
@@ -1082,6 +1100,10 @@ A predefined command such as @code{\dynamicUp}
 
 @end itemize
 
+@seealso
+Notation Reference:
+@ref{Input modes}
+
 @node Order of precedence
 @unnumberedsubsubsec Order of precedence