[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: conditional markup
From: |
David Kastrup |
Subject: |
Re: conditional markup |
Date: |
Sun, 15 Jun 2014 14:26:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Orm Finnendahl <address@hidden> writes:
> Hi,
>
> Am Samstag, den 14. Juni 2014 um 16:56:36 Uhr (+0200) schrieb David Kastrup:
>> Notice the - before the markup, turning this into a post-event.
>
> Thanks, that was the missing link. I had tried define-event-function
> and got stuck as it appeared to be pre-event.
>
> BTW: This meaning of the error message is unclear to me:
>
>> > Parsing...
>> > /tmp/markup-def.ly:11:20: error: music function cannot return
>> > (#<procedure line-markup (layout props args)> (Test))
>> > \relative c' { a'^
>> > \sMarkup "Test" }
>
> Does it complain, that a music function cannot return at all or that
> it should return something different from a procedure?
Would you have preferred
/usr/local/tmp/lilypond/out/bin/lilypond orm.ly
GNU LilyPond 2.19.8
Processing `orm.ly'
Parsing...
orm.ly:11:20: error: music function cannot return \markup \line { "Test"}
\relative c' { a'^
\sMarkup "Test" }
orm.ly:11:20: error: post-event expected
\relative c' { a'^
\sMarkup "Test" }
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `orm.ps'...
Converting to `./orm.pdf'...
fatal error: failed files: "orm.ly"
--
David Kastrup