- 1, 0, 0, (SCM pb),
- "Optimally break (pages and lines) the Paper_book PB to minimise badness in "
- "bother vertical and horizontal spacing.")
+ 1, 0, 0, (SCM pb),
+ "Optimally break (pages and lines) the @code{Paper_book} object"
+ " @var{pb} to minimize badness in bother vertical and horizontal"
+ " spacing.")
+{
+ Optimal_page_breaking b (Paper_book::unsmob (pb));
+ return b.solve ();
+}
+
+LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking",
+ 1, 0, 0, (SCM pb),
+ "Break (pages and lines) the @code{Paper_book} object @var{pb}"
+ " without looking for optimal spacing: stack as many lines on"
+ " a page before moving to the next one.")
+{
+ Minimal_page_breaking b (Paper_book::unsmob (pb));
+ return b.solve ();
+}
+
+LY_DEFINE (ly_one_line_breaking, "ly:one-line-breaking",
+ 1, 0, 0, (SCM pb),
+ "Put each score on a single line, and put each line on its own"
+ " page. The paper-width setting will be modified so that"
+ " every page will be wider than the widest line.")