[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-devel
Subject: Re: page-turning using correct page numbers
From: Joe Neeman <joeneeman () gmail ! com>
Date: 2006-09-30 21:48:08
Message-ID: 1159652888.28561.48.camel () joe ! neeman
[Download RAW message or body]
On Sat, 2006-09-30 at 11:47 +0200, Han-Wen Nienhuys wrote:
> Joe Neeman schreef:
> > This is sort of a bug fix, but I thought I'd post it instead of
> > committing because it changes behaviour. In current lily CVS, it's
> > assumed that the first page of a book is always the left-hand page. This
> > is usually false: odd-numbered pages should go on the right and the
> > first page is usually page number 1. This patch fixes that. If the first
> > page number is odd, the page turn page-breaker will put its first page
> > turn after 1 page instead of after 2.
>
> cool - I trust your judgement regarding the page breaking code, so feel
> free to apply.
Done. And here is some suggested documentation.
["tmp.patch" (tmp.patch)]
Index: ChangeLog
===================================================================
RCS file: /sources/lilypond/lilypond/ChangeLog,v
retrieving revision 1.5344
diff -u -r1.5344 ChangeLog
--- ChangeLog 30 Sep 2006 20:59:53 -0000 1.5344
+++ ChangeLog 30 Sep 2006 21:46:26 -0000
@@ -1,5 +1,8 @@
2006-10-01 Joe Neeman <joeneeman@gmail.com>
+ * Documentation/user/page.itely (Page formatting):
+ document auto-first-page-number
+
* lily/page-spacing.cc (compress_lines, uncompress_solution):
handle correctly the case where there are multiple \noPageBreaks
in a row.
Index: Documentation/user/page.itely
===================================================================
RCS file: /sources/lilypond/lilypond/Documentation/user/page.itely,v
retrieving revision 1.11
diff -u -r1.11 page.itely
--- Documentation/user/page.itely 22 Sep 2006 08:12:22 -0000 1.11
+++ Documentation/user/page.itely 30 Sep 2006 21:46:26 -0000
@@ -268,6 +268,14 @@
spacing. High values will make page spacing more important. Default
value is 1.
+@funindex auto-first-page-number
+@item auto-first-page-number
+Whether the first page number is odd or even page affects the
+page-turn-page-breaking algorithm. If this variable is set to #t, the
+page-turn-page-breaking algorithm will decide for itself whether it is
+better to start with an odd or an even page number. The first page number
+will either be left alone or increased by one.
+
@end table
@end quotation
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic