Thomas Morley <thomasmorle...@gmail.com> writes:

> Hi all,
>
> consider the following code, setting a header to a bookpart:
>
> bkI = \bookpart { { r1 } }
> #(ly:book-set-header! bkI #{ \header { title = "TITLE" } #})
> #(collect-bookpart-for-book bkI)
>
> All fine, but how to do with a bookpart-paper?
> If I'm not mstaken we don't have something like ly:book-set-paper!
> Currently I use sort of a workaround:
>
> pap = \paper { }
> #(ly:output-def-set-variable! pap 'ragged-right #f)
> bkII = \bookpart { $pap { r1 } }


bkII =
\bookpart {
  \bkII
  \paper { ragged-right = ##f }
}

Or just:

#(ly:output-def-set-variable! (ly:book-paper bkII) 'ragged-right #f)

> #(ly:book-set-header! bkII #{ \header { title = "SECOND-TITLE" } #})
> #(collect-bookpart-for-book bkII)
>
> Any better way?
>
>
> Thanks,
>   Harm

-- 
David Kastrup

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

Reply via email to