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