%% Generated by lilypond-book.py
%% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm]
\include "lilypond-book-preamble.ly"







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

\paper {
  #(define dump-extents #t)
  
  indent = 0\mm
  line-width = 160\mm
}

\layout {
  
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "page-layout-twopass.ly"
\header
{
  texidoc = "Page breaking details can be stored for later reference." 
}



\paper  {
  #(define write-page-layout #t)
}
bla = \new Staff {
  c1 c1
  \break
  \grace { c16 } c1\break
  \repeat unfold 5 \relative { c1 c1 c1 }
}

\book {
  \score {
    \bla
    \layout {
      #(define tweak-key "blabla")
    }
  }
}

tweakFileName = #(format "~a-page-layout.ly" (ly:parser-output-name parser))

#(newline)

%% unfortunately: the following doesn't show up in lp-book output

%% if the following is there, the tweak file will be overwritten.

%{

#(ly:progress "Including file: '~a'" tweakFileName)

\markup {
  \column {
    \line { contents of \typewriter tweakFileName: }
    \smaller \verbatim-file #tweakFileName
  }
}

%}



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