[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: opus conflict
From: |
Mark Stephen Mrotek |
Subject: |
RE: opus conflict |
Date: |
Sun, 30 Apr 2017 09:15:26 -0700 |
Timothy,
Thank you for your response. Your time spent writing out a solution is
greatly appreciate.
I would like to have something that is consistent with the manual.
Mark
-----Original Message-----
From: lilypond-user
[mailto:address@hidden On Behalf Of
Timothy Lanfear
Sent: Sunday, April 30, 2017 1:16 AM
To: address@hidden
Subject: Re: opus conflict
On 29/04/17 23:34, Mark Stephen Mrotek wrote:
>
> Hello,
>
> In my \book \header I have fields of title, composer, and opus.
>
> The manual (2.18) states "The values of the fields filter down this
> hierarchy, with the values set higher in the hierarchy persisting
> unless they are over-ridden by a value set lower in the hierarchy."
> This is understand. So for the subsequent scores I insert title = ##f
> and composer = ##f. The title and composer fields in the scores are
> overridden.
>
> Now the conflict, when I insert opus = ##f in the score(s) the field
> is overridden in the \book level (higher?) and is no longer printed
> below the "composer."
>
I find the best way to handle having the opus printed once only on the first
piece of a book is to redefine bookTitleMarkup and scoreTitleMarkup, moving
the opus field to the bookTitleMarkup
\version "2.19.59"
% Move the opus markup from the score title to the % book title so it isn't
repeated for every score.
% Adapted from ly/titling-init.ly
bookopus = \paper {
bookTitleMarkup = \markup {
\override #'(baseline-skip . 3.5)
\column {
\fill-line { \fromproperty #'header:dedication }
\override #'(baseline-skip . 3.5)
\column {
\fill-line {
\huge \larger \larger \bold
\fromproperty #'header:title
}
\fill-line {
\large \bold
\fromproperty #'header:subtitle
}
\fill-line {
\smaller \bold
\fromproperty #'header:subsubtitle
}
\fill-line {
\fromproperty #'header:poet
{ \large \bold \fromproperty #'header:instrument }
\fromproperty #'header:composer
}
}
\override #'(baseline-skip . 2.0)
\column {
\null
\fill-line {
\null
\fromproperty #'header:opus
}
\fill-line {
\fromproperty #'header:meter
\fromproperty #'header:arranger
}
}
}
}
scoreTitleMarkup = \markup {
\column {
\fill-line {
\fromproperty #'header:piece
\null
}
}
}
}
\bookopus
\book {
\header { title="Title" composer="Composer" opus="opus" }
\score { c''1 }
\score { d''1 }
}
--
Timothy Lanfear, Bristol, UK.
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user