Hi Mats,
as usual, your advice is invaluable. I am getting somewhere, just not
quite there yet.
At Mon, 21 May 2007 13:11:53 +0200,
Mats Bengtsson <[EMAIL PROTECTED]> wrote:
>
> You can simply insert short LilyPond examples in the middle of ordinary
> text. Example:
The first part of the example works fine. The second produces three
pages, mostly empty. It seems that the output of the non-fragment is
a big chunk, the bounding box is something like 800x600.
I can do something with the first example. However, it requires me to
suppress the staff if I only want the note. I grabbed the below from
the lilypond manual (Rhythm section). Because the staff is
transparent, but still occupies space, I need to play around a bit
with the bounding box, though. This can be done in Latex, but if
there is a less fragile solution, it may be worth to get it written
down.
\begin{lilypond}
\score {
\relative c' { d4 }
\layout {
ragged-right = ##t
indent=0\mm
\context {
\Score
\remove "Bar_number_engraver"
}
\context {
\Staff
\remove "Clef_engraver"
\override StaffSymbol #'transparent = ##t
\override TimeSignature #'transparent = ##t
\override BarLine #'transparent = ##t
\consists "Pitch_squash_engraver"
}
}
}
\end{lilypond}
Thanks,
Marcus
> \documentclass[a4paper]{article}
> \begin{document}
>
> Here is a short LilyPond example
> \begin[fragment,relative]{lilypond}
> c4
> \end{lilypond}
> embedded within ordinary text.
>
> Here is another example with only a Text Markup command
> \begin{lilypond}
> \markup{\note #"4" #UP = 100 }
> \end{lilypond}
> followed by some more text.
> \end{document}
>
>
> /Mats
>
> Marcus Brinkmann wrote:
> > Hi,
> >
> > I would like to typeset, for example, "<quarter-note> = 100" as part
> > of a text in a paragraph, rather than as a vertical block element. I
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user