2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2006--2014 Joe Neeman <joeneeman@gmail.com>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #include "paper-book.hh"
21 #include "page-turn-page-breaking.hh"
22 #include "one-line-page-breaking.hh"
23 #include "optimal-page-breaking.hh"
24 #include "minimal-page-breaking.hh"
26 LY_DEFINE (ly_page_turn_breaking, "ly:page-turn-breaking",
28 "Optimally break (pages and lines) the @code{Paper_book} object"
29 " @var{pb} such that page turns only happen in specified places,"
30 " returning its pages.")
32 Page_turn_page_breaking b (unsmob_paper_book (pb));
36 LY_DEFINE (ly_optimal_breaking, "ly:optimal-breaking",
38 "Optimally break (pages and lines) the @code{Paper_book} object"
39 " @var{pb} to minimize badness in bother vertical and horizontal"
42 Optimal_page_breaking b (unsmob_paper_book (pb));
46 LY_DEFINE (ly_minimal_breaking, "ly:minimal-breaking",
48 "Break (pages and lines) the @code{Paper_book} object @var{pb}"
49 " without looking for optimal spacing: stack as many lines on"
50 " a page before moving to the next one.")
52 Minimal_page_breaking b (unsmob_paper_book (pb));
56 LY_DEFINE (ly_one_line_breaking, "ly:one-line-breaking",
58 "Put each score on a single line, and put each line on its own"
59 " page. The paper-width setting will be modified so that"
60 " every page will be wider than the widest line.")
62 One_line_page_breaking b (unsmob_paper_book (pb));