lilypond-user
[Top][All Lists]
Advanced

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

Re: TextLine context


From: David Kastrup
Subject: Re: TextLine context
Date: Mon, 16 Dec 2013 17:47:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Kieren MacMillan <address@hidden> writes:

> Hello again,
>
> Here’s what I’ve cobbled together, with no real understanding of what these 
> things actually do…  ;)
>
> \layout {
>   \context {
>     \type "Engraver_group"
>     \name "TextLine"
>     \consists "Collision_engraver"
>     \consists "Axis_group_engraver"
>     \consists "Separating_line_group_engraver"
>     \consists "Text_spanner_engraver"
>     \consists "Text_engraver"
>     \override TextScript.baseline-skip = #2.25
>   }
>   \context {
>     \Score
>     \accepts TextLine
>   }
> }
>
> Seems to work reasonably well, with one exception [so far]: it takes up 
> vertical space even when there’s nothing in the context.
> How can I get it to “hara-kiri” when it’s empty? (n.b., I couldn’t
> find a hara-kiri-engraver or similar anywhere…)

It's folded into Axis_group_engraver, so you just need to set
remove-empty and remove-first to ##t.

-- 
David Kastrup



reply via email to

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