%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


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

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



\paper {
  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/printing-bar-numbers-for-broken-measures.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Snippet Repository
%% (http://lsr.di.unimi.it).
%%
%% Make any changes in the LSR itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.23.13"

\header {
%% Translation of GIT committish: a3fd5364fc4f247579da0ed2bfea887ab37285c6
  texidocfr = "
L'objet @code{BarNumber} (numéro de mesure) n'est pas répété en début de
ligne pour une mesure tronquée. Il 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"

  lsrtags = "rhythms"

  texidoc = "
By default a @code{BarNumber} 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 \bar "" \break
  fis | g1 | e2 \bar "" \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
  es | d1 | c
}



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