[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: horizontal space after rehearsal mark (or bar line)
From: |
James Lowe |
Subject: |
Re: horizontal space after rehearsal mark (or bar line) |
Date: |
Tue, 09 Feb 2010 17:42:41 +0000 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
So what is wrong with
\score {
\relative c' {
\clef G
\time 4/4
c'1 d
\bar "||" \mark \markup { \box "M2" } e( \f ^\markup {\halign #-1.5
{Tutti}} f)
}
}
Seems to me that '\halign #-1.5' is far less complicated than any of those?
Alternatively how about shrinking down the size of the \box markup?
\mark \markup { \tiny \box "M2" }
or whatever size you want. and hey! even combine the two.
To me all this seems to get vastly and unnecessarily over-complicated
sometimes.
James
Trevor Daniels wrote:
>
> Mats Bengtsson wrote Monday, February 08, 2010 8:05 AM
>
>
>> Quoting Trevor Daniels <address@hidden>:
>>
>>>
>>> Mats Bengtsson wrote Sunday, February 07, 2010 10:45 PM
>>>
>>>> A better solution is to tell LilyPond that you don't want it to put
>>>> rehearsal marks above other objects:
>>>>
>>>> \version "2.12.2"
>>>> \score {
>>>> \relative c' {
>>>> \clef G
>>>> \time 4/4
>>>> c'1 d
>>>> \override Score.RehearsalMark #'extra-spacing-width = #'(0 . 0)
>>>> \override Score.RehearsalMark #'extra-spacing-height = #'(-inf.0
>>>> . +inf.0)
>>>> \bar "||" \mark \markup{\box "M2"} e( \f ^\markup{Tutti} f)
>>>> }
>>>> }
>>>>
>>>> Depending on the situation, you may also want to combine this
>>>> setting with \textLengthOn, which does exactly the same setting for
>>>> text scripts.
>>>> Unfortunately, the only available documentation of these properties
>>>> seems to be in the internals reference:
>>>
>>> In this particular example you can use \textLengthOn
>>> instead of the undocumented 'extra-spacing-height
>>> override. Then both elements of the solution *are*
>>> documented. See Section 4.4.3 in the Learning Manual.
>>
>> Unfortunately not, since \textLengthOn only makes the setting on
>> TextScript objects, not on RehearsalMark objects, which was needed in
>> this example (at least when I try it with version 2.13.8).
>
> Yes, but in this case the rehearsal mark is affected
> by the nearby presence of a TextScript object, so giving
> both it and the rehearsal mark a non-zero width prevents
> the overlap:
>
> \score {
> \relative c' {
> \clef G
> \time 4/4
> c'1 d
> \override Score.RehearsalMark #'extra-spacing-width = #'(0 . 0)
> \textLengthOn
> % \override Score.RehearsalMark #'extra-spacing-height = #'(-inf.0 .
> +inf.0)
> \bar "||" \mark \markup{\box "M2"} e( \f ^\markup{Tutti} f)
> }
> }
>
> This works when I try it in 2.13.11.
>
> Your solution is better if you wish to affect all
> rehearsal marks and only rehearsal marks, of course.
> I just wanted to point out that at least one solution
> was documented.
>
> Perhaps we should have a predef which sets extra-spacing-width
> of RehearsalMark and DynamicText as well as TextScript
> objects to zero, or generalise \textWidthOn
> to do this?
>
> Trevor
>
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>