On Thu, 10 Jan 2019 at 10:28, Aaron Hill <lilyp...@hillvisions.com> wrote:

> On 2019-01-10 12:59 am, Gianmaria Lari wrote:
> > How I can align "etc." with chords in this code?
> >
> > \version "2.19.82"
> > \score {
> >   \new PianoStaff <<
> >         \new ChordNames \chordmode {d2:m a2:m \mark"etc"}
> >         \new Staff {b2 c'2 b2 c'2}
> >   >>
> > }
>
> You need to push the RehearsalMark to the right, otherwise it'll have to
> be offset vertically.
>
> %%%%
> \version "2.19.82"
> << \new ChordNames \chordmode { d2:m a2:m
>       \override Score.RehearsalMark.self-alignment-X = #-1
>       \override Score.RehearsalMark.Y-offset = #0
>       \mark \markup \italic "etc." }
>     \new Staff {b2 c'2 b2 c'2} >>
> %%%%
>
> Here is another way to achieve what you want without messing with
> RehearsalMarks:
>
> %%%%
> \version "2.19.82"
> << \new ChordNames \chordmode { d2:m a2:m
>       \once \override ChordName.text =
>         \markup \roman \italic "etc." c1 }
>     \new Staff {b2 c'2 b2 c'2} >>
> %%%%
>
> Note that this requires a dummy ChordName, but it guarantees that it
> will line up properly with other elements.
>

great!! Thank you Aaron!
g.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to