[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making markup functions parametric

From: Urs Liska
Subject: Re: Making markup functions parametric
Date: Fri, 03 Jul 2020 22:18:59 +0200
User-agent: Evolution 3.36.3-1

Hi Robin,

Am Freitag, den 03.07.2020, 22:11 +0200 schrieb Robin Bannister:
> Urs Liska wrote:
> > Unfortunately I don't really have an idea what "#:circle" actually
> > *is*, so I have no clue about getting where I need to.
> I think it's a sort of macro thingy, trying to be easy to be used.
> Look at 'Known issues and warnings' at the bottom of
> So make-circle-markup would be equivalent.

Thanks a lot. That's exactly the kind of procedure I can store and

\version "2.20.0"

#(define-markup-command (dyna layout props func content)(symbol?
      `((box . ,make-box-markup)
        (circle . ,make-circle-markup))))
    (interpret-markup layout props
       ((assq-ref funcs func) content)))))

\markup \dyna #'circle "C:"

\markup \dyna #'box "C:"


> Cheers,
> Robin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]