lilypond-user
[Top][All Lists]
Advanced

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

Re: Protecting against page breaks in markup


From: Lukas-Fabian Moser
Subject: Re: Protecting against page breaks in markup
Date: Wed, 28 Nov 2018 15:45:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1


Sorry, I should have made it clearer that this index is being
automatically generated. Now you point out that there is an
\autoOageBreaksOff, which is what I thought I needed, I realize that it
wouldn't help - I would need to turn them off and back on between each
entry in the hope that LilyPond would take advantage of such an Off/On
sequence to insert a page break in between if needed, which I'm sure it
wouldn't :(

I'm not sure I understand you correctly, but it is perfectly possible to forbid page breaks between arbitrary markup lines:

\version "2.19.80"

three-line-entry = #(define-void-function (a b c) (string? string? string?)
          (add-text a)
          (add-music #{ \noPageBreak #})
          (add-text b)
          (add-music #{ \noPageBreak #})
          (add-text c)
          )

#(do ((i 1 (1+ i)))
   ((> i 200))
  (three-line-entry "Entry nr.:" (number->string i) "End of entry. Only good place for page break."))

Best
Lukas




reply via email to

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