lilypond-user
[Top][All Lists]
Advanced

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

Re: Getting an override into a markup function


From: Malte Meyn
Subject: Re: Getting an override into a markup function
Date: Fri, 25 Sep 2015 12:28:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0



Am 25.09.2015 um 10:58 schrieb Urs Liska:
{
   \override TextScript.self-alignment-X = #LEFT
   c'2 ^\markup \rotate #90 "This is a long markup" c
}


You could use an event function:

%%%%%
\version "2.19.27"

verticalText =
#(define-event-function (text) (markup?)
   #{
     -\tweak TextScript.self-alignment-X #LEFT
     -\markup \rotate #90 #text
   #})

{
  c'2^\verticalText \markup \italic "This is a long markup" c
  c'2\verticalText "This is a long text" c
}
%%%%%



reply via email to

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