Am Sa., 31. Okt. 2020 um 16:30 Uhr schrieb John Schlomann
<[email protected]>:
>
> In the following snippet, the first markup works fine. The second gives no 
> errors, but outputs nothing.
>
>
>
> Why does the scheme version not work?
>
>
>
> \version "2.20.0"
>
> \markup{"First markup"}
>
> #(markup #:line (#:simple "Second markup"))
>
>
>
> Thanks,
>
> John
>
>

To have LilyPond do something with #(markup ...) you need to explain
to LilyPond _what_ to do with it".

Martin's example embeds it in a music expression. -> Initiate a TextScript-grob

You can store and call it like:
foo = #(markup #:line (#:simple "Second markup"))
\foo
It is called at top level. -> Create top level text

Directly and on top level you could do:
$(markup #:line (#:simple "Second markup"))
Directly evaluate the expression (here at top level). -> Create top level text

HTH,
  Harm

Reply via email to