lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing all titles in one place?


From: Wilbert Berendsen
Subject: Re: Changing all titles in one place?
Date: Thu, 24 Dec 2009 10:17:34 +0100
User-agent: KMail/1.12.2 (Linux/2.6.31-16-generic; KDE/4.3.2; i686; ; )

Op donderdag 24 december 2009 schreef Dmytro:

> So... This, please see below, does not work, i don't know why either:
> 
> % -------------------
> localComposerFont = #"AntiquaPSCyr Italic"
> 
> #(define-markup-command (Composer layout props word) (string?)
>   (interpret-markup layout props
>     (markup
>       #:larger
>       #:override '(font-name . localComposerFont)
>       #:italic
>         word)))
> % -------------------

It doesn't work because the override pair is quoted (localComposerFont is 
regarded as a symbol instead of a variable referring to a string).

The following works:

localComposerFont = #"AntiquaPSCyr Italic"

% -------------------
#(define-markup-command (Composer layout props word) (string?)
  (interpret-markup layout props
    (markup
      #:larger
      #:override (cons 'font-name localComposerFont)
      #:italic
      word)))
% -------------------
\header {
  composer = \markup \Composer #"Fill me!"
}


best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/
Nederlands LilyPond forum: http://www.lilypondforum.nl/




reply via email to

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