lilypond-user
[Top][All Lists]
Advanced

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

Re: variable in markup possible?


From: Noeck
Subject: Re: variable in markup possible?
Date: Thu, 12 Feb 2015 12:40:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Ole,

> Is it possible to use a variable inside a markup

Yes. With two modifications to your code:
1. The definition of def must be a markup (insert \markup before the 
\center-column)
2. You have to call a variable with a backslash (\def).
The definitions of a variable is: var = …
The usage of a variable is: \var


def = \markup \center-column {
  \combine
  \draw-line #'(0 . 6)
  \arrow-head #Y #DOWN ##f
}

{ c1^\markup {\def} }

Cheers,
Joram



reply via email to

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