lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using if variable in lilypond


From: Thomas Morley
Subject: Re: using if variable in lilypond
Date: Thu, 29 Nov 2012 12:24:44 +0100

2012/11/29 Stjepan Horvat <address@hidden>:
> hi guys..
> i would want to define my font sizes in the next order:
>
> \header {
>         title = \markup { \fontsize #+4   "BEI MIR BIST DU SCHÖN"}
>         subtitle =      \markup { \fontsize #+1   "(Yiddish: Bay mir bistu 
> sheyn)"      }
>         poet =  \markup { \fontsize #+1   "Jacob Jacobs"        }
>         composer =      \markup { \fontsize #+1   "Sholom Secunda"}
> }
>
> so i would want to make a config out of it so i woudn't always have to
> add the extra text..
> i used something like that in external config.ly:
>
> title = \markup { \fontsize #+4 \title }
> and so on..
>
> but that only works if i include the config file after the header and
> if all sub header name exist..
>
> my question:
> is there a posibility to make something like that.
>
> if ( title exists ):
>   title = \markup { \fontsize #+4 \title }
>
> thanks..:)
> p.s. is there an way to learn that stuff (sheme) without always asking
> you guys..?!
> i'm familiar with bash, perl and python..is it posible to integrate
> thouse lenguage into lilypond?!
>
>
> --
> Nesmotren govori kao da mačem probada, a jezik je mudrih iscjeljenje.
> Izreke 12:18
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Stjepan,

have a look in titling-init.ly, there you can find the default
settings in bookTitleMarkup.
If you want to choose different settings create a new one,
myBookTitleMarkup, include it in your file and call it in paper:

\paper {
        bookTitleMarkup = \myBookTitleMarkup
}

HTH,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]