Postby Joermungand » Fri Aug 02, 2013 9:23 am
OK, I got to the bottom of this. The whole thing about cropping is that the coordinates should be given in bp (big point; 1 in = 72 bp; 1 cm = 72/2.54 bp). It turns out the LyX dialogue will not allow you to input units (e.g. 20 cm) hence you will have to convert all coordinate values to bp. All coordinates are measured from the lower left corner of the Lilypond page (which is the normal page size on your system (mine is A4)), so you need to input the x and y coordinates of the crop’s bottom left and top right corners respectively, with respect to the whole (Lilypond) page.
You can see the values in the LyX file I’ve attached and the resulting pdf.
Of course, fiddling with values is not exactly anyone’s idea of fun. I got much quicker results by using LyX’s ‘LilyPond Book’ module (Document > Settings > Modules). This provides you with a custom inset (available under Insert > Custom insets), which will allow you to paste the Lilypond code directly in the document and will result in an appropriately cropped picture.
Please let me know if it works any better.
You do not have the required permissions to view the files attached to this post.