lilypond-user
[Top][All Lists]
Advanced

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

Re: how to make text spanner not sticking out to the right


From: Pierre Perol-Schneider
Subject: Re: how to make text spanner not sticking out to the right
Date: Mon, 26 Jan 2015 11:38:36 +0100

Try:

\version "2.19.15"

\relative c' {
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
  \once \override TextSpanner.bound-details.left.text = "rit."
  \once \override TextSpanner.bound-details.right.text = "a tempo"
  \once \override TextSpanner.bound-details.right.attach-dir = #-6
    f4\startTextSpan f f f\stopTextSpan
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
}


Pierre

2015-01-26 10:59 GMT+01:00 Werner LEMBERG <address@hidden>:

Consider the following snippet.

  \relative c' {
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
  \once \override TextSpanner.bound-details.left.text = "rit."
  \once \override TextSpanner.bound-details.right.text = "a tempo"
    f4\startTextSpan f f f\stopTextSpan
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
    f4 f f f |
  }

As can be seen, lilypond (version 2.19.15-1-171-ge86b2ea) makes a very
unfortunate layout decision so that the `a tempo' sticks out to the
right.

For text scripts and lyrics there is the
`Score.PaperColumn.keep-inside-line' property, which avoids similar
effects.  Obviously, this doesn't affect TextSpanner grobs, thus my
question: How can I make the `a tempo' stay horizontally within the
staff?


    Werner


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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