[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-bug
Subject: Re: Wrong alignment in markup
From: David Kastrup <dak () gnu ! org>
Date: 2012-10-15 13:04:34
Message-ID: 877gqropi5.fsf () fencepost ! gnu ! org
[Download RAW message or body]
Daniel Berjón <asuranceturix@gmail.com> writes:
>> I'm not top posting.
>
> %When combining text with dynamics, right- or center-align do not seem to work
> %properly (or I am not writing the right code); in default left-align mode, the
> %space between dynamic and text is correct, but in the other two the dynamic is
> %placed too far right:
> \version "2.16.0"
>
> \relative c'' {
> a a a a |
> a_\markup {
> \right-align
> {
> sempre
> \dynamic f
> }
> } a a a
> }
> %If the dynamic is placed before the text, the problem is even worse and they
> %collide.
You are not writing the right code. \right-align takes a list of
markups and pads them on the left until they have the same width.
After doing that, you pack the aligned markups into a single line (the
default when packing a markup list into \markup). Do it the other way
round:
\relative c'' {
a a a a |
a_\markup
\right-align \line
{
sempre
\dynamic f
}
a a a
}
--
David Kastrup
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic