lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 2732 in lilypond: landscape mode in lilypond-b


From: lilypond
Subject: Re: [Lilypond-auto] Issue 2732 in lilypond: landscape mode in lilypond-book doesn't calculate line length correctly
Date: Sun, 12 Aug 2012 13:10:52 +0000

Updates:
        Labels: Patch-new

Comment #4 on issue 2732 by address@hidden: landscape mode in lilypond-book doesn't calculate line length correctly
http://code.google.com/p/lilypond/issues/detail?id=2732#c4

Fix 2732: Extract the full page geometry in lilypond-book

So far, lilypond-book tried to extract the line-width from the latex settings, but not the full page geometry (height, width, margins). Instead, it simply used
the extracted line-with with the default paper size.

If the latex paper size is larger than the lilypond default paper size, then the line-width will be larger than the page. Lilypond detects this and ignores the
wrong line-width.

The proper solution is to extract the full page geometry from the latex document
and use that for the lilypond snippet, too (unless an explicit papersize or
line-width was given, of course...)

As a side-effect, we now have some more snippet options:
-) paper-width
-) left-margin

-) paper-height
-) top-margin
-) bottom-margin

The latter options only have an effect on vertical stretching of multi-staff groups.

This patch also fixes a small mis-calculation of the text-width for multi-column texts (the columnsep was subtracted only once rather than once per separation...)

http://codereview.appspot.com/6454139




reply via email to

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