Laura Conrad | 3 Aug 2012 22:59
X-Face

landscape mode in lilypond-book doesn't calculate line length correctly


When run on the attached file, lilypond-book sets the line length of the
music to be much less than the actual width of the page that latex is
using (which you can see by where it puts the footers.)

If you run:

   lilypond-book --pdf test.lytex
   pdflatex test.tex

you can see this.

If you comment out the \usepackage{geometry} line that has "landscape",
and use the line for portrait geometry, the line length of the music is
set correctly.

The landscape version works correctly in lilypond 2.12, but not in 2.14
or 2.15.

Attachment (test.lytex): application/octet-stream, 600 bytes

--

-- 
Laura   (mailto:lconrad <at> laymusic.org, twitter:  <at> serpentplayer)
(617) 661-8097	233 Broadway, Cambridge, MA 02139   
http://www.laymusic.org/ http://www.serpentpublications.org

Copyright law has abandoned its reason for being: to encourage
learning and the creation of new works. Instead, its principal
(Continue reading)

Ralph Palmer | 10 Aug 2012 14:25
Picon

Re: landscape mode in lilypond-book doesn't calculate line length correctly

On Fri, Aug 3, 2012 at 4:59 PM, Laura Conrad <lconrad <at> laymusic.org> wrote:

>
> When run on the attached file, lilypond-book sets the line length of the
> music to be much less than the actual width of the page that latex is
> using (which you can see by where it puts the footers.)
>
> If you run:
>
>    lilypond-book --pdf test.lytex
>    pdflatex test.tex
>
> you can see this.
>
> If you comment out the \usepackage{geometry} line that has "landscape",
> and use the line for portrait geometry, the line length of the music is
> set correctly.
>
> The landscape version works correctly in lilypond 2.12, but not in 2.14
> or 2.15.
>

Thank you for pointing this out, Laura. It has been submitted as issue 2732
:
http://code.google.com/p/lilypond/issues/detail?id=2732

Ralph
Laura Conrad | 11 Aug 2012 21:22
X-Face

Re: landscape mode in lilypond-book doesn't calculate line length correctly

>>>>> "Laura" == Laura Conrad <lconrad <at> laymusic.org> writes:

    Laura> When run on the attached file, lilypond-book sets the line
    Laura> length of the music to be much less than the actual width of
    Laura> the page that latex is using (which you can see by where it
    Laura> puts the footers.)

I think I have a clue as to the source of this problem.  I did
some investigation, since this is a blocking bug for a project with a
tight deadline in early September.

I looked at the lilypond-book python code, and it does indeed seem to be
setting the width wider for a landscape page than for a portrait page.
However, at some point when lilypond-book is running lilypond, I get the
following warning:

warning: systems run off the page due to improper paper settings,
setting default values

It looks like whatever code writes this warning thinks that no page
should ever be more than about 9 inches wide.  This might be good enough
for my purposes, although I was thinking about using smaller than 1 inch
margins, and certainly there are some purposes for which you would
definitely want minimal margins.

So can someone who understands where that message comes from check
whether there's some inappropriate hard coding of the maximum width of a
page which is too small for a letter paper in landscape?

--

-- 
(Continue reading)

David Kastrup | 11 Aug 2012 21:57
X-Face
Picon
Picon

Re: landscape mode in lilypond-book doesn't calculate line length correctly

Laura Conrad <lconrad <at> laymusic.org> writes:

>>>>>> "Laura" == Laura Conrad <lconrad <at> laymusic.org> writes:
>
>     Laura> When run on the attached file, lilypond-book sets the line
>     Laura> length of the music to be much less than the actual width of
>     Laura> the page that latex is using (which you can see by where it
>     Laura> puts the footers.)
>
> I think I have a clue as to the source of this problem.  I did
> some investigation, since this is a blocking bug for a project with a
> tight deadline in early September.
>
> I looked at the lilypond-book python code, and it does indeed seem to be
> setting the width wider for a landscape page than for a portrait page.
> However, at some point when lilypond-book is running lilypond, I get the
> following warning:
>
> warning: systems run off the page due to improper paper settings,
> setting default values
>
> It looks like whatever code writes this warning thinks that no page
> should ever be more than about 9 inches wide.  This might be good enough
> for my purposes, although I was thinking about using smaller than 1 inch
> margins, and certainly there are some purposes for which you would
> definitely want minimal margins.
>
> So can someone who understands where that message comes from check
> whether there's some inappropriate hard coding of the maximum width of a
> page which is too small for a letter paper in landscape?
(Continue reading)

