/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2006--2012 Joe Neeman <joeneeman@gmail.com>
+ Copyright (C) 2006--2014 Joe Neeman <joeneeman@gmail.com>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "paper-book.hh"
#include "page-turn-page-breaking.hh"
+#include "one-line-page-breaking.hh"
#include "optimal-page-breaking.hh"
#include "minimal-page-breaking.hh"
Minimal_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.")
+{
+ One_line_page_breaking b (unsmob_paper_book (pb));
+ return b.solve ();
+}