I am trying to put together a book composed of multiple scores.  From reading 
through the archives it seems that variables are not allowed within \bookpart.  
I was wondering what people do to get around this.  I'd like to be able to use 
the same code for putting together multiple files where some files may contain 
variables and some do not.  I get an unexpected string error when I try to use 
a variable within \bookpart.  I could go through the lilypond files and remove 
the variables and put all the note information within \score{} but it seems 
like there should be a better way.  I'm new to Lilypond so I'm hoping someone 
knows of a better way.  
 
The following code results in an error because bach-invention-01.ly contains 
variables.
 
\book {
  
  \markuplines \table-of-contents
  \pageBreak 
  
     \bookpart
   {
      \tocItem \markup "Score 1"
       \include "liszt-consolation-no1.ly"
   }
 
   \bookpart
   {
      \tocItem \markup "Score 1"
       \include "bach-invention-01.ly"
   }
   
}                                         
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to