[ << lilypond-book ] | [Top][Contents][Index][ ? ] | [ External programs >> ] | ||
[ < LaTeX ] | [ Up : Integrating music and text ] | [ HTML > ] |
3.2.2 Texinfo
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.
lilypond-book
provides the following commands and environments to
include music into Texinfo files:
-
the
@lilypond{…}
command, where you can directly enter short lilypond code -
the
@lilypond…@end lilypond
environment, where you can directly enter longer lilypond code -
the
@lilypondfile{…}
command to insert a lilypond file -
the
@musicxmlfile{…}
command to insert a MusicXML file, which will be processed bymusicxml2ly
andlilypond
.
In the input file, music is specified with any of the following commands
@lilypond[options,go,here] YOUR LILYPOND CODE @end lilypond @lilypond[options,go,here]{ YOUR LILYPOND CODE } @lilypondfile[options,go,here]{filename} @musicxmlfile[options,go,here]{filename}
Additionally, @lilypondversion
displays the current version
of lilypond.
When lilypond-book
is run on it, this results in a Texinfo
file (with extension ‘.texi’) containing @image
tags for
HTML, Info and printed output. lilypond-book
generates images
of the music in EPS and PDF formats for use in the printed output, and
in PNG format for use in HTML and Info output.
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.
[ << lilypond-book ] | [Top][Contents][Index][ ? ] | [ External programs >> ] | ||
[ < LaTeX ] | [ Up : Integrating music and text ] | [ HTML > ] |
Other languages: català, deutsch, español, français, italiano, 日本語.
About automatic language selection.