Aligning instrument names - another try
Hi all, I'll give it another try - I searched a lot on how to left align several instrument names(different staves), but didn't find even a workaround on the list. It seems that Thies' workaround which he posted in Oct 2006 doesn't work anymore. Regards, Michael His post: Here's what I do (I hope I'll remember correctly as I can't find a file containing it right now): \set Staff.instrument = \markup { \combine \hspace #5.0 "My Instrument" } My example: \version "2.11.30" \header { piece = \markup {\fontsize #3 {"1. Test"} } } Key = { \key b \major } violine = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Violino I, II" } \clef treble << \Key \time 4/4 \relative c'' { c4 d b c d2 c } >> } sopran = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Soprano" } \clef soprano << \Key \relative c'' { d2 g a4 f fis g } >> } bc = { \set Staff.instrumentName = \markup {\combine \hspace #5.0 "Organo" } \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 = 2.5\cm } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
2007/8/21, Michael Käppler <[EMAIL PROTECTED]>: > 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} } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
Hi Valentin, 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). Many thanks first. It really works. Michael Maybe you could enhance your example by something like this: \version "2.11.30" % To avoid inequal spacing if some systems start with a brace and others don't, % make all systems have braces and then optically remove the unwanted ones. Key = { \key bes \major } violine = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 \large "Violino I, II" } \clef treble << \Key \time 4/4 \relative c'' { c4 d b c d2 c } >> } sopran = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 "Soprano" } \clef soprano << \Key \relative c'' { d2 g a4 f fis g } >> } bc = { \set Staff.instrumentName = \markup {\combine \hspace #15.0 "Organo" } \clef bass << \Key \override StaffGroup.SystemStartBracket #'transparent = ##t % Brace becomes invisible \relative c { c2 d e1 } >> } \score { << \new StaffGroup << \new Staff \violine \new Staff \sopran >> \new StaffGroup << \new Staff \bc >> >> \layout { indent = 2.5\cm \context { \StaffGroup \override SystemStartBracket #'collapse-height = #0.1 % Make braces appear even on a single staff } } } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Aligning instrument names - another try
2007/8/21, Michael Käppler <[EMAIL PROTECTED]>: > Maybe you could enhance your example by something like this: > % To avoid inequal spacing if some systems start with a brace and others > don't, > % make all systems have braces and then optically remove the unwanted ones. That is a good idea, but it doesn't always work, since in orchestral scores, brackets are often comnibed with curly braces (besides, a curly brace on three staves doesn't have the same thickness than a curly brace on two staves, etc.)... so I just focused on the instrument names when rewriting this snippet. http://lsr.dsi.unimi.it/LSR/Item?u=1&id=269 IMHO, the point is: it would be great if instrument names (or ShortInstrumentNames) could be aligned to the left of the page, regardless of what's coming on the right. I don't know if this is possible (I somehow doubt it). But the discussion isn't over... Regards, Valentin ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user