|
From: | Jean Abou Samra |
Subject: | Re: oddHeaderMarkup |
Date: | Sun, 19 Mar 2023 09:28:48 +0100 |
User-agent: | Evolution 3.46.4 (3.46.4-1.fc37) |
Le dimanche 19 mars 2023 à 03:00 +0200, Dimitri Sykias a écrit :
Lilypond v. “2.24.1”. I use “oddHeaderMarkup” and “evenHeaderMarkup”. I want to change the font size of header, but “\fontsize #-1.0” does nothing. How can I achieve this? Thanks!
oddHeaderMarkup = \markup
\fill-line {
" "
\on-the-fly #part-not-first-page \fontsize #-1.0 \fromproperty #'header:subtitle
\if \should-print-page-number \fromproperty #'page:page-number-string
}
evenHeaderMarkup = \markup
\fill-line {
\if \should-print-page-number \fromproperty #'page:page-number-string
\on-the-fly #part-not-first-page \fontsize #-1.0 \fromproperty #'header:subtitle
" "
}
For me, this works just fine:
\version "2.24.1"
\paper {
oddHeaderMarkup = \markup
\fill-line {
" "
\unless \on-first-page-of-part \fontsize #-1 \fromproperty #'header:subtitle
\if \should-print-page-number \fromproperty #'page:page-number-string
}
evenHeaderMarkup = \markup
\fill-line {
\if \should-print-page-number \fromproperty #'page:page-number-string
\unless \on-first-page-of-part \fontsize #-1 \fromproperty #'header:subtitle
" "
}
}
\header {
subtitle = "ABC"
}
{ c' \pageBreak c' }
Note that in the example you give, you are mixing 2.22 syntax (\on-the-fly #part-not-first-page
, which should be \on-the-fly #not-part-first-page
by the way) with 2.24 syntax (\if \should-print-page-number
).
Regards,
Jean
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] | Current Thread | [Next in Thread] |