[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Learning Manual 2.18 2.41 Organizing pieces with variables
From: |
Kevin Tough |
Subject: |
Learning Manual 2.18 2.41 Organizing pieces with variables |
Date: |
Sun, 25 Jan 2015 08:51:18 +0100 |
Hi Folks,
I'm trying to get up to speed with variables but I am missing something
obvious or the documentation is not clear.
In the example the escaped \cm generates an escaped character not
recognized error message. If I stick it in a layout block it is
recognized. Then however the variable is not longer seen outside that
scope.
The use of the variable name "name" to hold the value "Wendy" causes a
warning that "name" is a keyword.
Here is my code...
\version "2.18.2"
\language "english"
\layout {
indent = 0.0\cm
% \omit Voice.StringNumber %defeat number display above treble staff
width = 4\cm
}
name = "Wendy"
aFivePaper = \paper { paperheight = 21.0 \cm }
% Now use these variables...
\paper {
\aFivePaper
line-width = \width
}
{
c4^\name
}
- Learning Manual 2.18 2.41 Organizing pieces with variables,
Kevin Tough <=