]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4752/2: Regtest, Doc NR 4.3, Changes entry
authorPaul Morris <paulwmorris@gmail.com>
Mon, 14 Nov 2016 18:20:56 +0000 (13:20 -0500)
committerPaul Morris <paulwmorris@gmail.com>
Mon, 21 Nov 2016 14:48:43 +0000 (09:48 -0500)
Documentation/changes.tely
Documentation/notation/spacing.itely
input/regression/one-page-breaking.ly [new file with mode: 0644]

index 64707801d2c6cf9913948c66efe1b8c34956074d..2407b3d018f3c664b9e6c387b04647684db2cea4 100644 (file)
@@ -209,11 +209,12 @@ dimensions from a markup object, given as first argument.
 @end lilypond
 
 @item
-A new page breaking function @code{ly:one-line-auto-height-breaking}
-places a whole score on a single line and changes the page width
-to match, just like @code{ly:one-line-breaking}.  The difference is that
-it also automatically modifies the height of the page to fit the height
-of the music.
+There are two new page breaking functions.  @code{ly:one-page-breaking}
+automatically adjusts the height of the page to fit the music, so that
+everything fits on one page.  @code{ly:one-line-auto-height-breaking}
+is like @code{ly:one-line-breaking}, placing the music on a single
+line and adjusting the page width accordingly, however it also
+automatically adjusts the page height to fit the music.
 
 @item
 Markup-command @code{\draw-squiggle-line} is now available.
index 23ed5c0f308f7d26913e2c2c1ae407900124715a..9a4e91d49b287b2d867f15b826be8cdf3e3944d8 100644 (file)
@@ -892,8 +892,9 @@ Default values not listed here are defined in
 
 The page-breaking algorithm to use.  Choices are
 @code{ly:minimal-breaking}, @code{ly:page-turn-breaking},
-@code{ly:one-line-breaking}, @code{ly:one-line-auto-height-breaking},
-and @code{ly:optimal-breaking} (the default).
+@code{ly:one-page-breaking}, @code{ly:one-line-breaking},
+@code{ly:one-line-auto-height-breaking}, and @code{ly:optimal-breaking}
+(the default).
 
 @item page-breaking-system-system-spacing
 @funindex page-breaking-system-system-spacing
@@ -968,7 +969,9 @@ Notation Reference:
 @ref{Optimal page breaking},
 @ref{Optimal page turning},
 @ref{Minimal page breaking},
-@ref{One-line page breaking}.
+@ref{One-page page breaking},
+@ref{One-line page breaking},
+@ref{One-line-auto-height page breaking}.
 
 Installed Files:
 @file{ly/paper-defaults-init.ly}.
@@ -1560,6 +1563,7 @@ how to modify them.
 * Manual page breaking::
 * Optimal page breaking::
 * Minimal page breaking::
+* One-page page breaking::
 * One-line page breaking::
 * One-line-auto-height page breaking::
 * Optimal page turning::
@@ -1706,6 +1710,26 @@ Snippets:
 @rlsr{Spacing}.
 
 
+@node One-page page breaking
+@unnumberedsubsubsec One-page page breaking
+
+@funindex ly:one-page-breaking
+
+The @code{ly:one-page-breaking} function is a special-purpose
+page breaking algorithm that automatically adjusts the page height to
+fit the music, so that everything fits on a single page.  The
+@code{paper-height} variable in the paper block is ignored, but other
+settings work as usual.  In particular, the spacing between the last
+system (or top level markup) and the footer can be customized with
+@code{last-bottom-spacing} in the paper block.  The width of the page
+is left unmodified by default but can be set with @code{paper-width}
+in the paper block.
+
+@knownissues
+@code{ly:one-page-breaking} is not currently compatible with
+@code{\bookpart}.
+
+
 @node One-line page breaking
 @unnumberedsubsubsec One-line page breaking
 
diff --git a/input/regression/one-page-breaking.ly b/input/regression/one-page-breaking.ly
new file mode 100644 (file)
index 0000000..5f663a6
--- /dev/null
@@ -0,0 +1,14 @@
+\version "2.19.36"
+
+\header {
+  texidoc = "The @var{ly:one-page-breaking} algorithm puts everything
+on one page by adjusting the page-height to fit the content.
+"
+}
+
+\paper {
+  paper-width = 120
+  page-breaking = #ly:one-page-breaking
+}
+
+\include "typography-demo.ly"