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


14.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

[image of music]

The short version

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

produces

[image of music]

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.


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

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

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.