ptoye wrote > 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:
> lilypond@ > www.ptoye.com > _______________________________________________ > lilypond-user mailing list > lilypond-user@ > https://lists.gnu.org/mailman/listinfo/lilypond-user Hello Peter, Have you looked at perhaps using style sheets to set your preferences in one location and then use them across the places you need them? http://lilypond.org/doc/v2.18/Documentation/learning/style-sheets Does this help with what you'd like to do? ----- composer | sound designer | asmr artist LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond -- View this message in context: http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199055.html Sent from the User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user