Am 10. Januar 2017 18:55:04 MEZ schrieb Timothy Lanfear <timo...@lanfear.me>:
>On 10/01/17 16:59, Peter Toye wrote:
>> Cannot use \layout in a variable 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  }
>>  }
>> }
>>
>
>Too many brackets.

To explain this: you defined a *music expression* by the outermost curly 
beackets. The \layout was put *inside* that music expression.

Urs


> This will work.
>
>\version "2.19.53"
>
>Lay = \layout { indent = 2\cm }
>
>\Lay
>
>\score {
>   c'1
>}

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to