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}
%%%%%%%%%%%%%%%%%%%%%
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user