[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Layout integrating LaTeX and music
From: |
Helge Kruse |
Subject: |
Re: Layout integrating LaTeX and music |
Date: |
Sat, 29 Dec 2007 13:46:23 +0100 |
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" <address@hidden>
To: <address@hidden>
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
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user