lilypond-user
[Top][All Lists]
Advanced

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

Re: Aligning instrument names - another try


From: Valentin Villenave
Subject: Re: Aligning instrument names - another try
Date: Tue, 21 Aug 2007 17:51:41 +0200

2007/8/21, Michael Käppler <address@hidden>:

>  It seems that Thies' workaround which he posted in Oct 2006
> doesn't work anymore.

Yes it does: you just have to give enough amount of hspace so the
instrument names can fit in. Look at the following snippet (maybe I'll
add it to the LSR, unless you have some improvements to propose).

Regards,
Valentin

%%%%

Key = { \key b \major }

violine = {
 \set Staff.instrumentName = \markup {\combine \hspace #20.0 "This is
a long name" }
 \clef treble
 <<
 \Key
 \time 4/4
 \relative c'' {
  c4 d b c
  d2 c
 }
 >>
}

sopran = {
 \set Staff.instrumentName = \markup {\combine \hspace #20.0 "Shortname" }
 \clef soprano
 <<
  \Key
  \relative c'' {
   d2 g
   a4 f fis g
  }
 >>
}

bc = {
 \set Staff.instrumentName = \markup {\combine \hspace #20.0 "Name" }
 \clef bass
 <<
 \Key
 \relative c {
  c2 d
  e1
 }
 >>
}

\score {
 <<
  \new StaffGroup <<
    \new Staff = "Violine" \violine
  >>
  \new Voice = "Sopran" \sopran
  \new Staff = "b.c." \bc
 >>
 \layout {
 indent = 5 \cm}
}




reply via email to

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