I would like to create a shorthand for a compound markup command, say MVE
#(define-markup-command (shorthand layout props text) (number-or-markup?) (interpret-markup layout props #{ \markup \bold \italic #text #}))
However, this errors out with "error: not a markup" when passed a number. How would I type-coerce the argument into markup?
- Adding a nested
\markup
is "unexpected". \simple
only takes strings to begin with.- Yes I know passing
"number"
avoids the issue but it's not ergonomic.