]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-an-extra-staff-at-a-line-break.ly
Merge branch 'translation' into staging
[lilypond.git] / Documentation / snippets / adding-an-extra-staff-at-a-line-break.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "breaks, workaround, contexts-and-engravers, staff-notation"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13   texidoces = "
14 Al añadir un pentagrama nuevo en un salto de línea, por desgracia
15 se añade un espacio adicional al final de la línea antes del salto
16 (reservado para hacer sitio a un cambio de armadura que de todas
17 formas no se va a imprimir). La solución alternativa es añadir un
18 ajuste para @code{Staff.explicitKeySignatureVisibility} como se
19 muestra en el ejemplo.
20
21 "
22   doctitlees = "Añadir un pentagrama adicional en un salto de línea"
23
24 %% Translation of GIT committish: f5cfaf8ef4ac347702f554af0944ef0d8396e73a
25   texidocfr = "
26 Lorsqu'une nouvelle portée vient s'ajouter après un saut de ligne,
27 LilyPond préserve un espace juste avant le saut de ligne -- pour un
28 éventuel changement d'armure qui, quoi qu'il en soit, ne sera pas
29 imprimé.  L'astuce consiste alors, comme indiqué dans l'exemple suivant,
30 à ajuster @code{Staff.explicitKeySignatureVisibility}.
31
32 "
33   doctitlefr = "Ajout d'une portée supplémentaire après un saut de ligne"
34
35   texidoc = "
36 When adding a new staff at a line break, some extra space is
37 unfortunately added at the end of the line before the break (to fit in
38 a key signature change, which  will never be printed anyway).  The
39 workaround is to add a setting of
40 @code{Staff.explicitKeySignatureVisibility} as is shown in the example.
41
42
43 "
44   doctitle = "Adding an extra staff at a line break"
45 } % begin verbatim
46
47
48 \score {
49   \new StaffGroup \relative c'' {
50     \new Staff
51     \key f \major
52     c1 c^"Unwanted extra space" \break
53     << { c1 | c }
54        \new Staff {
55          \key f \major
56          \once \override Staff.TimeSignature #'stencil = ##f
57          c1 | c
58        }
59     >>
60     c1 | c^"Fixed here" \break
61     << { c1 | c }
62        \new Staff {
63          \once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
64          \key f \major
65          \once \override Staff.TimeSignature #'stencil = ##f
66          c1 | c
67        }
68     >>
69   }
70 }
71