Next: Integrating HTML and music, Previous: Integrating LaTeX and music, Up: Integrating text and music
Texinfo is the standard format for documentation at 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 document.
In the input file, music is specified like
@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
(with extension .texi) containing @image tags for HTML and
info. For the printed edition, the raw TeX output of LilyPond is
included into 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
When producing texinfo, 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.4.5 (stable-branch).