On 3 July 2010 10:00, -Eluze <[email protected]> wrote:
>
> in the snippet below i expected the markup to be shifted too - shouldn't it

No.  The markup isn't attached to the notehead; it's attached to the
paper column for the first beat.  This allows 'keep-inside-line to
work properly.

> and how can you achieve that? - i dislike the solution using  \override
> TextScript #'X-offset = #5

Quick hack (works best with default 'self-alignment-X):

\once \override TextScript #'after-line-breaking =
#(lambda (grob)
   (set! (ly:grob-parent grob X)
         (ly:grob-array-ref
          (ly:grob-object
           (ly:grob-parent grob X)
          'elements)
         0)))

Better:

http://lilypond.org/doc/v2.13/Documentation/snippets/text#centering-markup-on-note-heads-automatically

Cheers,
Neil

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to