Re: variables in \book { }

2016-02-17 Thread Noeck
>> I don’t think that not having a proper >> scope for each book/bookpart is a problem. > > I think it is. > >> So I’d vote for this change. > > I vote against it. It does not make sense that when I write I would also say, without its own scope there is little gain and it will just lead to mor

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Simon Albrecht writes: > On 17.02.2016 13:27, David Kastrup wrote: >> Graham King writes: >> >>> >>>\book { >>> music = \relative { c' d e f } >>> \score { >>> \music >>> } >>>} >> The problem is that it would likely be

Re: variables in \book { }

2016-02-17 Thread Simon Albrecht
On 17.02.2016 13:27, David Kastrup wrote: Graham King writes: \book { music = \relative { c' d e f } \score { \music } } The problem is that it would likely be possible to teach LilyPond's parser to accept the latter,

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Graham King writes: > On Wed, 2016-02-17 at 10:58 +0100, David Kastrup wrote: > >> The problem with the repeated use of "I've tried that" is that nobody >> can really guess just _what_ exactly you have tried with what error >> messages as the result. And nobody can try reproducing or debugging o

Re: variables in \book { }

2016-02-17 Thread Graham King
On Wed, 2016-02-17 at 10:58 +0100, David Kastrup wrote: > Graham King writes: > > > Thanks Ben, > > that will be useful once I've found a solution to the immediate problem: > > defining and using a variable within \book{} or \bookpart{} or > > \book[part]{ \score { }} > > > > \version "

Re: variables in \book { }

2016-02-17 Thread Jan-Peter Voigt
... better to use define-void-function %%% snip %%% pdefine = #(define-void-function (sym val)(symbol? scheme?) (ly:parser-define! sym val)) %%% snip %%% Cheers Jan-Peter Am 17.02.2016 um 10:56 schrieb Jan-Peter Voigt: > Hi Graham, > > I didn't went through the whole thread, but IIUC, the probl

Re: variables in \book { }

2016-02-17 Thread David Kastrup
Graham King writes: > Thanks Ben, > that will be useful once I've found a solution to the immediate problem: > defining and using a variable within \book{} or \bookpart{} or > \book[part]{ \score { }} > > \version "2.19.35" > \book { > music = \relative { c' d e f } >

Re: variables in \book { }

2016-02-17 Thread Jan-Peter Voigt
Hi Graham, I didn't went through the whole thread, but IIUC, the problem is about defining variables inside a pair of braces. Sometimes I use a helper function to define variables: %%% snip %%% \version "2.19.35" % a little helper function using ly:parser-define! pdefine = #(define-scheme-functi

Re: variables in \book { }

2016-02-17 Thread Graham King
On Tue, 2016-02-16 at 19:27 -0500, Ben Strecker wrote: > Graham, > > > > Have you tried putting each score inside it’s own \bookpart? > > > The documentation for ragged-last-bottom says: > > > ragged-last-bottom > > > > If this is set to false, then the last page,

Re: variables in \book { }

2016-02-16 Thread Ben Strecker
Graham, Have you tried putting each score inside it’s own \bookpart? The documentation for ragged-last-bottom says: ragged-last-bottom <> <>If this is set to false, then the last page, and the last page in each section created with a \bookpart block, will be vertically justified in the same w

Re: variables in \book { }

2016-02-16 Thread Graham King
On Wed, 2016-02-17 at 00:20 +0100, David Kastrup wrote: > Graham King writes: > > > On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > > > > >> > >> However, your original posting stated: > >> > >> > (Alternatively, if there's a way to make book-titling.ily do a > >> > ragged-last-bo

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > >> >> However, your original posting stated: >> >> > (Alternatively, if there's a way to make book-titling.ily do a >> > ragged-last-bottom for each piece, that would save even more work). >> >> Have you actuall

Re: variables in \book { }

2016-02-16 Thread Graham King
On Tue, 2016-02-16 at 19:15 +0100, David Kastrup wrote: > > However, your original posting stated: > > > (Alternatively, if there's a way to make book-titling.ily do a > > ragged-last-bottom for each piece, that would save even more work). > > Have you actually tried > > \layout { > ragged-

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > On Tue, 2016-02-16 at 18:36 +0100, David Kastrup wrote: > >> Graham King writes: >> >> > oops, just found the simple fix (I think): > > > >> Have you actually _read_ your question? >> > > Yes, read the question, but failed to read the rubbish I put forward as > a "simple

Re: variables in \book { }

2016-02-16 Thread Graham King
On Tue, 2016-02-16 at 18:36 +0100, David Kastrup wrote: > Graham King writes: > > > oops, just found the simple fix (I think): > Have you actually _read_ your question? > Yes, read the question, but failed to read the rubbish I put forward as a "simple fix". Too much going round in circles

Re: variables in \book { }

2016-02-16 Thread David Kastrup
Graham King writes: > oops, just found the simple fix (I think): > > > \version "2.19.35" > > music = { \relative { c' d e f }} > > \book { > \score { > \music > } > } > > One extra pair of braces around the music

Re: variables in \book { }

2016-02-16 Thread Graham King
oops, just found the simple fix (I think): \version "2.19.35" music = { \relative { c' d e f }} \book { \score { \music } } One extra pair of braces around the music expression. Apologies for the noise.

variables in \book { }

2016-02-16 Thread Graham King
I'm working on a book containing twelve short single-movement quintets, originally with the intention of assembling them into a single volume with book-titling.ily. However, being unable to make book-titling.ily deliver a ragged-last-bottom margin for each of the twelve quintets, I'm now trying to