4. lilypond-book: Integrating text and music

If you want to add pictures of music to a document, you can simply do it the way you would do with other types of pictures. The pictures are created separately, yielding PostScript output or PNG images, and those are included into a LaTeX or HTML document.

lilypond-book provides a way to automate this process: This program extracts snippets of music from your document, runs lilypond on them, and outputs the document with pictures substituted for the music. The line width and font size definitions for the music are adjusted to match the layout of your document.

This is a separate program from lilypond itself, and is run on the command line; for more information, see Command-line usage. If you have MacOS 10.3 or 10.4 and you have trouble running lilypond-book, see Setup for MacOS X.

This procedure may be applied to LaTeX, HTML, Texinfo or DocBook documents.

Other languages: espaƱol, deutsch.

Application Usage