Re: top-level markup in Scheme

2022-05-13 Thread Jean Abou Samra
Le 13/05/2022 à 15:30, Valentin Petzel a écrit : Hello Werner, if you intend to create Markup- or Score-Section from Scheme you might want to directly invoke (add-text some-markup) and (add-score some-score). This would allow you to cleanly handle stuff like inserting multiple markups and

Re: top-level markup in Scheme

2022-05-13 Thread Valentin Petzel
Hello Werner, if you intend to create Markup- or Score-Section from Scheme you might want to directly invoke (add-text some-markup) and (add-score some-score). This would allow you to cleanly handle stuff like inserting multiple markups and scores at the same time from a bit of scheme code.

Re: top-level markup in Scheme

2022-05-13 Thread Werner LEMBERG
>> On the other hand, a LilyPond input file containing only >> >> ``` >> #(make-italic-markup "foo") >> ``` >> >> prints nothing. I now wonder how I can modify the latter to make >> it actually work – what is the 'appropriate hook'? > > s/#/$ This did the trick, thanks! Reading the

Re: top-level markup in Scheme

2022-05-13 Thread Jean Abou Samra
> Le 13 mai 2022 à 11:44, Werner LEMBERG a écrit : > >  >>> What is the Scheme equivalent to a top-level markup like >>> >>> ``` >>> \markup \italic "foo" >>> ``` >>> >>> ? I can't find it in the documentation. >> >> I am not a fan of the markup macro, but of course >> >>

Re: top-level markup in Scheme

2022-05-13 Thread Werner LEMBERG
>> What is the Scheme equivalent to a top-level markup like >> >> ``` >> \markup \italic "foo" >> ``` >> >> ? I can't find it in the documentation. > > I am not a fan of the markup macro, but of course > > (make-italic-markup "foo") > > will also work. Thanks. > It is not clear what you mean

Re: top-level markup in Scheme

2022-05-13 Thread David Kastrup
Werner LEMBERG writes: > What is the Scheme equivalent to a top-level markup like > > ``` > \markup \italic "foo" > ``` > > ? I can't find it in the documentation. \void \displayScheme \markup \italic "foo" outputs (markup #:italic "foo") I am not a fan of the markup macro, but of course

top-level markup in Scheme

2022-05-13 Thread Werner LEMBERG
What is the Scheme equivalent to a top-level markup like ``` \markup \italic "foo" ``` ? I can't find it in the documentation. Werner