LilyPond Application Usage: 3. Running lilypond-book

# 3. Running `lilypond-book`

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 MacOS X.

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

Andere talen: deutsch, español, français, magyar, italiano.

#### LilyPond — Usage