%% 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)),quote,ragged-right]
\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))
  line-width = 160\mm - 2.0 * 10.16\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))
  ragged-right = ##t
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/printing-bar-numbers-for-broken-measures.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: de1e42ce512f3690387cdd065109bddff1b7bd6d
  texidocfr = "
Le numéro de mesure n'est pas répété en début de ligne pour une mesure
tronquée. L'objet @code{BarNumber} apparaîtra, entre parenthèses, dès
lors que la propriété @code{barNumberVisibility} sera affublée de
@code{first-bar-number-invisible-save-broken-bars}.
"

  doctitlefr = "Impression du numéro des mesures tronquées"

%% Translation of GIT committish: 61b32ff2340073b2d9600a20fdedf65d58be720b
  texidoces = "
Por omisión, el número de un compás que está dividido no se repite
al comienzo de la línea siguiente.  Use
@code{first-bar-number-invisible-save-broken-bars} para
@code{barNumberVisibility} para tener un @code{BarNumber}
encerrado entre paréntesis en ese caso.
"

  doctitlees = "Impresión de números de compás para compases divididos"

  categories = "Rhythms"

  texidoc = "
By default, a bar number of a broken measure is not repeated at the
beginning of the new line. Use
@code{first-bar-number-invisible-save-broken-bars} for
@code{barNumberVisibility} to get a parenthesized @code{BarNumber}
there.
"

  doctitle = "Printing bar numbers for broken measures"
} % begin verbatim


\layout {
  \context {
    \Score
    barNumberVisibility = #first-bar-number-invisible-save-broken-bars
    \override BarNumber.break-visibility = ##(#f #t #t)
  }
}

\relative c' {
  c1 | d | e | f2 \break
  fis2 | g1 | e2 \break
  <>^"reenabled default"
  % back to default -
  % \unset Score.barNumberVisibility would do so as well
  \set Score.barNumberVisibility =
    #first-bar-number-invisible-and-no-parenthesized-bar-numbers
  es2 | d1 | c
}



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