]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add @warning macro as an experiment.
authorGraham Percival <graham@percival-music.ca>
Wed, 3 Oct 2007 21:42:56 +0000 (14:42 -0700)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 2 Nov 2007 08:48:21 +0000 (09:48 +0100)
Documentation/user/macros.itexi
Documentation/user/tutorial.itely

index 6ae52606b0d44e5b471d12f5128155800dc723d3..443baad4f05bc7dd7c10a8637e9fa9a81888ca9c 100644 (file)
 @end macro
 @end ifdocbook
 
+@c  TODO: experimental.  Don't use unless Graham confirms it.
+@macro warning{TEXT}
+@quotation
+@cartouche
+@strong{Warning:} \TEXT\
+@end cartouche
+@end quotation
+@end macro
 
 
 
index 40b1147a56de147c2f623e6f0c17108019dbc2c0..1ff8d6cd795a6ddd48aee128a2b4295dab206872 100644 (file)
@@ -108,12 +108,12 @@ the result looks like this
 }
 @end lilypond
 
-@strong{Warning:} Every piece of LilyPond input needs to have
+@warning{Every piece of LilyPond input needs to have
 @strong{@{ curly braces @}} placed around the input.  The braces
 should also be surrounded by a space unless they are at the
 beginning or end of a line to avoid ambiguities.  These may be
 omitted in some examples in this manual, but don't forget them in
-your own music!
+your own music!}
 
 @cindex Case sensitive
 In addition, LilyPond input is @strong{case sensitive}.  @code{
@@ -889,15 +889,15 @@ than one voice on the same staff.
 @subsection Music expressions explained
 
 In LilyPond input files, music is represented by @emph{music
-expressions}.  A single note is a music expression, although it is
-not valid input all on its own.
+expressions}.  A single note is a music expression:
 
 @lilypond[verbatim,quote,ragged-right,fragment,relative=2]
 a4
 @end lilypond
 
-Enclosing a group of notes in braces creates a new music
-expression:
+Enclosing a note in braces creates a @emph{compound music
+expression}.  Here we have created a compound music expression
+with two notes:
 
 @lilypond[verbatim,quote,ragged-right,fragment,relative=2]
 { a4 g4 }
@@ -937,9 +937,9 @@ different amount of space.  LilyPond does not care how much (or
 little) space there is at the beginning of a line, but indenting
 LilyPond code like this makes it much easier for humans to read.
 
-@strong{Warning}: each note is relative to the previous note in
+@warning{each note is relative to the previous note in
 the input, not relative to the @code{c''} in the initial
-@code{\relative} command.
+@code{\\relative} command.}
 
 
 @subheading Simultaneous music expressions: single staff