%% 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 "/lilypond-2.26.0/input/regression/break-alignment-anchor-average-unanimous.ly"
\sourcefileline 0
\version "2.25.33"

\header {
  texidoc = "When a group of break-aligned items agree on the position
of their own anchors with respect to their own extents, the
``average'' anchor of the group falls at that position with respect to
the extent of the group.  In this case, each rehearsal mark should
point to the stated point relative to the complex time signature."
}

\layout {
  \context {
    \Score
    %% Point rehearsal marks to time signatures.
    \override TextMark.break-align-symbols = #'(time-signature)
    \override TextMark.self-alignment-X = #CENTER
  }

  \enablePerStaffTiming
}

#(define-markup-command (test-mark layout props arg)
  (markup?)
  (interpret-markup layout props
    #{
      \markup \column {
        \center-align #arg
        \center-align "↓"
      }
    #} ))

\fixed c' <<
  \new Staff {
    \override Score.TimeSignature.break-align-anchor-alignment = -1.5
    \timeAbbrev 1,1,1 \textMark \markup \test-mark "-1.5"
    c1 \bar "|"

    \override Score.TimeSignature.break-align-anchor-alignment = #LEFT
    \timeAbbrev 1,1,1 \textMark \markup \test-mark "-1.0" \partial 1*100
    c1 \bar "|"

    \override Score.TimeSignature.break-align-anchor-alignment = #CENTER
    \timeAbbrev 1,1,1 \textMark \markup \test-mark "0" \partial 1*100
    c1 \bar "|"

    \override Score.TimeSignature.break-align-anchor-alignment = #RIGHT
    \timeAbbrev 1,1,1 \textMark \markup \test-mark "+1.0" \partial 1*100
    c1 \bar "|"

    \override Score.TimeSignature.break-align-anchor-alignment = 1.5
    \timeAbbrev 1,1,1 \textMark \markup \test-mark "+1.5" \partial 1*100
    c1 \bar "|"
  }

  \new Staff {
    \repeat unfold 5 {
      \time 1/1
      c1
    }
  }
>>



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