lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot use \layout in a variable


From: Peter Toye
Subject: Cannot use \layout in a variable
Date: Tue, 10 Jan 2017 16:59:30 +0000

I wanted to use the same layout in a number of places, so put it into a variable. And got an error.

\version "2.19.52"

\language "english"

Lay = {
 \layout {
 }
}

\new Score {
 \new Staff {
   \relative
   { c'4 c c c  }
 }
}


gives

Starting lilypond-windows.exe 2.19.52 [Layout.ly]...
Processing `D:/Peter/Music/Lilypond/Bugs/Layout.ly'
Parsing...
D:/Peter/Music/Lilypond/Bugs/Layout.ly:6:3: error: syntax error, unexpected \layout
 
 \layout {
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `./tmp-lilypond-PzQNTV'...
Converting to `Layout.pdf'...
Deleting `./tmp-lilypond-PzQNTV'...
fatal error: failed files: "D:/Peter/Music/Lilypond/Bugs/Layout.ly"
Exited with return code 1.


Any ideas why?


Regards,

Peter
mailto:address@hidden
www.ptoye.com
reply via email to

[Prev in Thread] Current Thread [Next in Thread]