Reinhold Kainhofer | 12 Aug 2012 11:30
Favicon
Gravatar

Re: landscape mode in lilypond-book doesn't calculate line length correctly

On 2012-08-11 21:57, David Kastrup wrote:
> Laura Conrad <lconrad <at> laymusic.org> writes:
>
>>>>>>> "Laura" == Laura Conrad <lconrad <at> laymusic.org> writes:
>>
>>      Laura> When run on the attached file, lilypond-book sets the line
>>      Laura> length of the music to be much less than the actual width of
>>      Laura> the page that latex is using (which you can see by where it
>>      Laura> puts the footers.)
>>
>> I think I have a clue as to the source of this problem.  I did
>> some investigation, since this is a blocking bug for a project with a
>> tight deadline in early September.
>>
>> I looked at the lilypond-book python code, and it does indeed seem to be
>> setting the width wider for a landscape page than for a portrait page.
>> However, at some point when lilypond-book is running lilypond, I get the
>> following warning:
>>
>> warning: systems run off the page due to improper paper settings,
>> setting default values
>>
>> It looks like whatever code writes this warning thinks that no page
>> should ever be more than about 9 inches wide.  This might be good enough
>> for my purposes, although I was thinking about using smaller than 1 inch
>> margins, and certainly there are some purposes for which you would
>> definitely want minimal margins.
>>
>> So can someone who understands where that message comes from check
>> whether there's some inappropriate hard coding of the maximum width of a
(Continue reading)

David Kastrup | 12 Aug 2012 13:48
Picon
Picon

Re: landscape mode in lilypond-book doesn't calculate line length correctly

Reinhold Kainhofer <reinhold <at> kainhofer.com> writes:

> On 2012-08-11 21:57, David Kastrup wrote:
>> Fragments may use the
>>
>> `papersize=STRING'
>>       Where STRING is a paper size defined in `scm/paper.scm' i.e.
>>       `a5', `quarto', `11x17' etc.
>>
>>       Values not defined in `scm/paper.scm' will be ignored, a warning
>>       will be posted and the snippet will be printed using the default
>>       `a4' size.
>>
>> option.  Embarrassingly, there is no way to get a4 landscape in
>> LilyPond-book right now, but a3 should do the trick I guess, at some
>> loss of performance.
>>
>> Inside of LilyPond, #(set-default-paper-size "a4" 'landscape) would
>> work.
>
> Hmm, to make life for .ly file generators easier, maybe it would be a
> good idea to additionally define paper sizes a4landscape and the
> like...

<URL:http://code.google.com/p/lilypond/issues/detail?id=2737>

And inside of LilyPond-book, #(set-default-paper-size "a4" 'landscape)
as opposed to #(set-default-paper-size "a4landscape") would also likely
cause an unwanted rotation.

(Continue reading)

Laura Conrad | 14 Aug 2012 00:11
X-Face

Re: landscape mode in lilypond-book doesn't calculate line length correctly

>>>>> "David" == David Kastrup <dak <at> gnu.org> writes:

    David> Fragments may use the

    David> `papersize=STRING'
    David>      Where STRING is a paper size defined in `scm/paper.scm' i.e.
    David>      `a5', `quarto', `11x17' etc.

    David>      Values not defined in `scm/paper.scm' will be ignored, a warning
    David>      will be posted and the snippet will be printed using the default
    David>      `a4' size.

    David> option.  Embarrassingly, there is no way to get a4 landscape in
    David> LilyPond-book right now, but a3 should do the trick I guess, at some
    David> loss of performance.

    David> Inside of LilyPond, #(set-default-paper-size "a4" 'landscape) would
    David> work.

Thanks, that's a good workaround.  What I'm actually doing is using:

        \lilypondfile[papersize=11x17,staffsize=24]{filename.ly}

since I have a lot of lilypond files in this book,  and only one
lilypond-book file for this project.

--

-- 
Laura   (mailto:lconrad <at> laymusic.org, twitter:  <at> serpentplayer)
(617) 661-8097	233 Broadway, Cambridge, MA 02139   
http://www.laymusic.org/ http://www.serpentpublications.org
(Continue reading)


Gmane