]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/lilypond-book/tex-fragment.lytex
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / lilypond-book / tex-fragment.lytex
diff --git a/input/regression/lilypond-book/tex-fragment.lytex b/input/regression/lilypond-book/tex-fragment.lytex
new file mode 100644 (file)
index 0000000..4adc809
--- /dev/null
@@ -0,0 +1,19 @@
+\documentclass[a4paper, 12pt]{article}
+
+\begin{document}
+
+\section{Using lilypond-book's fragment option}
+
+If a snippet is not a fully valid LilyPond file, you have
+to use the \verb|fragment| option:
+
+\begin{lilypond}[fragment]
+c d e
+\end{lilypond}
+
+% TODO: \verb does not yet work!!!
+There is also a shorthand version %\verb|\lilypond[fragment]{c' e' g'}|:
+
+\lilypond[fragment]{c' e' g'}
+
+\end{document}