Hi Valentin!
Am Sonntag, 29. Juli 2007 schrieben Sie:
> 2007/7/28, Reinhold Kainhofer <[EMAIL PROTECTED]>:
> > I was looking for the lilypond variable / property that defined the font
> > of the piece headings, so that I set this property once and it is
> > automatically applied to all my scores that include the definitions.ly
> > file.
>
> Actually this is exactly what I do :)
> I have a definitions file in which I put everything in identifiers, such as
[...]
> And this way, when typesetting each separate piece, in the \header I
> only have to specify
> \include "definitions.ly"
> \header {
> piece= \pieceLayout #"Here is my title"
> }Thanks a lot for the tip. After digging a little deeper into the lilypond code, I finally found that its easiest to simply redefine scoreTitleMarkup in the \paper section (see the titling-init.ly for the original function). Attached is an example snipplet, which I also submitted at LSR. Cheers, Reinhold -- ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.10.25"
\header {
title = "Formatting of piece headers"
}
\paper {
scoreTitleMarkup = \markup { \column {
\on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
\fill-line {
\fontsize #3 \bold \fromproperty #'header:piece
\fromproperty #'header:opus
}
}}
}
\markup { \fill-line {
\justify-string #"If you have multiple pieces in a large work, you can use
multiple score parts and use the piece header field to supply a title for each
of the pieces. However, the font is very small. You can either directly put the
markup into the piece=... header field, or better re-define the
scoreTitleMarkup function in the paper section."} }
\score {
\context Staff << { c'1 | R1 } >>
\header{ piece="Piece 1" }
}
\score {
\context Staff << { c'1 | R1 } >>
\header{ piece="Piece 2" }
}
Piece_Header_Formatting.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
