Re: How to store lengths in variables

2017-12-12 Thread Jan-Peter Voigt
Hi David, thank you! Am 12.12.2017 um 15:14 schrieb David Kastrup: Why not just \paper { #(for-each (lambda (p) (ly:parser-define! (car p) (primitive-eval (cdr p paper-values) } or some suitably similar wrapper? Jan-Peter \version "2.19.80" % store the va

Re: How to store lengths in variables

2017-12-12 Thread David Kastrup
Urs Liska writes: > Thank you. While I had to figure out how to adapt this to 2.18 I > realized that the missing information was that I can turn the symbol > "cm" into a value through ly:parser-lookup. > > This works with 2.18, and I will further refine it (the idea is to > store several sets of

Re: How to store lengths in variables

2017-12-12 Thread Urs Liska
Hi Jan-Peter, Am 12.12.2017 um 14:15 schrieb Jan-Peter Voigt: Hi Urs, as you already said units are only known inside the paper block, because they are dependent of the paper size an the global staff size. Inside the paper block the units are just numbers. If you want to multiply numbers yo

Re: How to store lengths in variables

2017-12-12 Thread Jan-Peter Voigt
Hi Urs, as you already said units are only known inside the paper block, because they are dependent of the paper size an the global staff size. Inside the paper block the units are just numbers. If you want to multiply numbers you can do so outside the paper block like this: xx = 2 yy = 3\xx