Richard Shann <[email protected]> writes:

> On Thu, 2026-08-13 at 18:19 +0100, Richard Shann wrote:
>> On Thu, 2026-08-13 at 18:49 +0200, David Kastrup wrote:

>> > 
>> > #(define-markup-command (medium layout props arg) (markup?)
>> >   (interpret-markup layout props
>> >    #{ \markup \normal-weight arg #}))
>> 
>> Thanks! That did the trick:
>
> It seems I blundered testing this - the suggested code typesets the
> word "arg":

Argh!!!

> %%%%%%%%%%%%%%%%%%%%%%%%%
> \version "2.26.0"
>
> #(define-markup-command (medium layout props arg) (markup?)
>   (interpret-markup layout props
>    #{ \markup \normal-weight arg #}))
>
> {c''-\markup {"default text" \italic "italic text" \medium "medium
> text"}   }
>
> %%%%%%%%%%%%%%%%%%%%%%%%%
>
> But it seems you need $arg to reference it:

Correct would be #arg here.  $arg is more iffy.  Sorry for that.

-- 
David Kastrup

Reply via email to