lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppressing \pageBreak within score


From: Jan-Peter Voigt
Subject: Re: Suppressing \pageBreak within score
Date: Tue, 21 Feb 2012 09:37:37 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

Hello Ralph, hello Harm,

I tested the following, wich seems to allow page-breaking as expected. The page-break-permission is, although dedicated to score, found in the global context above the current actual musical score. Setting (overriding) it affects all following scores and markups. (question to the devels: is this right?) Now I override it in the global context and do a once override after each score to allow page-breaking:
--snip--
\paper {
  ragged-last-bottom = ##f
}
\layout {
  \context {
    \Score
    \override NonMusicalPaperColumn #'page-break-permission = ##f
  }
}

mus = \relative c'' { \repeat unfold 32 { \repeat unfold 8 { c8 } } \bar "|." }

\book {
  \score {
    \new Staff \mus
  }
  \once \override Score.NonMusicalPaperColumn #'page-break-permission = ##t
  \score {
    \new Staff \mus
  }
  \once \override Score.NonMusicalPaperColumn #'page-break-permission = ##t
  \score {
    \new Staff \mus
  }
  \once \override Score.NonMusicalPaperColumn #'page-break-permission = ##t
  \score {
    \new Staff \mus
  }
  \once \override Score.NonMusicalPaperColumn #'page-break-permission = ##t
  \score {
    \new Staff \mus
  }
  \once \override Score.NonMusicalPaperColumn #'page-break-permission = ##t
  \score {
    \new Staff \mus
  }
}
--snip--

HTH
Cheers, Jan-Peter

On 16.02.2012 01:56, Thomas Morley wrote:
Hi Ralph,

2012/2/15 Ralph Palmer<address@hidden>:

I'm transcribing / transposing a bunch of celtic / contra / dance tunes to
play on the viola. Most of these are 16 or 20 bars long. I'm using the
following structure :
\book {
   \score {}
   \score {}
   \score {}
% etc.
}

I would like to :
1) have LilyPond put as many complete scores as possible on each page;
2) have LilyPond *not* make a page break within a score, if possible; and
3) have LilyPond allow a page break within a score, if there's no way that
score can fit on a single page.

I believe I have no scores that would run over one page if the score is the
only one on the page, so the requirements could probably be limited to "as
many scores as possible on each page, and no page breaking within a score".
I've done this in the past with manual page breaks, but I'm up over 100
tunes, and it's tedious to redo all the \pageBreaks whenever I add a tune in
the middle (alphabetical order and all).

Is this feasible?

I appreciate your time and attention,

Ralph
I tested to insert

myLayout = \layout {
                \context {
                        \Score
                        \override NonMusicalPaperColumn
                                #'page-break-permission = ##f
                
                }
}

in every score.
and then:

mus = \relative c'' { \repeat unfold 16 { \repeat unfold 8 { c8 } } \bar "|." }

\book {
\score {
           \new Staff \mus
           \layout { \myLayout }
   }
\score {
           \new Staff \mus
           \layout { \myLayout }
   }
% ...
% ...
% ...
}

I thought it would be limited to the current score, but it affects the
whole book.

That's intersesting.

But doesn't help.


Sorry,
   Harm

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

[Prev in Thread] Current Thread [Next in Thread]