Patrick,

(La)TeX just sets boxes of objects on a base line. You can see this when you change your sample in this way:

Bli bla blub, bla bla bla bla bla bla bla (%
\frame{\lilypond[fragment,staffsize=6]{
 \override Staff.TimeSignature #'style = #'() \time 4/4
 \override NoteHead #'style = #'cross f''4 f''8 f'' f''4 f''8 f''
}}) bla bla bla bla bla bla bla bla, bli bla blub!

The base line of the lilypond fragment is identical with the letter's base line. When you add some lines of text before the snippet you see that the snippet is a bit too high and the distance to preceeding line is to large.

You can lower the lilypond fragment in this way:

Bli bla blub, bla bla bla bla bla bla bla (%
\lower2.5pt\hbox{\lilypond[fragment,staffsize=6]{
 \override Staff.TimeSignature #'style = #'() \time 4/4
 \override NoteHead #'style = #'cross f''4 f''8 f'' f''4 f''8 f''
}}) bla bla bla bla bla bla bla bla, bli bla blub!


Regards,
Helge

----- Original Message ----- From: "Patrick Schmidt" <[EMAIL PROTECTED]>
To: <lilypond-user@gnu.org>
Sent: Saturday, December 29, 2007 12:23 PM
Subject: Layout integrating LaTeX and music


Dear all,

I'm trying to integrate Lilypond fragments (Version 2.11.34) in a LaTeX document. Here is a minimal example:


\documentclass[a4paper]{article}
\begin{document}

Bli bla blub, bla bla bla bla bla bla bla (\lilypond[fragment,staffsize=6]{\override Staff.TimeSignature #'style = #'()\time 4/4 \override NoteHead #'style = #'cross f''4 f''8 f'' f''4 f''8 f''}) bla bla bla bla bla bla bla bla, bli bla blub!

\end{document}

Everything works fine apart from some details concerning the layout.

1) There is too much space between the brackets and the fragment

2) The fragment itself seems to be typeset higher than the text level

Does anybody know a solution to this? Is it a LaTeX or a Lilypond "problem"?

Thanks very much for your help and a happy new year!

PLS



--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to