\documentclass[a4paper, 12pt]{article} \begin{document} \section{Snippet options} This document shows the effect of various snippet options. The fragment option: \begin{lilypond}[fragment] c' d' e' %\score \end{lilypond} The verbatim option: \begin{lilypond}[fragment,verbatim] c' d' e' \end{lilypond} The printfilename option: \lilypondfile[printfilename]{include.ly} The staffsize option: \begin{lilypond}[staffsize=7,fragment] \context Voice <> \end{lilypond} \lilypond[fragment,staffsize=7]{\context Voice <>} The relative option: \lilypond[relative=1]{ c4 f b e } The quote option: \lilypond[quote,fragment]{\relative c' c1 d4 c d e} Combining fragment, quote, staffsize=26, and verbatim options: \begin{lilypond}[fragment,quote,staffsize=26,verbatim] c'4 f16 \end{lilypond} \end{document}