lilypond-user
[Top][All Lists]
Advanced

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

Re: Nesting paper blocks


From: Kevin Barry
Subject: Re: Nesting paper blocks
Date: Thu, 19 Mar 2020 21:29:23 +0000

Hi Peter,

I accomplish something similar by putting paper definitions into
various .ily files. Then just include the ones I want with \include.
It seems it's OK to have multiple \paper blocks as a result of many
\includes. Have you tried that?

Kevin

On Thu, 19 Mar 2020 at 17:45, Peter Crighton <address@hidden> wrote:
>
> Hello all,
>
> I have my paper variables split up across separate files. Depending on the 
> project I am working on, I need to include several of them. paperGlobal is 
> always included, paperSize depends on the paper size I want to produce, and 
> paperCategory depends on what type of project I am working on. I can use 
> paperGlobal from inside paperSizeX, but to allow for flexibility it is not 
> possible (or at least desirable) to nest them further and use paperSizeX 
> inside of paperCategoryX.
> See the commented line below for what I am trying to achieve, which is not 
> possible. Is there any way to inject the content of a variable directly into 
> the paper block like I am trying to do there?
>
> \version "2.20.0"
>
> paperGlobal = \paper {
>   indent = 0
> }
>
> paperSizeOne = \paper {
>   \paperGlobal
>   line-width = 10 \cm
> }
>
> paperCategoryThree = \paper {
>   system-system-spacing.basic-distance = 30
> }
>
> \paper {
>   \paperSizeOne
>   % \paperCategoryThree
> }
>
> \relative c' {
>   c1 \break
>   c1
> }
>
> Thanks,
> Peter
>
> --
> Peter Crighton | Musician & Music Engraver based in Mainz, Germany
> http://www.petercrighton.de



reply via email to

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