Il giorno dom 3 lug 2016 alle 14:57, Simon Albrecht
<simon.albre...@mail.de> ha scritto:
Let me explain better.
In a directory I have single files for each song. I want to compile
each of them as a standalone PDF. But I also want to include them in
a master file which acts as an anthology book.
So the master file already works fine, because the \header is in the
top level.
The problem is with each single song, because the songs use
\bookpart.
Well, I suppose you need to find a clever way of setting pdftitle in
the wrapper files for the single songs. This kind of things can be
really annoying and convoluted…
This is going to cause me headaches. I've always fought with this sort
of things in LilyPond.
The problem is that I cannot include music variables within a \bookpart
block.
I suspect that what I want to achieve is not possible.
See attached examples.
The -part.ly files compile fine, but the Anthology will fail. I see why
it's failing but I cannot find other ways.
\version "2.19.45"
\header {
title = "Composition 2"
composer = "John Doe"
pdfauthor = "John Doe"
}
\include "composition-2.ily"
\version "2.19.45"
myMusic = \relative {
d'4 e g2 |
}
\score {
\new StaffGroup <<
\new Staff { \clef "treble_8" \myMusic }
\new TabStaff { \clef "moderntab" \new TabVoice \myMusic }
>>
\layout { indent = 0 }
}
\version "2.19.45"
myMusic = \relative {
c4 d e2 |
}
\score {
\new StaffGroup <<
\new Staff { \clef "treble_8" \myMusic }
\new TabStaff { \clef "moderntab" \new TabVoice \myMusic }
>>
\layout { indent = 0 }
}
\version "2.19.45"
\header {
title = "Composition 1"
composer = "John Doe"
pdfauthor = "John Doe"
}
\include "composition-1.ily"
\version "2.19.45"
\book {
\header {
composer = "John Doe"
pdfauthor = "John Doe"
title = "John Doe Anthology"
}
\bookpart {
% this does not work because I cannot include music variables in this block
\include "composition-1-part.ly"
}
}
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond