[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting paper for bookpart
From: |
David Kastrup |
Subject: |
Re: Setting paper for bookpart |
Date: |
Wed, 02 Aug 2017 15:46:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Thomas Morley <address@hidden> 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
- Setting paper for bookpart, Thomas Morley, 2017/08/02
- Re: Setting paper for bookpart,
David Kastrup <=
- Re: Setting paper for bookpart, Thomas Morley, 2017/08/02
- Re: Setting paper for bookpart, David Kastrup, 2017/08/02
- Re: Setting paper for bookpart, Thomas Morley, 2017/08/02
- Re: Setting paper for bookpart, David Kastrup, 2017/08/02
- Re: Setting paper for bookpart, Thomas Morley, 2017/08/02
- Re: Setting paper for bookpart, David Kastrup, 2017/08/02
- Re: Setting paper for bookpart, Thomas Morley, 2017/08/07
- Re: Setting paper for bookpart, David Kastrup, 2017/08/07
- Re: Setting paper for bookpart, Timothy Lanfear, 2017/08/02
- Re: Setting paper for bookpart, Thomas Morley, 2017/08/02