Dear Neil, I think I have solved the problem with the vertical distance, but now the time-signatures don't disappear in the staves and I don't understand why!
\version "2.12.0" \paper { ragged-last-bottom = ##f page-limit-inter-system-space-factor = 1.3 #(set-paper-size "a4" ) system-separator-markup = \slashSeparator } \layout{ \context { \type "Engraver_group" \consists "Time_signature_engraver" \consists "Text_spanner_engraver" \consists "Text_engraver" \consists "Dynamic_engraver" \consists "Axis_group_engraver" \name "TimeSig" \override TimeSignature #'font-size = #3 \override TimeSignature #'break-align-symbol = #'staff-bar \override TimeSignature #'X-offset: = #ly:self-alignment-interface::x-aligned-on-self \override TimeSignature #'self-alignment-X = #CENTER } \context { \Score \accepts TimeSig } \context { \Staff \remove "Time_signature_engraver" } \context { \TimeSig \override VerticalAxisGroup #'keep-fixed-while-stretching = ##t \override VerticalAxisGroup #'Y-extent = #'(-33 . 0) \override VerticalAxisGroup #'minimum-Y-extent = ##f %durch diese Einstellung wird gewährleistet, dass die Taktartkangabe immer im gleichen Abstand über der Partitur erscheint! } } \layout { \context { \RemoveEmptyStaffContext } \context { \Staff \override VerticalAxisGroup #'remove-first = ##t } } %%ENDE Layout! global = { \time 3/4 s2. \time 4/4 s1 \break \time 5/4 s4*5 \time 4/4 s1 } melodie = \relative { c4 c c c c c c R 4*5 R1} nochnemelodie = \relative { R2. R1 e4 e e e e e e e e } instrumentA = \new Staff { \melodie } instrumentB = \new Staff { \nochnemelodie } tempotakt = \new TimeSig % \with { \override VerticalAxisGroup #'keep-fixed-while-stretching = ##t } { \override Score.TimeSignature #'style = #'( ) %heißt: die Viervierteltakte werden nicht altmodisch angezeigt %\override Score.BarNumber #'break-visibility = ##(#t #t #t) %jede Taktzahl wird gezeigt, spaeter wieder loeschen!! \override TimeSig.VerticalAxisGroup #'minimum-Y-extent = #'(-0 . 1) % \override Score.VerticalAlignment #'max-stretch = #ly:align-interface::calc-max-stretch \global } \score { << \tempotakt \instrumentA \instrumentB >> } 2009/3/6, Neil Puttock <n.putt...@gmail.com>: > 2009/3/5 Stefan Thomas <kontrapunktste...@googlemail.com>: >> Dear Lilypond-users, >> I have the problem, in the below quoted example, that I can't reduce >> the distance >> between the TimeSig and the first Staff of the Score. >> How can I do it? I tried it with >> \override VerticalAxisGroup #'keep-fixed-while-stretching = ##t >> but without success. > > You want to prevent the spacing engine from pulling the first stave > away from the time signature, so you need to set > 'keep-fixed-while-stretching in the Staff context *below* TimeSig (see > the relevant docs here: > http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Vertical-spacing-inside-a-system#Vertical-spacing-inside-a-system) > >> \override TimeSignature #'X-:set = >> #ly:self-alignment-interface::x-aligned-on-self > > Should be #'X-offset. Lilypond won't report a type-check failure here > since the garbled property (#'X-:set) is set to a procedure. > > Regards, > Neil > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user