lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Producing a title page


From: David Sumbler
Subject: Producing a title page
Date: Thu, 30 Jan 2014 17:48:42 +0000

Having now got LilyPond 2.18.0 set up on my two machines, thanks to all
the help from the list, I have now started trying to adjust the output
of the pieces I have so far produced.

I have used \header blocks for title, composer etc., and these are
working as I would wish.

However, I should like to produce a separate title page which precedes
the music, but everything I have tried so far doesn't work.  Usually I
either get additional text added to the first page of music, or I get no
title above the music itself.

Of course, I could easily create a title page in LibreOffice or similar,
but as LilyPond seems to have sufficient markup capabilities to do
anything I am likely to want on a title page, it seems a shame not to
keep the whole thing in the one place.

What I would like to do is to have some items (e.g. title, composer)
appearing on page 1, and some of the same ones appearing above the music
which starts on page 2 (or perhaps page 3 in some cases).  I imagine it
is possible to set things up so that the data only appears once in the
file - e.g. "Title" appears once in the .ly file, but appears both on
the title page (page 1) and on the first page of music.

Here is an abbreviated example of one of my efforts:


\version "2.18.0"

\book {
    \paper {
        indent = 0\mm
        scoreTitleMarkup = \markup {
            \fill-line {
                \null
                \fontsize #3 \bold \fromproperty #'header:piece
                \null
            }
        }
        first-page-number = #2
    }

    \header {
        title       = "Partita"
        subtitle    = "for solo marimba"
    }

    \score {
        { c'1 c' }
        \header { piece = "I.  Allemande" }
        \layout { }
    }
    \pageBreak

    \score {
        { d'1 d' }
        \header { piece = "II.  Courante" }
        \layout { }
    }
}


How should I alter this to get a title page showing "Partita" and "for
solo marimba" on a title page preceding the music pages?

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]