lilypond-user
[Top][All Lists]
Advanced

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

Re: Cannot use \layout in a variable


From: Urs Liska
Subject: Re: Cannot use \layout in a variable
Date: Tue, 10 Jan 2017 19:33:14 +0100
User-agent: K-9 Mail for Android


Am 10. Januar 2017 18:55:04 MEZ schrieb Timothy Lanfear <address@hidden>:
>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.



reply via email to

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