%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/adding-an-extra-staff-at-a-line-break.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
改行時に譜を追加する場合、改行前の行末に不要な空間が追加されてしまいます
(これは調号の変化に対応するためのものですが、どちらにしろ表示されません)。@c
これを解決するには、@code{Staff.explicitKeySignatureVisibility} を例のように@c
設定します。
"
  doctitleja = "改行時に譜を追加する"

%% Translation of GIT committish: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Lorsqu'une nouvelle portée vient s'ajouter après un saut de ligne,
LilyPond préserve un espace juste avant le saut de ligne -- pour un
éventuel changement d'armure qui, quoi qu'il en soit, n'est pas imprimé.
L'astuce consiste alors, comme indiqué dans l'exemple suivant, à ajuster
le @code{explicitKeySignatureVisibility} de l'objet graphique
@code{Staff}.
"

  doctitlefr = "Ajout d'une portée supplémentaire après un saut de ligne"

%% Translation of GIT committish: 35d4cc1b78c4105643ca5fdcb44cb717578d6d4a
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 nunca se imprime). La solución alternativa es establecer la
propiedad @code{Staff.explicitKeySignatureVisibility} del objeto
gráfico @code{Staff} como se muestra en el ejemplo.
"
doctitlees = "Añadir un pentagrama adicional en un salto de línea"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
En afegir un pentagrama nou a un salt de línia, per desgràcia
s'afegeix un espai addicional al final de la línia abans del
salt (reservat per fer lloc a un canvi d'armadura que de totes
formes no s'imprimirà). La solució alternativa és afegir un
ajustament per a @code{Staff.explicitKeySignatureVisibility}
com es mostra a l'exemple.

"
  doctitleca = "Afegir un pentagrama addicional a un salt de línia"

  categories = "Breaks, Contexts and engravers, Staff notation,
                Workaround"

  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 is never printed anyway). The workaround
is to set the @code{explicitKeySignatureVisibility} property of the
@code{Staff} grob 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 \omit Staff.TimeSignature
         c1 | c
       }
    >>
    c1 | c^"Fixed here" \break
    << { c1 | c }
       \new Staff {
         \once \set Staff.explicitKeySignatureVisibility =
           #end-of-line-invisible
         \key f \major
         \once \omit Staff.TimeSignature
         c1 | c
       }
    >>
  }
}



% ****************************************************************
% end ly snippet
% ****************************************************************
