lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Markup command trouble


From: David Kastrup
Subject: Re: Markup command trouble
Date: Mon, 25 Jul 2022 16:35:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Simon Albrecht <simon.albrecht@mail.de> writes:

> Dear list,
>
> I wanted to define a markup command for easy switchable styling of
> text and ran into an issue which seems hard to understand:
>
> %%%%%%%%%%%%
> \version "2.23.9"
>
> spanish = \markup\italic \etc
>
> \markup \column {
>   \spanish \justify { test }
> }
> %%%%%%%%%%%%
>
> => “error: not a markup”
>
> My understanding would have been that \justify returns a list of
> markups and the \spanish command, as if I had just used \italic
> directly, should act on all elements of that list. What did I get
> wrong? Is it just me or should that be made more predictable, if
> possible?

You probably meant

\markup spanish = \markup \italic \etc

which defines a markup command.  The way you wrote it, \spanish is just
a scheme function that happens to return the internals of a markup
command definition.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]