lilypond-devel
[Top][All Lists]

## Re: Does \hspace need a vertical extent?

 From: Thomas Morgan Subject: Re: Does \hspace need a vertical extent? Date: Mon, 10 Aug 2009 01:49:08 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Neil Puttock <address@hidden> writes:

> I agree, but I think this will have to wait until the chord naming
> code has been reworked since it appears to rely on \hspace having some
> vertical extent for correct positioning.

I'm not aware of this (though I don't doubt that you're right).
Could you give me an example?

>> but I'd also remove the comment above it:
>> ;; todo: fix negative space
>
> It doesn't look as if it's been fixed; it seems to me the problem is
> (cons amount amount) for negative arguments.

It works in the context of a concat', so I think the problem is some
kind of interaction with word-space'.

This file illustrates it:

\version "2.13.4"

%% Here the negative hspace works just as expected.
\markup {
\column {
\concat { I I I }
\concat { I \hspace #0.9 I I }
\concat { I \hspace #-0.9 I I }
}
}

%% But the negative hspace here has very little effect.
\markup {
\column {
\line { I I I }
\line { I \hspace #0.9 I I }
\line { I \hspace #-0.9 I I }
}
}