Hi List, hi Schemers,
I'm currently working on finding new tools to ease drawings with the 'path' command.
I already found some nice ones that helped me to create new drawings and enhanced old snippets.
That's what I've done here:
http://lsr.di.unimi.it/LSR/Item?id=904However, I'm not satisfied with the code I'm using there; here's roughly how it's working:
\version "2.18.2"
%% hereunder works fine:
#(define-markup-command (smiley layout props smiley-choice)
(number?)
(interpret-markup layout props
(case smiley-choice
((1)
#{
\markup "A"
#})
((2)
#{
\markup "smile"
#})
(else
#{
\markup
\null
#})
)))
%% Test:
\markup\column {
\smiley #1
\smiley #2
\smiley #10
}