• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

RemoveEmptyStaffContext und Taktzahlen Neufassung

Begonnen von chf, Mittwoch, 16. Juli 2014, 11:59

Vorheriges Thema - Nächstes Thema

chf

Liebe Freunde,

es ist wohl doch nötig, ein Partiturbeispiel anzufügen... Nachdenken und Versuche haben mich auf die Vermutung gebracht, dass mein Problem doch konkreter Art sein könnte.
Aus Platzgründen muss ich die Leerzeilen nur auf dieser ( ersten) Seite einsparen.
Ich erhalte aber entweder eine Partitur mit [/color ]Taktzahlen und Leerzeilen
oder eine ohne Taktzahlen und ohne Leerzeilen.
Im Beispiel habe ich RemoveEmptyStaffContext auskommentiert, damit deutlich wird, in welchen Zeilen die Taktzahlen stehen sollen.

Entschuldigt, dass ich euch ein Rätsel aufgegebn habe. Jetzt ist es hoffentlich klarer.

Gruß
chf


harm6

Hallo Christa,

danke für das Beispiel.
Es liegt an \RemoveEmptyStaffContext.

RemoveEmptyStaffContext taucht in der 2.16. Dokumentation auch überhaupt nicht mehr auf!
Siehe dazu die Anmerkung in engraver-init.ly

Zitat%% Keep the old definitions in here for compatibility (they erase previous
%% settings to the corresponding context!)
.
%% For new scores, one should simply insert the \RemoveEmptyStaves settings
%% into the desired context. That's just as easy, requires only one line more
%% (the \*Staff), but preserves previous context mods.
%% TODO: DEPRECATED_2.13.17, remove at some point in the future
RemoveEmptyStaffContext = \context {
  \Staff
  \RemoveEmptyStaves
}

D.h. Dein
  \context{
    \Staff
    \consists Metronome_mark_engraver
    \consists Bar_number_engraver
    \consists Mark_engraver
}

wurde durch
\context { \RemoveEmptyStaffContext }
schlichtweg überschrieben.

Dein layoutblock sollte also so aussehen:

  \layout {
    \context{
      \Score
      \remove Metronome_mark_engraver
      \remove Bar_number_engraver
      \remove Mark_engraver
    }
    \context{
      \Staff
      \consists Metronome_mark_engraver
      \consists Bar_number_engraver
      \consists Mark_engraver
      \RemoveEmptyStaves
    }
    \context {
      \Lyrics
      \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
        #'((basic-distance . 5.5)
           (padding . 1.5) % default: 0.5
           (stretchability . 1))
      \override LyricHyphen #'minimum-distance = #1.0
    }
  }


Gruß,
  Harm

chf