X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpage-breaking-scheme.cc;h=d9e62fa4fee535250f52f854c4bd49ff55e47613;hb=a767abf023c5449fcecce36ace9196901e7374a2;hp=0c806493b499fcad2b60e558e7f7710e4f51c2ed;hpb=84a3f805e16aeec81ea36e33fa7e7e069ecec9f9;p=lilypond.git diff --git a/lily/page-breaking-scheme.cc b/lily/page-breaking-scheme.cc index 0c806493b4..d9e62fa4fe 100644 --- a/lily/page-breaking-scheme.cc +++ b/lily/page-breaking-scheme.cc @@ -21,6 +21,7 @@ #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" @@ -54,6 +55,16 @@ LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking", 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 (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"