[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define-markup-function problem
From: |
Kieren MacMillan |
Subject: |
Re: define-markup-function problem |
Date: |
Wed, 28 Jan 2009 10:11:21 -0500 |
Hello all,
Ignore previous post… I figured it out!
For those who will find this in the future, the offending line
(markup #:column (cons stringA stringB))))
needs to be
(markup (#:column (stringA stringB)))))
In plain terms, the specific markup function — in this case, #:column
— apparently needs to be "listed in" with the function parameters.
The proper (test) function is thus
#(define-markup-command (test layout props stringA stringB) (string?
string?)
(interpret-markup layout props
(markup (#:center-column (stringA stringB)))))
Hope this saves someone else some hairpulling!
Kieren.
p.s. Is there any way that this could be better explained in the
docs? The examples on
<http://lilypond.org/doc/v2.12/Documentation/user/lilypond/
Markup-construction-in-Scheme#Markup-construction-in-Scheme>
seem to suggest that my first attempt should be fine.