X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fremoving-the-first-empty-line.ly;fp=Documentation%2Fsnippets%2Fremoving-the-first-empty-line.ly;h=79a8590bb7eb1cbb4e1e98e899f8ccdf0d812ca0;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/removing-the-first-empty-line.ly b/Documentation/snippets/removing-the-first-empty-line.ly new file mode 100644 index 0000000000..79a8590bb7 --- /dev/null +++ b/Documentation/snippets/removing-the-first-empty-line.ly @@ -0,0 +1,111 @@ +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.0" + +\header { + lsrtags = "staff-notation, tweaks-and-overrides, breaks" + +%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c + texidoces = " +El primer pentagrama vacío también se puede suprimir de la +partitura estableciendo la propiedad @code{remove-first} de +@code{VerticalAxisGroup}. Esto se puede hacer globalmente dentro +del bloque @code{\\layout}, o localmente dentro del pentagrama +concreto que se quiere suprimir. En este último caso, tenemos que +especificar el contexto (@code{Staff} se aplica sólo al pentagrama +actual) delante de la propiedad. + +El pentagrama inferior del segundo grupo no se elimina, porque el +ajuste sólo se aplica al pentagrama concreto dentro del que se +escribe. + +" + doctitlees = "Quitar la primera línea vacía" + + +%% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40 + texidocde = " +Ein leeres Notensystem kann auch aus der ersten Zeile einer Partitur +entfernt werden, indem die Eigenschaft @code{remove-first} der +@code{VerticalAxisGroup}-Eigenschaft eingesetzt wird. Das kann +man global in einer @code{\\layout}-Umgebung oder lokal in dem +bestimmten Notensystem machen, das entfernt werden soll. In letzterem +Fall muss man den Kontext angeben. + +Das untere Notensystem der zweiten Systemgruppe wird nicht entfernt, +weil in die Einstellungen in dem Schnipsel nur für das eine Notensystem +gültig sind. + +" + doctitlede = "Die erste leere Notenzeile auch entfernen" + +%% Translation of GIT committish: 4ab2514496ac3d88a9f3121a76f890c97cedcf4e + texidocfr = " +Par défaut, le premier système comportera absolument toutes les portées. +Si vous voulez masquer les portées vides y compris pour le premier +système, vous devrez activer la propriété @code{remove-first} du +@code{VerticalAxisGroup}. Mentionnée dans un bloc @code{\\layout}, +cette commande agira de manière globale. Pour qu'elle ne soit effective +que pour une portée individuelle, vous devrez également spécifier le +contexte (@code{Staff} pour qu'il ne concerne que la portée en cours) en +préfixe de la propriété. + +La première ligne inférieure du deuxième @code{StaffGroup} est bien +présente, pour la simple raison que le réglage en question ne s'applique +qu'à la portée dans laquelle il a été inscrit. + +" + doctitlefr = "Masquage de la première ligne si elle est vide" + + + texidoc = " +The first empty staff can also be removed from the score by setting the +@code{VerticalAxisGroup} property @code{remove-first}. This can be done +globally inside the @code{\\layout} block, or locally inside the +specific staff that should be removed. In the latter case, you have to +specify the context (@code{Staff} applies only to the current staff) in +front of the property. + +The lower staff of the second staff group is not removed, because the +setting applies only to the specific staff inside of which it is +written. + +" + doctitle = "Removing the first empty line" +} % begin verbatim + +\layout { + \context { + \Staff \RemoveEmptyStaves + % To use the setting globally, uncomment the following line: + % \override VerticalAxisGroup #'remove-first = ##t + } +} +\new StaffGroup << + \new Staff \relative c' { + e4 f g a \break + c1 + } + \new Staff { + % To use the setting globally, comment this line, + % uncomment the line in the \layout block above + \override Staff.VerticalAxisGroup #'remove-first = ##t + R1 \break + R + } +>> +\new StaffGroup << + \new Staff \relative c' { + e4 f g a \break + c1 + } + \new Staff { + R1 \break + R + } +>> +