]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add a lilypond-book regtest for paper sizes.
authorGraham Percival <graham@percival-music.ca>
Wed, 6 Apr 2011 22:26:01 +0000 (23:26 +0100)
committerGraham Percival <graham@percival-music.ca>
Wed, 6 Apr 2011 22:26:30 +0000 (23:26 +0100)
To test it manually (from the build/ dir), do:

lilypond-book --pdf ../input/regression/lilypond-book/papersize-docs.tely
texi2pdf papersize-docs.texi
xpdf papersize-docs.pdf

input/regression/lilypond-book/papersize-docs.tely [new file with mode: 0644]

diff --git a/input/regression/lilypond-book/papersize-docs.tely b/input/regression/lilypond-book/papersize-docs.tely
new file mode 100644 (file)
index 0000000..12c3dd9
--- /dev/null
@@ -0,0 +1,44 @@
+\input texinfo @c -*- coding: utf-8; mode: texinfo; documentlanguage: es -*-
+@setfilename papersize-docs.info
+@settitle Different paper sizes for documentation
+@documentencoding UTF-8
+@documentlanguage en
+@afourpaper
+
+@node Top
+@top Different paper sizes for documentation.
+
+This is a sample of a small papersize, which is useful when you
+want to add a @code{\book@{@}} around some input.
+
+@c @lilypond[verbatim,papersize=c9landscape]
+@lilypond[verbatim,quote,papersize=c9]
+\book {
+  \header {
+    title = "A scale in LilyPond"
+  }
+  \score {
+    \relative c' {
+      c4 d e f
+    }
+  }
+}
+@end lilypond
+
+Here is a different paper size, and a changed tagline.
+
+@lilypond[verbatim,quote,papersize=a8]
+\book {
+  \header {
+    title = "A scale in LilyPond"
+    tagline = "... music notation for Everyone"
+  }
+  \score {
+    \relative c' {
+      c4 d e f
+    }
+  }
+}
+@end lilypond
+
+@bye