%% 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 "/lilypond-2.24.4/input/regression/repeat-ds-torture.ly"
\sourcefileline 0
\version "2.23.6"

#(ly:set-option 'warning-as-error #t)

\header {
  texidoc="This tests mark formatting and placement for three
sequential @code{\\repeat segno} sections, each with three alternative
endings, with some used for multiple volte."
}

\layout {
  ragged-right = ##t
}

piece = \new Voice \fixed c' {
  \sectionLabel "Commencement"
  s1_"A"
  \repeat segno 7 {
    s1_"B"
    \alternative {
      \volta 1,2 s1_"C"
      \volta 3 s1_"D"
      \volta 5,7,6,4 s1_"E"
    }
  }
  \repeat segno 3 {
    s1_"F"
    \alternative {
      s1_"G"
      s1_"H"
      %% There is no mark conflict here because the coda mark is
      %% suppressed for any alternative with zero duration.
      << \section \sectionLabel "Bridge" s4*0 >>
    }
  }
  s1_"I"
  \repeat segno 3 {
    s1_"J"
    \alternative {
      s1_"K"
      s1_"L"
      <>
    }
  }
  \section \sectionLabel "Fade-out" s1_"M"
  \fine
}

\new Score \with {
  \override JumpScript.direction = #UP % make a mess (spatially)
  \override JumpScript.color = "#500" % improve reviewability
} {
  \new Staff \with { instrumentName = "default" } \piece
}

\new Score \with {
  dalSegnoTextFormatter = #format-dal-segno-text-brief
} {
  \new Staff \with { instrumentName = "brief" } \piece
}



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