Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread David Kastrup
Jan-Peter Voigt 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

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Risto Vääräniemi
Whoa! I would have never found that out by myself. :) Thanks Urs & Jan-Peter. I have to check the Scheme link, too. BR, Risto On 26 July 2018 at 10:40, Jan-Peter Voigt wrote: > Hi Risto, > > you might go this way: > > lineThickness = 5 > \markup \override #`(thickness . ,lineThickness)

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Jan-Peter Voigt
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 (,) HTH Jan-Peter Am 26.07.2018 um 09:35 schrieb Risto

Re: Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Urs Liska
Am 26.07.2018 um 09:35 schrieb Risto Vääräniemi: Hi, I tried the following: lineThickness = 5 \markup \override #'(thickness . #lineThickness) \draw-hline But it seems I cannot give the variable inside the pair. This works: lineThicknessPair = #'(thickness . 5) \markup \override

Is it possible to replace a number with variable inside a pair?

2018-07-26 Thread Risto Vääräniemi
Hi, I tried the following: lineThickness = 5 \markup \override #'(thickness . #lineThickness) \draw-hline But it seems I cannot give the variable inside the pair. This works: lineThicknessPair = #'(thickness . 5) \markup \override #lineThicknessPair \draw-hline Is there any way to make it