Thank you! This works beautifully, and now that I've seen it and re-read
the "Custom layout for title blocks" section (
http://lilypond.org/doc/v2.15/Documentation/notation/custom-headers-footers-and-titles),
it's clearer than it was. There is still a lot to learn for someone new to
programming!
Best Wishes,
Mark

On Wed, Apr 4, 2012 at 9:57 AM, Thomas Morley <[email protected]
> wrote:

> Am 4. April 2012 15:20 schrieb Mark Mathias <[email protected]>:
> > I would like to place the Instrument Name on the first page only in the
> > position occupied by the oddHeaderMarkup. LilyPond's convention for the
> > Instrument Name is to place it below the Title. This may be standard for
> > professional-level music, but educational orchestra music normally places
> > the Instrument Name in the upper left corner in large letters. Subsequent
> > pages usually abbreviate the name, often placing it in much smaller type
> > along with the page number.
> >
> > So, I'd like to either use the oddHeaderMarkup command and turn off the
> > oddHeaderMarkup for following pages, or use a different command
> (\markup, I
> > assume) to accomplish the same result. The manual no doubt shows how to
> do
> > this, but the clues are not pulled together in one place that I can get
> to
> > work. Perhaps yet another example of a newbie wrestling LilyPond's
> enormous
> > power and complexity.
>
> Hi Mark,
>
> perhaps you may want to try:
>
> \version "2.15.35"
>
> \header {
>
> title = "Jesu, Joy of Man's Desiring"
>
> composer = "J. S. Bach"
>
> myInstrument = "Violin I"
>
> }
>
> \paper {
>
>        oddHeaderMarkup = \markup
>        \fill-line {
>          " "
>          \on-the-fly #not-first-page \fromproperty #'header:myInstrument
>          \on-the-fly #print-page-number-check-first \fromproperty
> #'page:page-number-string
>        }
>
>        evenHeaderMarkup = \markup
>        \fill-line {
>          \on-the-fly #print-page-number-check-first \fromproperty
> #'page:page-number-string
>          \on-the-fly #not-first-page \fromproperty #'header:myInstrument
>          " "
>        }
>
>        bookTitleMarkup = \markup {
>                \column {
>                        \box { \pad-markup #1 \fromproperty
> #'header:myInstrument }
>                        \bookTitleMarkup
>                }
>        }
>
> }
>
> \relative c' { \repeat unfold 50 { c'1 \break } }
>
> Please note:
> I newly introduced myInstrument into the header to avoid a complete
> new-definition of bookTitleMarkup.
> But now you can't use the old `instrument'-variable any more. If you
> do so, a second `instrument'-markup will be printed.
>
> HTH,
>  Harm
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to