lilypond-user
[Top][All Lists]
Advanced

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

Re: right and left-align


From: andrea valle
Subject: Re: right and left-align
Date: Thu, 26 Jan 2006 18:49:44 +0100

Actually I solved problems of collision adding \hspace in the markup.
In any case, result is a bit complex:

\new StaffGroup
  \new Staff \with {

instrument = \markup{ \column {
\right-align \line{ "gong 3" \hspace #2.0 }
\right-align \line{ "gong 2" \hspace #2.0 }
\right-align \line{ "gong 1" \hspace #2.0 }
\right-align \line{ "bottiglia 3" \hspace #2.0 }
\right-align \line{ "bottiglia 2"  \hspace #2.0 }
\right-align \line{ "bottiglia 1"  \hspace #2.0 }
}
}


Thanks

-a-

On 26 Jan 2006, at 17:34, Mats Bengtsson wrote:

OK, use something along the lines of
\set Staff.instrument = \markup{ \column { \right-align "gong 3" \right-align "bottle 1" } }


 /Mats


andrea valle wrote:

(thanks)

This is the result.
But I'd like to have names right-aligned with respect to numbers . I mean: number in the 3 staves, or at least in each staff, should be aligned (and possibly non overlapping to grouping line)


-a-


On 26 Jan 2006, at 12:44, Mats Bengtsson wrote:

Try

\layout{
 \context {
   \Score


   \override InstrumentName #'self-alignment-X = #right
\override InstrumentName #'X-offset = #Self_alignment_interface::x_aligned_on_self)
 }
}

  /Mats


andrea valle wrote:

Thanks as usual Mats,
I took a look at docs, and I updated (?) names.
This doesn't work on 2.7.27

 \context {
\Score
\override InstrumentName #'self-alignment-X = #right
\override InstrumentName #'X-offset = #`(Self_alignment_interface::aligned_on_self)
}

warning: type check for `X-offset' failed; value `(Self_alignment_interface::aligned_on_self)' must be of type `number'


-a-


On 26 Jan 2006, at 10:53, Mats Bengtsson wrote:

See http://lists.gnu.org/archive/html/lilypond-user/2005-06/ msg00637.html
Note that the property names have changed a bit if you use LilyPond
version 2.7.x.

  /Mats

andrea valle wrote:

Thanks Mats,
I suspected but wasn't sure.
So what should I use to have right / left-align in the way \center works? I need to have instrument names right aligned near staff beginning.
Thanks again

-a-



On 25 Jan 2006, at 14:56, Mats Bengtsson wrote:

If you read the documentation carefully, you will notice that center-align does something completely different than right-align and left-align. It seems like a very unfortunate choice of command
names.

  /Mats

Quoting andrea valle <address@hidden>:

Hi to all,
In markup do \right and \left-align work in the same way of \center-align?
I mean:
\markup{\center-align { \line{temple 3} \line{2} \line{blocks}}
\markup{\right-align { \line{temple 3} \line{2} \line{blocks}}
\markup{\left-align { \line{temple 3} \line{2} \line{blocks}}

I thought so, but while \center-align behaves correctly (3 lines), the other two commands write on the same line thus producing overlapping lines.
What am I missing?
Thanks

-a-

 (on macosx 10.3, lily 2.7.27)

Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
address@hidden


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






Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
address@hidden



--
=============================================
    Mats Bengtsson
    Signal Processing
    Signals, Sensors and Systems
    Royal Institute of Technology
    SE-100 44  STOCKHOLM
    Sweden
Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260
    Email: address@hidden
    WWW: http://www.s3.kth.se/~mabe
=============================================


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
address@hidden



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



--
=============================================
    Mats Bengtsson
    Signal Processing
    Signals, Sensors and Systems
    Royal Institute of Technology
    SE-100 44  STOCKHOLM
    Sweden
Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260
    Email: address@hidden
    WWW: http://www.s3.kth.se/~mabe
=============================================


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
address@hidden
it


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
address@hidden





reply via email to

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