]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lilypond-book/tex-comments.lytex
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / lilypond-book / tex-comments.lytex
1 \documentclass[a4paper, 12pt]{article}
2
3 \begin{document}
4
5
6 \subsection{LaTeX comments}
7 This is a line with lilypond code
8 after the comment char % \lilypond{\context Voice <<c' e' g'>>}
9 % \lilypond{\context Voice <<c' e' g'>>}
10
11 If you do not see any music above
12 this line, then lilypond-book is handling latex comments pretty well :-)
13
14 The following snippet is preceded by a comment that would start a lilypond
15 environment
16
17 %%\begin{lilypond}
18 \begin{lilypond}[staffsize=11,fragment]
19 \context Voice <<c' e' g'>>
20 \end{lilypond}
21
22 A single-line comment inside a fragment does not confuse lilypond-book:
23
24 \begin{lilypond}[fragment]
25 c d e %\score
26 \end{lilypond}
27
28 \end{document}