[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define-markup-function problem
From: |
Carl D. Sorensen |
Subject: |
Re: define-markup-function problem |
Date: |
Wed, 28 Jan 2009 15:50:56 -0700 |
Jonathan,
Please don't write a patch. I'm currently working on a revision to NR6, so
I'll take care of it.
Kieren,
Your original code looked like this:
#(define-markup-command (test layout props stringA stringB) (string?
string?)
(interpret-markup layout props
(markup #:column (cons stringA stringB))))
\markup \test #"one" #"two"
Please note that (cons stringA stringB) is NOT the same as
(stringA stringB).
Instead, it's (stringA . stringB), which is NOT a list, but a pair.
The function needs a list as an argument, and you eliminated the list with
the cons call.
Please try your original code again, with (list stringA stringB) instead of
(cons stringA stringB).
Thanks,
Carl
- Re: define-markup-function problem,
Carl D. Sorensen <=