Integrating Texinfo and music - GNU LilyPond
Description: GNU LilyPond

Next: Integrating HTML and music, Previous: Integrating LaTeX and music, Up: LilyPond-book

### 13.3 Integrating Texinfo and music

Texinfo is the standard format for documentation of the GNU project. An example of a Texinfo document is this manual. The HTML, PDF, and Info versions of the manual are made from the Texinfo document.

In the input file, music is specified with

    @lilypond[options,go,here]
      YOUR LILYPOND CODE
    @end lilypond

or

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

or

    @lilypondfile[options,go,here]{filename}

When `lilypond-book` is run on it, this results in a Texinfo file (with extension `.texi`) containing `@image` tags for HTML and info output. For the printed edition, the raw TeX output of LilyPond is included in the main document.

We show two simple examples here. A `lilypond` environment

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

produces

The short version

    @lilypond[fragment,staffsize=11]{<c' e' g'>}

produces

Contrary to LaTeX, `@lilypond{...}` does not generate an in-line image. It always gets a paragraph of its own.

When using the Texinfo output format, `lilypond-book` also generates bitmaps of the music (in PNG format), so you can make an HTML document with embedded music.

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

Other languages: English.
Using automatic language selection.