On Thu, 2024-10-17 at 13:32 -0400, Kieren MacMillan wrote:
> Hi David,
> 
> > > So, for example, I would like the following:
> > > Page 1, containing items 1 and 2: header shows '1&2'
> > > Pages 2-3, each containing a single item: headers show '3' and
> > > '4'
> > > respectively
> > > Pages 4-5, containing item 5 spread over the 2 pages: headers
> > > show '5'
> > > and '(5)'
> > > I don't want the actual page numbers shown at all.
> 
> I do this all the time in my large-scale scores (musicals, operas,
> songbooks, etc.) — it just requires a careful and intentional use of
> \bookpart and \header.
> 
> > Maybe Jean's great code in
> > https://lists.gnu.org/archive/html/lilypond-user/2022-12/msg00095.html
> > could be used here?
> 
> That would definitely work better (i.e., at all!) if you’re changing
> headers mid-score.
> 
> Hope that helps!

One of these 2 solutions would almost certainly work for me, if only I
could get the basics sorted out.  But after a lot of experimentation, I
cannot get one header on page 1 and another on page 2.  Clearly I am
doing something fundamentally wrong.

The following code gives me both headers on page 1, and neither on page
2, which of course is not what I want.  What am I doing wrong?

\version "2.24.3"

\header {
  title = "Hello"
  piece = "Goodbye"
}

\paper{
  odd-header-markup = \markup { \fromproperty #'header:title }
  even-header-markup = \markup { \fromproperty #'header:piece }
}

\new Staff {
  s1
  \pageBreak
  s1
}

David

Reply via email to