Re: Piece, to be centered and \Large
This now worked, but for the \fill with showed as "fill", I added therefor a " " in a separate line that took care of the centering. As the pieces were only show as the "Agnus Dei", the last piece, I found out from an earlier missa set with included files that I had to add the \header { piece = "Kyrie (Gloria, Credo, Sanctus, Benedictus, Agnus Dei)" into the score part of each included file. Now everything seems okay. Thanks for your patience Bernhard Am 28.01.2024 um 15:15 schrieb Aaron Hill: On 2024-01-28 6:06 am, Bernhard Kleine wrote: ERROR: In procedure ly:parse-file: In procedure reverse!: Wrong type argument in position 1: ("print-all-headers" . #f) Drat, was hoping I could cheat a bit and use an older version of titling-init.ly as a reference. Obviously something changed so that the code is not correct. Okay, so 2.25.x titling-init.ly should look something like this: scoreTitleMarkup = \markup { \column { \if \should-print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece \fromproperty #'header:opus } } } Just apply the changes to the \fill-line section as you need. -- Aaron Hill
Re: Piece, to be centered and \Large
On 2024-01-28 6:06 am, Bernhard Kleine wrote: ERROR: In procedure ly:parse-file: In procedure reverse!: Wrong type argument in position 1: ("print-all-headers" . #f) Drat, was hoping I could cheat a bit and use an older version of titling-init.ly as a reference. Obviously something changed so that the code is not correct. Okay, so 2.25.x titling-init.ly should look something like this: scoreTitleMarkup = \markup { \column { \if \should-print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece \fromproperty #'header:opus } } } Just apply the changes to the \fill-line section as you need. -- Aaron Hill
Re: Piece, to be centered and \Large
The complete header file raises an error: \version "2.25.7" \language "deutsch" \header { composer = "Ignaz Reimann 1820-1885" title = "Pastoral-Messe in C" subsubtitle = "für gemischten Chor und Orgel, Streicher ad lib." instrument = "" piece = "Kyrie" opus = "op. 110" copyright = "gemeinfrei" tagline = "Bernhard Kleine 2023 für Kirchenchöre St. Nikolaus" } \paper { #(set-paper-size "a4") myStaffSize = #22 property-defaults.fonts.serif = "Comic Sans MS" property-defaults.fonts.sans = "Gill Sans MT" property-defaults.fonts.typewriter = "DejaVu Sans Mono" scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \null \larger \fromproperty #'header:piece \fromproperty #'header:opus } } } } \include "1_Kyrie.ly" \include "2_Gloria.ly" \include "3_Credo.ly" \include "4_Sanctus.ly" \include "5_Benedictus.ly" \include "6_AgnusDei.ly" Error:Starte lilypond.exe 2.25.7 [Ignaz-Reimann-1820-1885-Pastoral-Messe-in-C.ly]... »C:/Users/bk/AppData/Local/Temp/frescobaldi-g2c2_wkj/tmp2ghnhir6/Ignaz-Reimann-1820-1885-Pastoral-Messe-in-C.ly« wird verarbeitet Analysieren... C:/Users/bk/AppData/Local/Temp/frescobaldi-g2c2_wkj/tmp2ghnhir6/Ignaz-Reimann-1820-1885-Pastoral-Messe-in-C.ly:25:18: Fehler: unknown command: `\print-all-headers' \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } C:/Users/bk/AppData/Local/Temp/frescobaldi-g2c2_wkj/tmp2ghnhir6/Ignaz-Reimann-1820-1885-Pastoral-Messe-in-C.ly:25:18: Fehler: falscher Typ für Argument 1; procedure erwartet, "print-all-headers" gefunden \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } ERROR: In procedure ly:parse-file: In procedure reverse!: Wrong type argument in position 1: ("print-all-headers" . #f) Am 28.01.2024 um 14:51 schrieb Bernhard Kleine: Thanks a lot!! Am 28.01.2024 um 13:01 schrieb Aaron Hill: On 2024-01-28 3:44 am, Bernhard Kleine wrote: I am sorry: I can read it having some experience with latex, but I am unable to twist it to my purpose. No worries. One option would be to insert a \null markup so \fill-line has three things it needs to play with (i.e. something to the left, something centered, and something to the right). \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \null \fromproperty #'header:piece \fromproperty #'header:opus } } } }
Re: Piece, to be centered and \Large
Thanks a lot!! Am 28.01.2024 um 13:01 schrieb Aaron Hill: On 2024-01-28 3:44 am, Bernhard Kleine wrote: I am sorry: I can read it having some experience with latex, but I am unable to twist it to my purpose. No worries. One option would be to insert a \null markup so \fill-line has three things it needs to play with (i.e. something to the left, something centered, and something to the right). \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \null \fromproperty #'header:piece \fromproperty #'header:opus } } } } If you do not care about the opus header field, you could just omit it altogether. Then \fill-line only needs to deal with one thing: \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece } } } } Oh, and in your original question you mentioned wanting to adjust font size, so you can do that too: \larger \fromproperty #'header:piece -- Aaron Hill
Re: Piece, to be centered and \Large
On 2024-01-28 3:44 am, Bernhard Kleine wrote: I am sorry: I can read it having some experience with latex, but I am unable to twist it to my purpose. No worries. One option would be to insert a \null markup so \fill-line has three things it needs to play with (i.e. something to the left, something centered, and something to the right). \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \null \fromproperty #'header:piece \fromproperty #'header:opus } } } } If you do not care about the opus header field, you could just omit it altogether. Then \fill-line only needs to deal with one thing: \paper { scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece } } } } Oh, and in your original question you mentioned wanting to adjust font size, so you can do that too: \larger \fromproperty #'header:piece -- Aaron Hill
Re: Piece, to be centered and \Large
I am sorry: I can read it having some experience with latex, but I am unable to twist it to my purpose. Am 28.01.2024 um 09:23 schrieb Aaron Hill: On 2024-01-28 12:09 am, Bernhard Kleine wrote: \header { title = "Pastoral-Messe in C" piece = "Kyrie" } If you take a look at titling-init.ly, you'll see the default definition of scoreTitleMarkup. scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece \fromproperty #'header:opus } } } From this, we can see that piece and opus normally occupy the same line (piece to the left, opus to the right). All you need to do is provide a customized scoreTitleMarkup in your \paper that applies the header fields how you wish. -- Aaron Hill
Re: Piece, to be centered and \Large
On 2024-01-28 12:09 am, Bernhard Kleine wrote: \header { title = "Pastoral-Messe in C" piece = "Kyrie" } If you take a look at titling-init.ly, you'll see the default definition of scoreTitleMarkup. scoreTitleMarkup = \markup { \column { \on-the-fly \print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fromproperty #'header:piece \fromproperty #'header:opus } } } From this, we can see that piece and opus normally occupy the same line (piece to the left, opus to the right). All you need to do is provide a customized scoreTitleMarkup in your \paper that applies the header fields how you wish. -- Aaron Hill
Piece, to be centered and \Large
Setting a multipart missa from several files, I would like to set the piece information more pronounced. The following ist a MWE. \version "2.25.7" \language "deutsch" \header { title = "Pastoral-Messe in C" piece = "Kyrie" } \include "1_Kyrie.ly" %end file"missa.ly" ___ %begin file "1_Kyrie.ly" \header { % title = "Ignaz Reimann, Pastoral-Messe in C" } global = { \key c \major \numericTimeSignature \time 6/8 } solo = ^\markup {\bold { Solo } } soprano = \relative c'' { \global\autoBeamOff % Die Noten folgen hier. R2.*6 R2. R2. g8\solo [(e)] f g4 a8 | } sopranoVerse = \lyricmode { % Liedtext folgt hier. Ky -- ri -- e e -- lei -- son } Sopran = \new Staff = "sopran" \with { midiInstrument = "choir aahs" instrumentName = "Sopran" } << \new Voice = "sop" { \soprano } \new Lyrics \lyricsto "sop" { \sopranoVerse } >> \score { << \Sopran >> \layout { } \midi { \tempo 4=100 } }