Changing first-system indent

2015-11-19 Thread David Sumbler
I have finally got to the stage of tidying up the score I have been
working on.

The top-level .ly file is structured like this:

\book {
  \paper { *variables* }
  \bookpart { *titlepage* }
  \bookpart {
\header { *variables* }
\score {
  { *first-movement-music* }
  \header { piece = "I" }
  \layout { } }
\score {
  { *second-movement-music* }
  \header { piece = "II" }
  \layout { } }
% etc.
}
  }
}

\book { *data-for-1st-violin-part* }

\book { *data-for-2nd-violin-part* }

% etc.


For the first movement of the score, I have Staff.instrumentName defined
for each instrument, and this requires an indent of 16mm.  However, in
subsequent movements I do not set Staff.instrumentName, so no indent is
required.

The variable 'indent' is defined in a \paper block, and I now see that
the lowest level context that a \paper block can appear in is \bookpart.

I could, of course, quite easily restructure the file so that each
movement is contained in a separate \bookpart, but this would mean that
each movement then starts on a new page.  This is not what I want: I
prefer the movements to follow one another with no page break to
emphasize the integrity of the whole work.

Is there a way round this problem?  In other words, is there some way I
can force the first system of the 2nd and subsequent movements to be
printed with no indent, without each movement necessarily appearing on a
new page?

David


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


Re: Changing first-system indent

2015-11-19 Thread David Sumbler
Thanks for the answer to my query.  I now see that this is mentioned in
section 4.1.5 of the NR.  The mistake I was making was in trying to put
indent within a \paper block inside a \layout block.

Best wishes

David

On Thu, 2015-11-19 at 15:31 +, Trevor Daniels wrote:
> David, you wrote Thursday, November 19, 2015 3:14 PM
> 
> 
> >I have finally got to the stage of tidying up the score I have been
> > working on.
> [snip]
> > For the first movement of the score, I have Staff.instrumentName defined
> > for each instrument, and this requires an indent of 16mm.  However, in
> > subsequent movements I do not set Staff.instrumentName, so no indent is
> > required.
> > 
> > The variable 'indent' is defined in a \paper block, and I now see that
> > the lowest level context that a \paper block can appear in is \bookpart.
> > 
> > I could, of course, quite easily restructure the file so that each
> > movement is contained in a separate \bookpart, but this would mean that
> > each movement then starts on a new page.  This is not what I want: I
> > prefer the movements to follow one another with no page break to
> > emphasize the integrity of the whole work.
> > 
> > Is there a way round this problem?  In other words, is there some way I
> > can force the first system of the 2nd and subsequent movements to be
> > printed with no indent, without each movement necessarily appearing on a
> > new page?
> 
> indent can also be set in a \layout block, which is at \score level.
> 
> Trevor



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


Re: Changing first-system indent

2015-11-19 Thread Trevor Daniels

David, you wrote Thursday, November 19, 2015 3:14 PM


>I have finally got to the stage of tidying up the score I have been
> working on.
[snip]
> For the first movement of the score, I have Staff.instrumentName defined
> for each instrument, and this requires an indent of 16mm.  However, in
> subsequent movements I do not set Staff.instrumentName, so no indent is
> required.
> 
> The variable 'indent' is defined in a \paper block, and I now see that
> the lowest level context that a \paper block can appear in is \bookpart.
> 
> I could, of course, quite easily restructure the file so that each
> movement is contained in a separate \bookpart, but this would mean that
> each movement then starts on a new page.  This is not what I want: I
> prefer the movements to follow one another with no page break to
> emphasize the integrity of the whole work.
> 
> Is there a way round this problem?  In other words, is there some way I
> can force the first system of the 2nd and subsequent movements to be
> printed with no indent, without each movement necessarily appearing on a
> new page?

indent can also be set in a \layout block, which is at \score level.

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