Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Jean Abou Samra
Le mardi 09 mai 2023 à 08:14 +, Werner LEMBERG a écrit : > Yes, evaluated, sorry. It is evaluated when baz is executed. ``` (define (foo bar) (define (baz) (if bar "yes" "no")) (set! bar #t) (baz)) (foo #f) ⇒ "yes" ``` signature.asc Description: This is a digitally signed mess

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Werner LEMBERG
>> >> D'oh, this should be >> >> ``` >> (define (foo bar) >>   (define (baz) >>     ... >>     (if bar)    ; Is 'bar' visible here?  If yes, when is >>   ...   ; 'bar' expanded?  At the time 'baz' is >>     ; defined? At the time 'baz' is executed? >> ``` > > I do

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread dfro
On 5/9/23 03:22, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : Jean, I think \translate-scaled will work for me! This is a wonderful tool.  In the following example, \concat allows me to get the symbols closer together. The -.2 values for x in /translate-scaled o

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread dfro
On 5/9/23 03:22, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : Jean, I think \translate-scaled will work for me! This is a wonderful tool.  In the following example, \concat allows me to get the symbols closer together. The -.2 values for x in /translate-scaled o

Re: Need help using math in markup command definition, and a feature request.

2023-05-09 Thread Jean Abou Samra
Le lundi 08 mai 2023 à 22:55 -0400, dfro a écrit : > > Jean, > > I think \translate-scaled will work for me! This is a wonderful tool.  In the > following example, \concat allows me to get the symbols closer together. The > -.2 values for x in /translate-scaled on the third \markup example d

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Jean Abou Samra
Le mardi 09 mai 2023 à 04:26 +, Werner LEMBERG a écrit : > > D'oh, this should be > > ``` > (define (foo bar) >   (define (baz) >     ... >     (if bar)    ; Is 'bar' visible here?  If yes, when is >   ...   ; 'bar' expanded?  At the time 'baz' is >     ; defin

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Werner LEMBERG
> BTW, I suggest to cover one more issue with local variables, namely > whether arguments to a function are seen in sub-functions, which are > IMHO a very good addition to `let` and `let*` to write clean and > readable code – often much more readable than anonymous lambda > expressions. > > Examp

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Werner LEMBERG
> Second, you need to use `let` here, not `define`. See > > https://extending-lilypond.gitlab.io/en/scheme/local-variables.html BTW, I suggest to cover one more issue with local variables, namely whether arguments to a function are seen in sub-functions, which are IMHO a very good addition to `l

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread dfro
On 5/8/23 21:06, Jean Abou Samra wrote: Le lundi 08 mai 2023 à 20:55 -0400, dfro a écrit : Fellow music engravers, I have a feature request. Perhaps, this has been discussed already. Sometimes, I would like the spacial formatting in a \markup command to respond to changes in fontsize, so th

Re: Need help using math in markup command definition, and a feature request.

2023-05-08 Thread Jean Abou Samra
Le lundi 08 mai 2023 à 20:55 -0400, dfro a écrit : > Fellow music engravers, > > I have a feature request. Perhaps, this has been discussed already. > > Sometimes, I would like the spacial formatting in a \markup command to > respond to changes in fontsize, so that all of the \markup spacing wil

Need help using math in markup command definition, and a feature request.

2023-05-08 Thread dfro
Fellow music engravers, I have a feature request. Perhaps, this has been discussed already. Sometimes, I would like the spacial formatting in a \markup command to respond to changes in fontsize, so that all of the \markup spacing will change proportional to the change in fontsize. I think havi