]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-breaking-scheme.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / page-breaking-scheme.cc
index 2ab01aa5095bfe5cfb17386b8a761bc3a60f0497..d9e62fa4fee535250f52f854c4bd49ff55e47613 100644 (file)
@@ -20,6 +20,8 @@
 #include "paper-book.hh"
 #include "page-turn-page-breaking.hh"
 #include "one-line-page-breaking.hh"
+#include "one-line-auto-height-breaking.hh"
+#include "one-page-breaking.hh"
 #include "optimal-page-breaking.hh"
 #include "minimal-page-breaking.hh"
 
@@ -29,7 +31,7 @@ LY_DEFINE (ly_page_turn_breaking, "ly:page-turn-breaking",
            " @var{pb} such that page turns only happen in specified places,"
            " returning its pages.")
 {
-  Page_turn_page_breaking b (Paper_book::unsmob (pb));
+  Page_turn_page_breaking b (unsmob<Paper_book> (pb));
   return b.solve ();
 }
 
@@ -39,7 +41,7 @@ LY_DEFINE (ly_optimal_breaking, "ly:optimal-breaking",
            " @var{pb} to minimize badness in bother vertical and horizontal"
            " spacing.")
 {
-  Optimal_page_breaking b (Paper_book::unsmob (pb));
+  Optimal_page_breaking b (unsmob<Paper_book> (pb));
   return b.solve ();
 }
 
@@ -49,16 +51,37 @@ LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking",
            " 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));
+  Minimal_page_breaking b (unsmob<Paper_book> (pb));
+  return b.solve ();
+}
+
+LY_DEFINE (ly_one_page_breaking, "ly:one-page-breaking",
+           1, 0, 0, (SCM pb),
+           "Put each score on a single page.  The paper-height settings"
+           " are modified so each score fits on one page, and the"
+           " height of the page matches the height of the full score.")
+{
+  One_page_breaking b (unsmob<Paper_book> (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.")
+           " page.  Modify the paper-width setting so that every page"
+           " is wider than the widest line.")
+{
+  One_line_page_breaking b (unsmob<Paper_book> (pb));
+  return b.solve ();
+}
+
+LY_DEFINE (ly_one_line_auto_height_breaking, "ly:one-line-auto-height-breaking",
+           1, 0, 0, (SCM pb),
+           "Put each score on a single line, and put each line on its own"
+           " page.  Modify the paper-width setting so that every page"
+           " is wider than the widest line. Modify the paper-height"
+           " setting to fit the height of the tallest line.")
 {
-  One_line_page_breaking b (Paper_book::unsmob (pb));
+  One_line_auto_height_breaking b (unsmob<Paper_book> (pb));
   return b.solve ();
 }