lilypond-user
[Top][All Lists]
Advanced

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

Re: Can a \bookpart be a variable?


From: Jean Abou Samra
Subject: Re: Can a \bookpart be a variable?
Date: Fri, 23 Sep 2022 09:24:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1



Le 23/09/2022 à 08:17, Brent Annable a écrit :
Hi all,

I've been typesetting a bunch of hymns for inclusion in a larger publication, and I now have about 100 separate Lilypond files that I need to collate into a single master file. It seems easiest to me to turn each individual file into a \bookpart, set the bookpart as a variable, then \include the file name in a separate master file and call on the variable there.

But when I do that and try to compile the master, I just get a bunch of error messages in the original file (I'm using Frescobaldi, and all of the variables in the original file are highlighted in red). My question is: is this possible? Should it work if I turn the \bookpart into a variable and call on it elsewhere, and am I just making a silly programming error? Or should I try another method?

If it should be possible, I'm happy to share some files to illustrate.



It can be done, the syntax is just slightly strange:

\version "2.22.2"

mybookpart = \bookpart { { c' } }

\book {
  % Not
  % \mybookpart
  % but
  \bookpart { \mybookpart }
}

Best,
Jean





reply via email to

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