I have markup extension to create custom linked markup. The function is, shown below:
(define-markup-command (refer layout props ts) (number?)
(interpret-markup layout props
(markup #:with-url (format #f "~a&t=~a" baseURL ts) "ref")))
This works fine when invoked by a music function inside a score. I was hoping to be able to include linked text inside standard markup — not inside a score.
I had assumed that I could simply do:
\markup \refer 2 4
But that produced error messages.
What am I not understanding?
\markup\refer #2
.