vote up 1 vote down star

In Lilypond the paper size can be set to A4, A5, Letter and so forth. However I have only a short song, and I want to embed it lateron. Therefore the output from Lilypond must be cropped somehow.

Is there a possibility to let Lilypond itself do this? Some setting to the \paper{} block, perhaps?

flag

75% accept rate

This question has an open bounty worth 100 reputation ending in 2 days.

2 Answers

vote up 0 vote down

From the Lilypond manual:

Extra sizes may be added by editing the definition for paper-alist in the initialization file scm/paper.scm.

You can therefore add your own page sizes to the default ones.

link|flag
1  
Yes, I read that, too, but actually I have several songs, and doing trial-and-error with each to find the correct height and then editing paper.scm for each is a bit of a hassle. Auto-cropping to the minimum width/height would be much, much more useful. – Boldewyn Jan 18 at 14:39
vote up 0 vote down

You can use the -dpreview command-line option if you want only the first system, or have ImageMagick convert autocrop it, e.g. via a shell script.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.