X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fadding-an-extra-staff-at-a-line-break.ly;fp=Documentation%2Fsnippets%2Fadding-an-extra-staff-at-a-line-break.ly;h=bd4f6f5fc87d2f698e531041ebb09c8730a37010;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly b/Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly new file mode 100644 index 0000000000..bd4f6f5fc8 --- /dev/null +++ b/Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly @@ -0,0 +1,59 @@ +%% 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, contexts-and-engravers, breaks" + +%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c + texidoces = " +Al añadir un pentagrama nuevo en un salto de línea, por desgracia +se añade un espacio adicional al final de la línea antes del salto +(reservado para hacer sitio a un cambio de armadura que de todas +formas no se va a imprimir). La solución alternativa es añadir un +ajuste para @code{Staff.explicitKeySignatureVisibility} como se +muestra en el ejemplo. + +" + doctitlees = "Añadir un pentagrama adicional en un salto de línea" + + texidoc = " +When adding a new staff at a line break, some extra space is +unfortunately added at the end of the line before the break (to fit in +a key signature change, which will never be printed anyway). The +workaround is to add a setting of +@code{Staff.explicitKeySignatureVisibility} as is shown in the example. + + +" + doctitle = "Adding an extra staff at a line break" +} % begin verbatim + +\score { + \new StaffGroup \relative c'' { + \new Staff + \key f \major + c1 c^"Unwanted extra space" \break + << { c1 | c } + \new Staff { + \key f \major + \once \override Staff.TimeSignature #'stencil = ##f + c1 | c + } + >> + c1 | c^"Fixed here" \break + << { c1 | c } + \new Staff { + \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible + \key f \major + \once \override Staff.TimeSignature #'stencil = ##f + c1 | c + } + >> + } +} +