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