]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: fix errors in variable definitions - issue #5132
authorFederico Bruni <fede@inventati.org>
Fri, 5 May 2017 12:20:32 +0000 (14:20 +0200)
committerFederico Bruni <fede@inventati.org>
Mon, 15 May 2017 10:35:57 +0000 (12:35 +0200)
Documentation/learning/common-notation.itely

index b51766c0a2e4a70f69430cbf61e7ac2d350a62ca..b9b62cf3b321452ec117290c7f9b68cf4246e39b 100644 (file)
@@ -1343,9 +1343,9 @@ Variables may be used for many other types of objects in
 the input.  For example,
 
 @example
-width = 4.5\cm
-name = "Wendy"
-aFivePaper = \paper @{ paperheight = 21.0 \cm @}
+myWidth = 60      % a number to pass to a \paper variable (the unit is millimeter)
+myName = "Wendy"  % a string to pass to a markup
+aFivePaper = \paper @{ #(set-paper-size "a5") @}
 @end example
 
 Depending on its contents, the variable can be used in different
@@ -1354,11 +1354,11 @@ places.  The following example uses the above variables:
 @example
 \paper @{
   \aFivePaper
-  line-width = \width
+  line-width = \myWidth
 @}
 
 @{
-  c4^\name
+  c4^\myName
 @}
 @end example