%% 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/markup-conditionals-several-pages.ly"
\sourcefileline 0
\version "2.23.4"

\header {
  texidoc = "Test markup commands used for conditional constructs.
See also @file{markup-conditionals-single-page.ly}."
}

\header {
  title = "New part"
}

\book {
  \paper {
    #(set-paper-size "a7landscape")
    oddHeaderMarkup = \markup \column {
      \draw-hline
      \fromproperty #'page:page-number-string
      \if \on-first-page "Very first page only"
      \if \on-last-page "Very last page only"
      \if \on-page #5 "Page 5 only"
      \if \on-first-page-of-part "Part first page only"
      \if \on-last-page-of-part "Part last page only"
      \if \single-page "THIS SHOULD NOT BE PRINTED!"
      \if \should-print-page-numbers-global "Everywhere"
      \if \should-print-page-number "Everywhere except on the first page"
      % Test \unless
      \unless \on-first-page "Also everywhere except on the first page"
      \if \should-print-all-headers "THIS SHOULD NOT BE PRINTED!"
    }
    evenHeaderMarkup = \oddHeaderMarkup
  }
  \bookpart {
    { c' }
    \pageBreak
    { c' }
    \pageBreak
    { c' }
  }
  \bookpart {
    { c' }
    \pageBreak
    { c' }
    \pageBreak
    { c' }
  }
}



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