Titles don't follow leftmargin and linewidth

2004-09-13 Thread Antti Kaihola
I want to print a narrow score centered on the paper. When I specify
both leftmargin and linewidth, I get the music to align as I'd like to,
but the titles don't seem to follow the new right margin which is
implied by my settings.

Also, for some reason LilyPond won't break staves in the example below,
and the result is terribly dense.

I found one thread[1] on lilypond-devel where margins and page layout
were discussed before.

This happens in 2.3.15 on Linux.

Here's an example score:



\header {
title = "Title goes too much to the right"
composer = "Composer goes too much to the right"
}

\score {
\new Staff \relative c' { 
g f e g | f e d f | e d c e |
d c b g | a c b d | c1 \bar "|." }
\paper { linewidth = 100 \mm }
}

\bookpaper { leftmargin = 50 \mm }



[1] http://lists.gnu.org/archive/html/lilypond-devel/2004-07/msg00112.html



___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: Titles don't follow leftmargin and linewidth

2004-09-13 Thread Pedro Kroger
Antti Kaihola <[EMAIL PROTECTED]> writes:

> I want to print a narrow score centered on the paper. When I specify
> both leftmargin and linewidth, I get the music to align as I'd like to,
> but the titles don't seem to follow the new right margin which is
> implied by my settings.

In that case linewidth only affects the music, not the titles. You
should put linewidth inside \bookpaper. I also advise you tho put
bookpaper before any paper command. This should give the output you
want:


\header {
title = "Title goes too much to the right"
composer = "Composer goes too much to the right"
}

\bookpaper {
leftmargin = 50 \mm
linewidth = 100 \mm 
}

\score {
\new Staff \relative c' { 
g f e g | f e d f | e d c e |
d c b g | a c b d | c1 \bar "|." }
}

Cheers,

Pedro Kroger


___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Landscape cancels linewidth (was: Titles don't follow leftmargin and linewidth)

2004-09-15 Thread Antti Kaihola
On 2004-09-13 at 14:25 -0300, Pedro Kroger wrote:

> In that case linewidth only affects the music, not the titles. You
> should put linewidth inside \bookpaper. I also advise you tho put
> bookpaper before any paper command.

Thanks! Your corrected example below works ok for portrait paper.
However, I run into problems again if I want to get landscape pages:
With

  \bookpaper {
#(set-default-paper-size "a4" 'landscape)
leftmargin = 50 \mm
linewidth = 100 \mm 
  }

, I still get a portrait page. By moving set-default-paper-size to a new
\paper section:

  \paper { 
#(set-default-paper-size "a4" 'landscape) 
  }

, I get a landscape page, but the music won't obey the linewidth.
If I do

  \paper { 
#(set-default-paper-size "a4" 'landscape) 
linewidth = 100 \mm
  }

the music is now 100 mm narrow, but the titles are still wide.

To me it looks like using set-default-paper-size somehow "forgets" about
\bookpaper settings.


Pedro wrote:
> This should give the output you want:
> 
> 
> \header {
> title = "Title goes too much to the right"
> composer = "Composer goes too much to the right"
> }
> 
> \bookpaper {
> leftmargin = 50 \mm
> linewidth = 100 \mm 
> }
> 
> \score {
> \new Staff \relative c' { 
> g f e g | f e d f | e d c e |
> d c b g | a c b d | c1 \bar "|." }
> }




___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond


Landscape cancels linewidth (was: Titles don't follow leftmargin and linewidth)

2004-09-15 Thread Han-Wen Nienhuys
[EMAIL PROTECTED] writes:
> On 2004-09-13 at 14:25 -0300, Pedro Kroger wrote:
> 
> > In that case linewidth only affects the music, not the titles. You
> > should put linewidth inside \bookpaper. I also advise you tho put
> > bookpaper before any paper command.
> 
> Thanks! Your corrected example below works ok for portrait paper.
> However, I run into problems again if I want to get landscape pages:
> With
> 
>   \bookpaper {
> #(set-default-paper-size "a4" 'landscape)
> leftmargin = 50 \mm
> linewidth = 100 \mm 
>   }
> 
> , I still get a portrait page. By moving set-default-paper-size to a new
> \paper section:

I think it should be

#(set-default-paper-size "a4" 'landscape)
\bookpaper {
   linewidth = ..
}


-- 

 Han-Wen Nienhuys   |   [EMAIL PROTECTED]   |   http://www.xs4all.nl/~hanwen 



___
bug-lilypond mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-lilypond