jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
56 stars 11 forks source link

Insert option: "fullpage" with arbitrary page size #272

Open uliska opened 5 years ago

uliska commented 5 years ago

This issue supersedes #268 in order to distill the essence of that request without the noise. There may be thoughts to consider in that issue, though. @lemzwerg

In order to overcome a (seemingly unsolvable) limitation in lilypond-book-preamble.ly we should add an option to the insert= option that engraves a "fullpage" score with an arbitrary smaller paper size. Fullpage compilation is currently the only way to preserve LilyPond's vertical page layout, i.e. the spacing between systems, and in certain cases the results of insert=systems are unacceptably poor.

TODO (partially after more consideration/discussion):

I suggest to add one option (e.g. page-options, or anything corresponding to the final name of the insertion mode) rather than individual options for all configurable parameters. This option will then be parsed internally.

While the original request in #268 will only make sense with scores that are limited to one page I would not in any way limit the functionality in that direction because there are other use cases where multi-page scores can be useful as well, e.g. when creating "thumbnail"-like situations or a table with mulitple score pages placed on one paper page. Probably these would be handled with raw-pdf but I think we can simply ignore this for the implementation. When a user tries to put a two-page score in a figure environment they'll notice the issue themselves ;-)