[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to replace a number with variable inside a pair?
From: |
David Kastrup |
Subject: |
Re: Is it possible to replace a number with variable inside a pair? |
Date: |
Thu, 26 Jul 2018 10:28:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Jan-Peter Voigt <address@hidden> writes:
> Hi Risto,
>
> you might go this way:
>
> lineThickness = 5
> \markup \override #`(thickness . ,lineThickness) \draw-hline
>
> That is semi-quote the pair with ` (instead of ') and then "unquote" the
> variable to retrieve the value with a comma (,)
Which is equivalent to
\markup \override #(cons 'thickness lineThickness) \draw-hline
Either will create a pair at "runtime" rather than directly in the
"Scheme reader" which does not access variables but rather creates
symbols when given an identifier.
--
David Kastrup