>>>>> "Mats" == Mats Bengtsson <[EMAIL PROTECTED]> writes: >> The attached file does what I expect if I run ly2dvi on it. The >> spacing isn't optimal, but it comes out on 2 pages. However, if I >> use it as a \lilypondfile in the attached .lytex file and run >> lilypond-book on it, it claims it can't find a good spacing, and comes >> out with lots of really sparse lines on 4 pages. Mats> Interesting! The problem is not lilypond-book itself but that it Mats> set the line width to 390pt. With that linewidth it happens that Mats> the (invisible) bar line where Lilypond wants to break the line Mats> falls in the middle of a note because of Morley's intricate Mats> rhytms. That would explain why the problem went away when I made a pretty minor change to the lilypond. But it makes me nervous that this can pop up at any time. (I think it happened when I added the custos, but it might have been the incipit.) Mats> One solution is to add the property setting Mats> \property Score.barAlways=##t Mats> which allows Lilypond to insert line breaks between every Mats> single note, not just at every four quavers. I've thought about using that, and it does in fact fix this particular problem. But some of the people I play with used to complain when abc2ps would break a line in the middle of a "beat" (in this case, a half note), so I was thinking of the fact that lilypond puts in an invisible bar every so often as a feature. So if I did barAlways, I would have to check this carefully, and that's the kind of thing computers should do for you. So I tried changing the line width to 400 pt instead of 390 with the geometry package, and lilypond-book crashed on me: lilypond-book (GNU LilyPond) 1.4.2 Reading `/tmp/test.lytex' Reading `/tmp/lady-bassus.ly' Traceback (most recent call last): File "/usr/local/bin/lilypond-book", line 1270, in ? do_file(input_filename) File "/usr/local/bin/lilypond-book", line 1185, in do_file scan_preamble(chunks) File "/usr/local/bin/lilypond-book", line 649, in scan_preamble scan_latex_preamble(chunks) File "/usr/local/bin/lilypond-book", line 632, in scan_latex_preamble paperguru.set_geo_option(k, o[k]) File "/usr/local/bin/lilypond-book", line 185, in set_geo_option self.m_geo_width = value File "/usr/local/bin/lilypond-book", line 195, in __setattr__ f = dimension_conversion_dict[dim] NameError: There is no variable named 'dim' Here's the lytex file that did that:
\documentclass[12pt,letter]{book} % Specifies the document class \usepackage[letterpaper,width=400pt]{geometry} \begin{document} \addcontentsline{toc}{chapter}{Lady if I through griefe,} \markboth{Lady if I through griefe,}{Lady if I through griefe,} \section*{ XIIII. Lady if I through griefe, } \label{sec:lady} \subsection*{Bassus} \label{sec:ladybassus} \lilypondfile{lady-bassus.ly} \end{document}
-- Laura (mailto:[EMAIL PROTECTED] , http://www.laymusic.org/ ) (617) 661-8097 fax: (801) 365-6574 233 Broadway, Cambridge, MA 02139