When you don't specify a \score{...} in your lilypond code,
lilypond-book will assume that the music example is a short
example that will fit into a single line and therefore sets
raggedright. This will also happen as soon as you explicitly
specify \begin[fragment]{lilypond}.
I'm not sure if this is always reasonable, there should at least
be an option noraggedright, or whatever. Anyway, the workaround
for you is to add
\score{\notes{...}}
around your music. Also, I would recommend a \relative c' to
save typing all these quotes.

   /Mats

Ben Crowell wrote:
After upgrading from lilypond 2.0 to 2.2, I've been trying to get
my book to compile again, and I think I've solved all the problems
except that all my music now gets typeset ragged right. The following
is a minimal example.

\documentclass{article}
\begin{document}
\begin{lilypond}
c'4 d' e' f' | c'4 d' e' f' | c'4 d' e' f' |
c'4 d' e' f' | c'4 d' e' f' | c'4 d' e'2 |
c'4 d' e' f' | c'4 d' e' f' | c'4 d' e' f' |
\end{lilypond}
\end{document}

Can anyone suggest a workaround, confirm that this is actually a bug,
or tell me if the problem would be solved by upgrading to lilypond
2.3? I browsed the mailing list archives for the last few months,
and the only thing that appeared relevant was this:
  http://lists.gnu.org/archive/html/lilypond-devel/2004-10/msg00088.html
Is this referring to the same problem?

Thanks in advance for any help!


_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user

-- ============================================= 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: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe =============================================


_______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to