@end example
Running lilypond-book yields a file that can be processed with
-La@TeX{}. We show some examples here:
+La@TeX{}.
+
+
+We show some examples here:
@example
\begin[26pt]@{lilypond@}
The music will be surrounded by @code{\preLilyPondExample} and
@code{\postLilyPondExample}, which are defined to be empty by default.
+@cindex titling and lilypond-book
+@cindex lilypond-book and titling
+@cindex @code{\header} in La@TeX{} documents
+
+To add titling from the @code{\header} section of the files, add the
+following to the top of the La@TeX{} file:
+@example
+\input titledefs.tex
+\def\preLilyPondExample@{\def\mustmakelilypondtitle@{@}@}
+@end example
+
+@cindex outline fonts
+@cindex type1 fonts
+@cindex dvips
+@cindex invoking dvips
+
+For printing the LaTeX document, you will need to use dvips. For
+producing PostScript with scalable fonts, add the following options to
+the dvips command line:
+@example
+ -Ppdf -u +lilypond.map
+@end example
+
+@noindent
+PDF can then be produced with @code{ps2pdf}.
+
+
@node Integrating HTML and music
@section Integrating HTML and music
@end example
A special feature not (yet) available in other output formats, is the
-@code{<ly2dvifile>} tag, for example,
+@code{<lilypondfile>} tag, for example,
@example
- <ly2dvifile>trip.ly</ly2dvifile>
+ <lilypondfile>trip.ly</lilypondfile>
@end example
-This runs @file{trip.ly} through @code{lilypond} (see also @ref{Invoking
-lilypond}), and substitutes a preview image in the output. The image
-links to a separate HTML file, so clicking it will take the viewer to
-a menu, with links to images, midi and printouts.
+This runs @file{trip.ly} through @code{lilypond} (see also
+@ref{Invoking lilypond}), and substitutes a preview image in the
+output. The image links to a separate HTML file, so clicking it will
+take the viewer to a menu, with links to images, midi and printouts.
@cindex titling in THML
@cindex preview image
of the code is used.
@item 11pt
-@lilypond[11pt, eps]
+@lilypond[11pt]
\relative c' {
r16 c[ d e] f[ d e c] g'8[ c] b[\prall c] |
d16[ g, a b] c[ a b g] d'8[ g f\prall g]
@end lilypond
@item 13pt
-@lilypond[13pt, eps]
+@lilypond[13pt]
\relative c' {
r16 c[ d e] f[ d e c] g'8[ c] b[\prall c] |
d16[ g, a b] c[ a b g] d'8[ g f\prall g]
@end lilypond
@item 16pt
-@lilypond[16pt, eps]
+@lilypond[16pt]
\relative c' {
r16 c[ d e] f[ d e c] g'8[ c] b[\prall c] |
}
@end lilypond
@item 20pt
-@lilypond[20pt, eps]
+@lilypond[20pt]
\relative c' {
r16 c[ d e] f[ d e c] g'8[ c] b[\prall c] |
}
@end lilypond
@item 26pt
-@lilypond[26pt, eps]
+@lilypond[26pt]
\relative c' {
r16 c[ d e] f[ d e c] g'8[ c] b[\prall c] |
}
not the text layout. For single-line fragments the default is to
use no indentation.
+For example
+@example
+ \begin[indent=5cm,raggedright]@{lilypond@}
+ ...
+ \end@{lilypond@}
+@end example
+
+
@item noindent
sets indentation of the first music system to zero. This option
affects LilyPond, not the text layout.
@node Invoking lilypond-book
@section Invoking lilypond-book
+
Running @command{lilypond-book} generates lots of small files that
LilyPond will process. To avoid all that garbage in the source
directory, it is advisable to change to a temporary directory first:
cd out && latex yourfile.latex
@end example
-For La@TeX{} input, the file to give to La@TeX{} has extension @file{.latex}.
-Texinfo input will be written to a file with extension @file{.texi}.
-
-@cindex titling and lilypond-book
-@cindex lilypond-book and titling
-@cindex @code{\header} in La@TeX{} documents
-
-To add titling from the @code{\header} section of the files, add the
-following to the top of the La@TeX{} file:
-@example
-\input titledefs.tex
-\def\preLilyPondExample@{\def\mustmakelilypondtitle@{@}@}
-@end example
-
-@cindex outline fonts
-@cindex type1 fonts
-@cindex dvips
-@cindex invoking dvips
-
-For printing the LaTeX document, you will need to use dvips. For
-producing PS with scalable fonts, add the following options to the dvips
-command line:
-@example
- -Ppdf -u +lilypond.map
-@end example
-
-
@command{lilypond-book} accepts the following command line options:
@end table
+For La@TeX{} input, the file to give to La@TeX{} has extension
+@file{.latex}. Texinfo input will be written to a file with extension
+@file{.texi}.
+
+
@section Bugs