]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/nonmusic/modifying-default-font-properties-for-piece-titles.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / input / lsr / nonmusic / modifying-default-font-properties-for-piece-titles.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 If you have multiple pieces (e.g. Kyrie, Gloria, Credo, etc. in masses)
6 in a large work, you can use multiple \score parts and use the piece
7 header field to supply a title for each of the pieces. However, the
8 font is very small. You can either directly put the markup into the
9 piece=... header field, or better re-define the scoreTitleMarkup
10 function in the \paper section.
11 " }
12
13 \header {
14   title = "Formatting of piece headers"
15 }
16 \paper {
17   scoreTitleMarkup = \markup { \column {
18    \on-the-fly #print-all-headers { \bookTitleMarkup \hspace #1 }
19     \fill-line {
20       \fontsize #3 \bold \fromproperty #'header:piece
21       \fromproperty #'header:opus
22     }
23   }}
24 }
25
26 \markup { \fill-line { 
27 \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."} }
28
29 \score { 
30   \context Staff << { c'1 | R1 } >>
31   \header{ piece="Piece 1" }
32 }
33
34 \score { 
35   \context Staff << { c'1 | R1 } >>
36   \header{ piece="Piece 2" }
37 }
38