lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: in-line note font elements in lilypond-book + latex?


From: Mats Bengtsson
Subject: Re: in-line note font elements in lilypond-book + latex?
Date: Wed, 23 May 2007 15:27:40 +0200
User-agent: Thunderbird 2.0.0.0 (X11/20070326)



Marcus Brinkmann wrote:
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 <address@hidden> 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.
Always tell what LilyPond version you use! Now that I try it with the different versions I have available, it turns out that this is a bug which occurs in the stable
version, 2.10.x, but has been fixed in the development version, 2.11.x.
I will send a bug report, but it might happen that the reason it works in version 2.11 is some major restructuring of the implementation, so I don't know how easy it
would be to fix it in 2.10.

   /Mats

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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]