+2004-10-13 Graham Percival <gperlist@shaw.ca>
+
+ * Documentation/user/examples.itely: added lilypond-book template.
+
+ * Documentation/user/lilypond-book.itely: added filename extension page.
+
2004-10-13 Jan Nieuwenhuizen <janneke@gnu.org>
* debian/rules (binary-indep): Link images for info.
* Ancient notation templates::
* Jazz combo::
* Other templates::
+* Lilypond-book templates::
@end menu
@c TODO explain \score{} ? Maybe add a note to the tutorial?
@end lilypond
+@node Lilypond-book templates
+@section Lilypond-book templates
+
+These templates are for use with @code{lilypond-book}. If you're not familiar
+with this program, please refer to @ref{Integrating text and music}.
+
+@subsection LaTeX
+
+You can include LilyPond fragments in a LaTeX document.
+
+@example
+\documentclass[]@{article@}
+\begin@{document@}
+
+Normal LaTeX text.
+
+\begin@{lilypond@}
+\relative c'' @{
+a4 b c d
+@}
+\end@{lilypond@}
+
+More LaTeX text.
+
+\begin@{lilypond@}
+\relative c'' @{
+d4 c b a
+@}
+\end@{lilypond@}
+\end@{document@}
+@end example
+
+@subsection Texinfo
+
+You can include LilyPond fragments in texinfo; in fact, this entire manual
+is written in texinfo.
+
+TODO: obviously to fill in the example. :) -gp
+
+@example
+
+@end example
+
* Integrating LaTeX and music::
* Integrating HTML and music::
* Music fragment options::
-* Invoking lilypond-book::
+* Invoking lilypond-book::
+* Filename extensions::
@end menu
problems with the Python regular expression engine. For longer files,
use @code{\lilypondfile}.
+
+@node Filename extensions
+@section Filename extensions
+
+You can use any filename extension, but if you do not use the
+recommended extension, you may need to manually specify what output
+format you want. See @ref{Invoking lilypond-book} for details.
+
+@code{Lilypond-book} automatically selects the output format based
+on the filename.
+
+@table @code
+
+@item @emph{.html} produces html output
+
+@item @emph{.itely} produces texinfo output
+
+@item @emph{.lytex} produces latex output
+
+@end table