Re: wordwrap on argument of markup function
Thanks for elaborating! I forgot to hit Reply All when I replied to Jean, excuse me. On 02.06.24 10:10, Ya Gloops wrote: #(define-markup-command (freely layout props width-param text) (number? markup-list?) "Format text for one bar of 'width-param' quarter notes’ length" (interpret-markup layout props #{\markup\box \line { \override #`(line-width . ,width-param) \wordwrap { #text }} #})) \markup \freely #10 { test test test test test test } Le samedi 1 juin 2024 à 17:55:22 UTC+2, Jean Abou Samra a écrit : > (define-markup-command (freely layout props width-param text) (number? markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the command is working perfectly (though not actually needed), but \freely gets applied multiple times. HTH Jean
Re: wordwrap on argument of markup function
#(define-markup-command (freely layout props width-param text) (number? markup-list?) "Format text for one bar of 'width-param' quarter notes’ length" (interpret-markup layout props #{\markup\box \line { \override #`(line-width . ,width-param) \wordwrap { #text }} #})) \markup \freely #10 { test test test test test test } Le samedi 1 juin 2024 à 17:55:22 UTC+2, Jean Abou Samra a écrit : > (define-markup-command (freely layout props width-param text) (number? > markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the command is working perfectly (though not actually needed), but \freely gets applied multiple times. HTH Jean
Re: wordwrap on argument of markup function
> (define-markup-command (freely layout props width-param text) (number? > markup?) ^^^ Make that `markup-list?`. Otherwise, your command is accepting only a single markup. In your example, \line inside the command is working perfectly (though not actually needed), but \freely gets applied multiple times. HTH Jean signature.asc Description: This is a digitally signed message part
wordwrap on argument of markup function
Hello kind community folk, how do I make \wordwrap act correctly on the argument to this markup function? And why does \line not make \box act on the markup as a whole, as it is said to do? Best, Simon \version "2.25.14" #(define-markup-command (freely layout props width-param text) (number? markup?) "Format text for one bar of 'width-param' quarter notes’ length" (interpret-markup layout props #{\markup\box \line { \override #'(line-width . 10) \wordwrap { #text }} #})) \markup\freely #1 { test test test test test test } document.pdf Description: Adobe PDF document