|
From: | Jean Abou Samra |
Subject: | Re: headers, and what include doesn't do |
Date: | Fri, 16 Oct 2020 15:50:55 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hello,
(Sorry if this message appears in another thread; this will be fixed soon.)
Thank you guys. I tried the way Mark suggested before and I get the same result of III. being shown on the first page. So still not seeming to understand.
I have also tried the include-all-headings=##t which doesn't seem to change anything. What I have is:\version "2.20.0"
\paper {%system-system-spacing, #' basic-distance = #25systems-per-page = 6print-all-headers = ##f}
\header {title = "Circle"subtitle = \markup { "I." }composer = \markup {\center-column {"Molly Preston"(2020)}}tagline = ##f}
\include "Circle_mvt1.ly"\pageBreak
\include "Circle_mvt2.ly"\pageBreak\include "Circle_mvt3.ly"
My ly files are set up as :
\header {}upper =lower =
In other words, the file resulting from \include statements
that
is finally processed by LilyPond (roughly, see below) looks
like:
\header {
title = "Title"
}
\header {
piece = "Piece 1"
}
\score { c'1 }
\header {
piece = "Piece 2"
}
\score { c'1 }
And when the third \paper block is processed, its contents
override the
second block, because both are at the top level.
The solution to have per-score headings is to put your
individual headers
inside the score block.
\header {
title = "Title"
}
\score {
{ c'1 }
\header {
piece = "Piece 1"
}
}
\score {
{ c'1 }
\header {
piece = "Piece 2"
}
}
(For technical reasons, \header should come after the music inside \score.)
It's seems very likely from the way you've expressed your problem that you think LP attaches some meaning to \include. It doesn't. Writing \include "foo.ly" just pastes the contents of foo.ly into the source at that point. After all the \include files have been copied in, then LP processes the resulting big/gigantic file that results. (You could perfectly well do the same assembly job with cut&paste in an editor.)
Best,
Jean
[Prev in Thread] | Current Thread | [Next in Thread] |