Lilypond-book templates - GNU LilyPond
Description: GNU LilyPond

Previous: Jazz combo, Up: Example templates

### D.7 Lilypond-book templates

These templates are for use with `lilypond-book`. If you're not familiar with this program, please refer to LilyPond-book.

#### D.7.1 LaTeX

You can include LilyPond fragments in a LaTeX document.

    \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}

#### D.7.2 Texinfo

You can include LilyPond fragments in Texinfo; in fact, this entire manual is written in Texinfo.

    \input texinfo
    @node Top

    Texinfo text

    @lilypond[verbatim,fragment,ragged-right]
    a4 b c d
    @end lilypond

    More Texinfo text

    @lilypond[verbatim,fragment,ragged-right]
    d4 c b a
    @end lilypond

    @bye

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

Other languages: English.
Using automatic language selection.