On 10/2/07, Palmer, Ralph <[EMAIL PROTECTED]> wrote:
> Greetings -
>
> I'm running LilyPond 2.11.23 under Windows XP Pro, SP2.
>
> I'm having a problem with a markup vs. a TextSpanner. In the snippet,
> the markup:
> (One stand opt.8va)
> is above the spanner if I do not move the markup. I'd like to have the
> markup appear below the spanner. Can anyone point me in the right
> direction? Perhaps the correct #'extra-offset command or qualifier for
> the TextSpanner?
>
> Thanks for your help.
>
> % Snippet %%
>
>
> \version "2.11.23"
> \include "english.ly"
>
> Test = {
> \key c \major
> \clef "G"
> \time 3/4
>
> d''8[ g''] bf''
> \textSpannerUp \override TextSpanner #'bound-details #'left
> #'text = \markup\italic {"(Opt. 8va) "}
> \override TextSpanner #'bound-details #'right #'text = \markup {
> \draw-line #'(0 . -1) }
> d''4--\upbow\startTextSpan( g''8--) |
> \time 4/4
> bf''4 g'' a''2~ |
> a''2.~\<_\markup\italic{"molto rit."} a''8. a'16\!\stopTextSpan
> |
> \textSpannerUp \override TextSpanner #'bound-details #'left
> #'text = \markup\italic {"(One stand opt. 8va) "}
> \override TextSpanner #'bound-details #'right #'text = \markup {
> \draw-line #'(0 . -1) }
> \once\override TextScript #'extra-offset = #'( 0 . -2 )
> cs''1~^\markup\italic{"bow freely, staggering
> bows"}\downbow\startTextSpan\> |
> cs''1~ |
> cs''1~\fermata |
> cs''8\stopTextSpan\! r8 r4 r2 |
> \bar "|."
> }
>
> \Score
> {
> \Test
> }
>
>
> End Snippet %%
Hi Ralph,
outside-staff-priority is your friend:
%%% BEGIN %%%
\version "2.11.33"
\include "english.ly"
Test = {
\key c \major
\clef "G"
\time 3/4
d''8[ g''] bf''
\textSpannerUp \override TextSpanner #'bound-details #'left #'text =
\markup\italic {"(Opt. 8va) "}
\override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
d''4--\upbow\startTextSpan( g''8--) |
\time 4/4
bf''4 g'' a''2~ |
a''2.~\<_\markup\italic{"molto rit."} a''8. a'16\!\stopTextSpan
|
\textSpannerUp
\override TextSpanner #'outside-staff-priority = #500
\override TextScript #'outside-staff-priority = #100
\override TextSpanner #'bound-details #'left #'text =
\markup\italic {"(One stand opt. 8va) "}
\override TextSpanner #'bound-details #'right #'text =
\markup { \draw-line #'(0 . -1) }
cs''1~^\markup\italic{"bow freely, staggering bows"}
\downbow\startTextSpan\> |
cs''1~ |
cs''1~\fermata |
cs''8\stopTextSpan\! r8 r4 r2 |
\bar "|."
}
\score {
\Test
}
%%% END %%%
Seems to be a popular question these days ;-)
http://lists.gnu.org/archive/html/lilypond-user/2007-09/msg00448.html
To the GDP team: there seems to be a general principle here about
using outside-staff-priority to control the *stacking order* of stuff
that seems to be difficult for users to extract from the docs. Which
is too bad because if you know that outside-staff-priority controls
stacking order, then you've got hold of a very general and powerful
layout principle that works in a very predictable and visible way.
I can write a paragraph on stacking order if somebody can suggest the
appropriate *section* to stick it in. (Even better might be for Graham
to stick "write new paragraph on stacking order with
outside-staff-priority" in his magic jar of action items and mail me
when GDP progresses to the appropriate chapter / section.)
--
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user