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: Marcus Brinkmann
Subject: Re: in-line note font elements in lilypond-book + latex?
Date: Wed, 23 May 2007 02:15:14 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.0 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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.

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





reply via email to

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