]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-an-extra-staff-at-a-line-break.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / adding-an-extra-staff-at-a-line-break.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   lsrtags = "staff-notation, contexts-and-engravers, breaks"
7
8   texidoces = "
9 Al añadir un pentagrama nuevo en un salto de línea, por desgracia
10 se añade un espacio adicional al final de la línea antes del salto
11 (reservado para hacer sitio a un cambio de armadura que de todas
12 formas no se va a imprimir). La solución alternativa es añadir un
13 ajuste para @code{Staff.explicitKeySignatureVisibility} como se
14 muestra en el ejemplo.  En las versiones 2.10 y anteriores,
15 también se necesita un ajuste similar para las indicaciones de
16 compás (véase el ejemplo).
17
18 "
19   doctitlees = "Añadir un pentagrama adicional en un salto de línea"
20
21   texidoc = "
22 When adding a new staff at a line break, some extra space is
23 unfortunately added at the end of the line before the break (to fit in
24 a key signature change, which  will never be printed anyway). The
25 workaround is to add a setting of
26 @code{Staff.explicitKeySignatureVisibility} as is shown in the example.
27 In versions 2.10 and earlier, a similar setting for the time signatures
28 is also required (see the example).
29
30
31
32 "
33   doctitle = "Adding an extra staff at a line break"
34 } % begin verbatim
35 \score {
36   \new StaffGroup \relative c'' {
37     \new Staff
38     \key f \major
39     c1 c^"Unwanted extra space" \break
40     << { c1 c }
41        \new Staff {
42          \key f \major
43          \once \override Staff.TimeSignature #'stencil = ##f
44          c1 c 
45        } 
46     >>
47     c1 c^"Fixed here" \break
48     << { c1 c }
49        \new Staff {
50          \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
51          % The next line is not needed in 2.11.x or later:
52          \once \override Staff.TimeSignature #'break-visibility = #end-of-line-invisible
53          \key f \major
54          \once \override Staff.TimeSignature #'stencil = ##f
55          c1 c
56        }
57     >>
58   }
59 }