Dear Jinsong,
I'm not sure why lilypond adds a bit of extra space between the note and
the fermata when there is text nearby (perhaps it's a deliberate attempt to
increase legibility) but you can remove that padding and allow text above
the articulations with the following code:
\version "2.18.2"
{
d'''2.\fermata d'''2.\fermata^\markup{}
\override Script.outside-staff-priority = #1 % allows Script under
TextScript
\override Script.outside-staff-padding = #0 % removes the extra padding
\once \override TextScript #'outside-staff-priority = #5000
d'''2.\fermata^"rit." d'''2.\fermata^\markup{\null \translate #'(2 . 0)
"rit."}
}
hth,
Kevin
On Mon Dec 22 2014 at 11:41:46 AM Pierre Perol-Schneider <
[email protected]> wrote:
> Hi Jinsong,
>
> how about :
>
> \version "2.19.15"
>
> {
> d'''1\fermata^"rit."
> d'''-\tweak script-priority 1 \fermata ^"rit."
> d'''\fermata -\tweak X-offset 2.5 ^"rit."
> d'''-\tweak script-priority 1 \fermata
> -\tweak extra-offset #'(2.5 . -3) ^"rit."
> }
>
> Cheers,
> Pierre
>
> 2014-12-22 9:56 GMT+01:00 Jinsong Zhao <[email protected]>:
>
>> Hi there,
>>
>> In the following snippet, I want to typeset a markup above or beside a
>> fermata. However, I am not lucky enough.
>>
>> There's a very tiny space between the second fermata and the note d'''2.
>> It seems that the space can't be removed, and this also causes the tiny
>> vertical space in the forth note.
>>
>> The outside-staff-priority can't move the "rit." to the above of the
>> third note.
>>
>> \version "2.19.15"
>> {
>> d'''2.\fermata d'''2.\fermata^\markup{}
>> \once \override TextScript #'outside-staff-priority = #5000
>> d'''2.\fermata^"rit." d'''2.\fermata^\markup{\null \translate #'(2 . 0
>> ) "rit."}
>> }
>>
>> Any suggestions? Thanks in advance.
>>
>> Best,
>> Jinsong
>>
>> _______________________________________________
>> lilypond-user mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user