Menu

#1595 lilypond-book papersize gives margin warnings

Accepted
nobody
None
Maintainability
2015-10-22
2011-04-06
Anonymous
No

Originally created by: *anonymous

Originally created by: percival.music.ca@gmail.com
Originally owned by: reinhold...@gmail.com

  Trying to compile the regtest added here:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=commit;h=66b49771545a61b591b529330797163ff42e2e8f
  (the commit message includes build instructions)
  produces
warning: systems run off the page due to improper paper settings, setting default values

  This happens from
lily/output-def.cc
  and it apparently referring to line width, left margin, and right margin.

The pdf output looks good-ish.  I mean, it looks good for the stuff I've tested it with, but I have no clue how large c9 actually is, nor whether we're losing margins or whatever.

It would be nice if somebody investigated this, although it's a bit tricky -- the problem may lie in lilypond-book, or in the scheme internals, or the initial values in scm/, etc.

Discussion

  • Google Importer

    Google Importer - 2011-08-15

    Originally posted by: reinhold...@gmail.com

    Thats a lilypond-book issue. The problem is that lilypond-book determines the line-length as 160\mm and inserts this into the file. However, the paper size says its a8 (7.425 x 5.3 cm), so the line width is larger than the paper.

    I suppose we shouldn't use a line-width at all if we have a paper size...

    Owner: reinhold...@gmail.com
    Status: Started

     
  • Google Importer

    Google Importer - 2011-08-15

    Originally posted by: percival.music.ca@gmail.com

    At first glance, I think that using paper size exclusively would fix the "instrument name / bar numbers" problem as well.
    - latex tells lilypond-book how much space it can use.
    - lilypond-book sets its internal page width accordingly
    - lilypond sets its line-width automatically based on the page width coming from lilypond-book

    It can't be this simple, though; what am I missing?

     
  • Google Importer

    Google Importer - 2011-08-20

    Originally posted by: percival.music.ca@gmail.com

    (No comment was entered for this change.)

    Labels: -Maintainability Type-Maintainability

     
  • Google Importer

    Google Importer - 2011-09-03

    Originally posted by: reinhold...@gmail.com

    Using paper size does not solve the problem, AFAICS. We are currently obtaining the correct line width from latex/texinfo, and lilypond-book sets this width accordingly and passes it to lilypond. There are just a few problems:
    1) If you give lilypond a line-width of, say, 154mm, the created image WILL be larger (the line-width is 154mm, but there is a bar line on the right, which can't be cut in the middle, so the image is cropped after the barline, adding some space).
    2) The other problem is how lilypond handles line-width, paper-size and the margins. There is no way to increase the left/right margin for quote by a given amount. Rather, one has to give the new margins or line-width in absolute values. Now, the problem is that in lilypond-book, we only have the auto-detected line-width and nothing else. if paper-size is given, we don't really have the paper-width, the margins or the line-width (short of hardcoding most paper-sizes and margins in lilypond-book, too). Now, with quote we need to increase the left margin by 0.4in... The #(set-paper-size...) clears the line-width variable, so we cannot adjust  an existing line-width, but if we are using auto-detected variables, we only have line-width available to adjust. In other words, the handling of the quote options needs to be different, depending on whether papersize was given or not. Lilypond-book's structure, on the other hand, is designed so that each option can more or less be handled independently from the others...

     
  • Google Importer

    Google Importer - 2011-09-03

    Originally posted by: percival.music.ca@gmail.com

    I still think an *internal* (see later definition) paper size would work.

    Steps:
    1. latex tells lilypond-book how much horizontal space it can use.
    2. lilypond-book does subtractions for quote and related options.
    3. lilypond-book tells lilypond how much horizontal space it can use.
    4. lilypond creates an image that corresponds to that horizontal space.

    The problem is that at the moment step 3 is done in terms of line-width, but line-width does not include the instrument name (and other non-staff horizontal width).  I think that if lilypond-book told lilypond that the paper width was something like 150mm (not hard-coded; I'm just guesstimating what would be left on an a4 paper, after latex margins and lilypond-book margins like quote), then lilypond would / should be able to figure out that if it has an instrument name that's 25mm long and needs 5mm padding, then the staff line width should be 120mm.

     
  • Google Importer

    Google Importer - 2015-07-19

    Originally posted by: simon.al...@mail.de

    (No comment was entered for this change.)

    Labels: -Priority-Medium

     
  • Trevor Daniels

    Trevor Daniels - 2015-10-22
    • Description has changed:

    Diff:

    
    
    • status: Started --> Accepted
    • Needs: -->
    • Patch: -->
     
  • Trevor Daniels

    Trevor Daniels - 2015-10-22

    As this issue has no patch, no owner, and no activity for over 4 years I'm reverting the Status to Accepted.

     
MongoDB Logo MongoDB