[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Non-local page-break oddities
From: "Joel C. Salomon" <joelcsalomon () gmail ! com>
Date: 2023-04-25 15:41:05
Message-ID: 17720dc0-7794-9420-1240-d115b8cb0faf () gmail ! com
[Download RAW message or body]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p class="moz-cite-prefix">On 4/25/23 01:41, William Rehwinkel
wrote:</p>
<blockquote type="cite"
cite="mid:962a1e84-f24c-16f3-e671-ff5d3245b9dd@williamrehwinkel.net">
<p> I think that using multiple bookparts is a perfect strategy
for this document based on this example, in which each score
should nicely start on a new page. </p>
<p> Without any minimal examples, it is hard to determine what
exactly is causing the bad page-breaking results, maybe you are
using the optimal-page-turn algorithm for example. </p>
</blockquote>
<p>Thanks for reminding me about the various page break algorithms.
I’d found that when I last had a chance to work on this project,
but had not made a note for myself before putting the work away.</p>
<p class="moz-cite-prefix">On 4/25/23 01:49, Jean Abou Samra wrote:</p>
<blockquote type="cite"
cite="mid:cab86c780e7a83ae793fd77665076de7ce87a140.camel@abou-samra.fr">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Le lundi 24 avril 2023 à 23:33 -0400, Joel C. Salomon a écrit :</p>
<blockquote type="cite">
<pre><code>\book {
…
\pageBreak
\scoreXXXI
\scoreXXXII
\pageBreak
\scoreXXXIII
\paper { min-systems-per-page = 2 }
\scoreXXXIV
}</code></pre>
</blockquote>
<p>This doesn't do what you think. In <code>\book</code>, a <code>\paper</code>
occurring anywhere applies to the <em>entire</em> book, not
only to the scores that follow it.</p>
</blockquote>
<p>Interesting. When I experimented, it did seem as if `<font
face="monospace">min-systems-per-page = 2</font>` was, in fact,
only effective for that last score. Probably some complicated
consequences of the page-breaking algorithm instead.<br>
</p>
<blockquote type="cite"
cite="mid:cab86c780e7a83ae793fd77665076de7ce87a140.camel@abou-samra.fr">
<blockquote type="cite">
<p>(It looks like perhaps using <code>\bookpart</code> around
chunks of the book might help, but that re-prints the book
header when I don’t want it to, and I’m not seeing how to
suppress that.)</p>
</blockquote>
<p>Try</p>
<pre><code> \bookpart {
\paper {
bookTitleMarkup = ##f
}
...
}</code></pre>
</blockquote>
<p>Between both of you, I’ve got</p>
<pre><code> \book {
\paper {
page-breaking = #ly:optimal-breaking
max-systems-per-page = 8 min-systems-per-page = 5
}
\scoreI
\bookpart {
\paper { max-systems-per-page = 9 min-systems-per-page = 7 bookTitleMarkup = #f }
\header { copyright = #f }
\scoreII
}
\bookpart {
\paper { bookTitleMarkup = #f } \header { copyright = #f }
\scoreIII
}
…
}/code></code></pre>
<p>working, with overrides for min/max as needed (as shown). Thank
you both!<br>
</p>
<p>Is there a way to have</p>
<pre><code> \paper { bookTitleMarkup = #f } \header { copyright = #f }</code></pre>
<p>be the default for bookparts in my project? There’s
bookTitleMarkup and scoreTitleMarkup but no bookpartTitleMarkup
that I can see.<br>
</p>
<p>—Joel</p>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic