|
From: | Graham Percival |
Subject: | Re: ragged-last-bottom only affects last score in book |
Date: | Mon, 03 Jul 2006 05:38:17 -0700 |
User-agent: | Thunderbird 1.5.0.4 (Macintosh/20060516) |
Nicolas Sceaux wrote:
Paul Scott <address@hidden> writes:Nicolas Sceaux wrote:Graham Percival <address@hidden> writes:Could ragged-last-bottom be changed to affect all scores in a book? Currently it only applies to the last one. (even better: could this be alterable in separate scores?)Still, it does not make sense to say that ragged-last-bottom should apply to the last page of a score, for this page could also be the first page on another score. What you and Graham seem to be requesting is a way to split a book into several sections, with a page break between sections, and the last page of a section with ragged-last-bottom.
Ok... if introducing sections is the easiest way to solve this.The only place in the source code that ragged-last-bottom appears is in scm/layout-page-layout.scm
... (this-page (make-page page-alist 'paper-book paper-book 'is-last last? 'page-number this-page-num)) (ragged-all? (eq? #t (ly:output-def-lookup paper 'ragged-bottom)))(ragged-last? (eq? #t (ly:output-def-lookup paper 'ragged-last-bottom)))
(ragged? (or ragged-all? (and ragged-last? last?))) (height (page-printable-height this-page)) (vertical-spacing (space-systems height current-lines ragged?)) ... I guess this problem boils down to 'is-last last?returning the final page of the book (as a boolean), rather than the final page of the current score.
Hmm, that still wouldn't let me alter the vertical spacing for the last page of different scores. I guess we'd need to make ragged-last-bottom a layout variable for that... maybe "book sections" is a better way to go after all.
Cheers, - Graham
[Prev in Thread] | Current Thread | [Next in Thread] |