lilypond-user
[Top][All Lists]
Advanced

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

Re: Title on every page?


From: Ben
Subject: Re: Title on every page?
Date: Fri, 19 Jan 2018 11:59:48 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

On 1/19/2018 10:57 AM, Joseph Austin wrote:
How can I get Lilypond to put the title of the piece on every page?

Even better: I'd like a date printed and a file name, as in office documents.
When printing many versions of a song, the pages tend to get mixed up!

Joe Austin



Hi Joe,

Check out this thread for more info:
http://lilypond.1069038.n5.nabble.com/composition-title-on-every-page-except-the-first-td27839.html

This code below will allow you to show the title on each page, and if you want to customize the date that is possible as well. Hope this helps.

%%%%%%%
\version "2.19.80"

% first, define a variable to hold the formatted date:
date = #(strftime "%d-%m-%Y" (localtime (current-time)))

% use it in the title block:
\header {
  title = "Including the date!"
  subtitle = \date
}

%%%%%%%%%%%%%%%%%%%%%%

music = \repeat "unfold" 1000 c'

\header { title = "Title"}

\paper {
        oddHeaderMarkup = \markup {
            \fill-line
            {
              \fromproperty #'page:page-number-string
%% left
              \on-the-fly #not-first-page \fromproperty #'header:title
%% center
              " "
%% right
             }
        }

        evenHeaderMarkup = \oddHeaderMarkup
}


{\music}

%%%%%%%%%%%%%%%%%%%%%

reply via email to

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