Node:Integrating Texinfo and music, Next:, Up:lilypond-book manual



Integrating Texinfo and music

Music is specified like this:

     @lilypond[options, go, here]
       YOUR LILYPOND CODE
     @end lilypond
     @lilypond[options, go, here]{ YOUR LILYPOND CODE }
     @lilypondfile[options, go, here]{filename}
     

When lilypond-book is run on it, this results in a texinfo file. We show two simple examples here. First a complete block:

     @lilypond[26pt]
       c' d' e' f' g'2 g'
     @end lilypond
     

produces

[picture of music]

Then the short version:

     @lilypond[11pt]{<c' e' g'>}
     

produces

[picture of music]

lilypond-book knows the default margins and a few paper sizes. One of these commands should be in the beginning of the document:

@pagesizes are not yet supported.

When producing texinfo, lilypond-book also generates bitmaps of the music, so you can make a HTML document with embedded music.


This page is for LilyPond-2.0.0 (stable-branch).

Report errors to <bug-lilypond@gnu.org>.