lilypond-user
[Top][All Lists]
Advanced

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

Re: can the leading \markup command be eliminated in a new markup comman


From: David Kastrup
Subject: Re: can the leading \markup command be eliminated in a new markup command?
Date: Tue, 13 Mar 2018 08:51:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Kieren MacMillan <address@hidden> writes:

> Hi all,
>
> Sorry if this is a silly question… but can this function be modified such 
> that the user can use
>
>     { c''^\cue #"This is the cue." }
>
> instead of
>
>     { c''^\markup \cue #"This is the cue." }
>

%%%  SNIPPET BEGINS
\version "2.19.80"

cue =
#(define-event-function (text) (markup?)
  #{ ^\markup \bold #text #})

{ c''\cue "This is the cue." }
%%%  SNIPPET ENDS

If you don't want to bake the direction in, use - instead of ^ .

-- 
David Kastrup



reply via email to

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