\paper{
#(set-paper-size "letter")
topmargin = 0.5\in
leftmargin = 0.75\in
linewidth = 7\in
bookTitleMarkup = \markup {
\column {
\fill-line { \override #'(font-name . "ptmr") { \override #'(font-magnification . 3) \fromproperty #'header:title } }
\fill-line { \override #'(baseline-skip . 3)
\fill-line { \override #'(font-name . "ptmr") { \override #'(font-magnification . 2.5) \fromproperty #'header:subtitle } }
}
\fill-line {
\column {
\left-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:chantsource }
\left-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:specialmelody }
\left-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:textsource }
}
\column {
\right-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:composer }
\right-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:composerdates }
\right-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:arranger }
\right-align \override #'(font-name . "ptmr") { \override #'(font-magnification . 1.2) \fromproperty #'header:arrangerdates }
}
}
}
}
% ... similar definitions for scoreTitleMarkup, odd/evenHeaderMarkup, odd/evenFooterMarkup ...
}
Note that I've defined my own custom header properties. This makes my music files rather un-portable but it makes generating output for my specialized needs much easier. If I'm not mistaken the mutopia project also uses custom-defined header properties. (For the curious, the "ptmr" font is Adobe Times; to get proper PDF output I've had to use lilypond-latex.)
As an aside, when you use a text font other than the default (which is Computer Modern, the original TeX font developed by Donald Knuth), I believe that lilypond currently uses Computer Modern for computing metrics, so center- or right-aligned text may appear a bit ragged.
Hope this helps.
--d
Sven Axelsson wrote:
Hello List.
This question is for Lilypond 2.4.2.
Does it really have to be so complicated to do custom titles? In version 2.2.5 it was possible to just change titledefs.tex but that doesn't seem to work anymore. I understand that you are supposed to write a (fairly complicated) Scheme procedure to do this, but how do I hook it so it is used?
I'm trying this now:
\include "bagpipe-title.scm" \layout { #(define-public book-title bagpipe-book-title) #(define-public score-title bagpipe-book-title) }
where bagpipe-title.scm at the moment is exactly the same as the definintions for opera music that can be found in the list archive. But this doesn't work - the custom definitions are not used. And, yes, I *do* want the book-title and score-title to look the same.
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user