[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \repeat for markups?
From: |
Aaron Hill |
Subject: |
Re: \repeat for markups? |
Date: |
Sat, 08 Dec 2018 20:18:38 -0800 |
User-agent: |
Roundcube Webmail/1.3.6 |
On 2018-12-08 7:34 pm, Kieren MacMillan wrote:
Hi all,
Is there a function to repeat markups? Like
\repeat unfold 10 \markup { "foo" }
Just threw this together, although I admit not looking in the LSR for
prior work:
%%%%
\version "2.19.82"
#(define-markup-command
(replicate layout props count args) (number? markup?)
(interpret-markup layout props
#{ \markup { #@(map (lambda (_) args) (iota count)) } #}))
\markup \replicate #4 \box "Hello, World!"
%%%%
-- Aaron Hill