|
From: | Marc Hohl |
Subject: | Re: markup? and number? |
Date: | Fri, 07 Feb 2014 18:37:40 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 04.02.2014 16:07, schrieb Kevin Patrick Barry:
Can you please post what you have achieved so far? It's hard to guess without seeing your code. MarcSorry for the slow reply. A small example of what I am trying follows: #(define-markup-command (sus layout props args) (markup-list?) (interpret-markup layout props #{ \markup \concat { \fontsize #-2 \number #(car args) \raise #0.7 \draw-line #(cons (cddr args) 0) \fontsize #-2 \number #(cadr args) } #} ))
I just grepped through the code and found out that number-or-markup? is already defined. SO you can use it like this: #(define-markup-command (sus layout props num-or-markup) (number-or-markup?) (interpret-markup layout props (if (number? num-or-markup) -- stuff for numbers -- -- stuff for markup -- ))) HTH, Marc
[Prev in Thread] | Current Thread | [Next in Thread] |