[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with a 2-argument markup command definition
From: |
David Kastrup |
Subject: |
Re: Help with a 2-argument markup command definition |
Date: |
Sat, 19 Nov 2011 18:03:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Robert Schmaus <address@hidden> writes:
> Ok, how about this example then:
>
> \version "2.14.2"
>
> #(define-markup-command (jcRaise layout props jcText) (markup?)
> (interpret-markup layout props
> (markup #:raise 1.5 #:smaller #:smaller #:smaller jcText )
> )
> )
>
> #(define-markup-command (jcStack layout props jcHi jcLo) (markup?
> markup?)
> (interpret-markup layout props
> #{ \markup{ $jcHi $jcLo } #}
> )
> )
>
>
> \relative c'' {
>
> % fine:
> c1-\markup{\jcRaise "XXX"}
>
> % those two don't work:
> c1-\markup{ \jcStack{"x"}{"y"} }
> c1-\markup{ \jcStack "x" "y" }
> }
>
> The definition of \jcRaise works fine. Of course, the definition of
> \jcStack will be different later, for now, I'd just like it to work in
> this simple example.
> Sorry for the confusion ...
For my version of Lilypond (admittedly a recent one), the _second_ of
the two calls of \jcStack works. The _first_ one doesn't, as you don't
give markups but rather markup lists to \jcStack.
--
David Kastrup