|
From: | Mats Bengtsson |
Subject: | Re: vertical margins in lilypond-book |
Date: | Mon, 01 Aug 2005 17:06:32 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 |
Graham has clearly pointed out a bug. It's easier to see in the following example: \documentclass[letterpaper]{article} \usepackage{graphics} \begin{document} \begin{lilypond} \score { \new StaffGroup \new Staff \relative c' { \repeat unfold 8 {c4 c c c } \break \repeat unfold 8 {d4 d d d } \break \repeat unfold 8 {e4 e e e } \break \repeat unfold 8 {f4 f f f } \break \repeat unfold 8 {g4 g g g } \break }} \end{lilypond} \end{document} What seems to happen is that when the bar numbers get two digits, then they start sticking out to the left of the staff so the left edge of the bounding box of the .eps files changes. The same problem appears much more pronounced if you set \set Staff.instrument = "..." which gives a first line that is totally misplaced with respect to the others. So, the current solution in lilypond-book for LaTeX with separate .eps files for each score line definitely needs some polishing before it gets useful. /Mats Graham Percival wrote:
On 7-Jul-05, at 3:48 AM, Mats Bengtsson wrote:It's certainly possible to let lilypond-book automatically detect the text height of the LaTeX document and set the vsize correspondingly. However, it's not so much use since 1. It's only relevant when you explicitly have a \book{..} in your .ly code (which it turn is mainly useful to be able to use \pagebreak in the .ly code)It also avoids some other problems -- the first few lines are shifted to the left (relative to the other lines): \documentclass[letterpaper]{article} \usepackage{graphics} \begin{document} \begin{lilypond} \score { \relative c' { \repeat unfold 8 {c4 c c c } \break \repeat unfold 8 {d4 d d d } \break \repeat unfold 8 {e4 e e e } \break \repeat unfold 8 {f4 f f f } \break \repeat unfold 8 {g4 g g g } \break }} \end{lilypond} \end{document}Basically, lilypond-book without \book is only usable for single-line examples. That's ok; it's still useful for musicological documents. But as a mechanismfor publishing music, you need to use \book{}.2. If you already have some commands in your .ly code that affects the page size, then they will override the setting done by lilypond-book, since lilybook inserts the commands at the top of the code.The only reason to have such commands is as a workaround for these bugs. :) Cheers, - Graham _______________________________________________ lilypond-devel mailing list address@hidden http://lists.gnu.org/mailman/listinfo/lilypond-devel
-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: address@hidden WWW: http://www.s3.kth.se/~mabe =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |