I think that the variables global, VoiceOne, etc. need to be put in top level
outside the bookparts. The following compiles without error:
%%
\version "2.25.21"
\language "english"
#(set-default-paper-size "letter")
\header {
title = "Book title"
}
global = {
\key d \major
\time 3/4
\tempo "tempo"
}
VoiceOne = \relative c' {
\global
f4 f
}
VoiceTwo = \relative c' {
\global
\stemDown
d4 d
}
VoiceThree = \relative c' {
\global
}
VoiceFour = \relative c' {
\global
}
SpacingVoice = {
}
\bookpart {
\header {
title = "Stripped Down template"
subtitle = "subtitle"
composer = "composer"
copyright = "Copyright line on book first page"
}
\score {
\new Staff { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\
\VoiceFour \\ \SpacingVoice >> }
}
}
\bookpart {
\header { title = "new book" subtitle = "Second part" }
{ c'4 }
}
\bookpart {
\header { subtitle = "third part" }
{ c8 c16 c }
}
%%
If you intended to insert the files using \include, i'm not sure what the best
way is, maybe you'd need to put the variables in one file, and the \score part
in another, then \include them in the proper places.
| | Virus-free.www.avg.com |