]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/footnote-auto-numbering-page-reset.ly
Imported Upstream version 2.16.0
[lilypond.git] / input / regression / footnote-auto-numbering-page-reset.ly
diff --git a/input/regression/footnote-auto-numbering-page-reset.ly b/input/regression/footnote-auto-numbering-page-reset.ly
new file mode 100644 (file)
index 0000000..0d8c91b
--- /dev/null
@@ -0,0 +1,44 @@
+\version "2.16.0"
+\header {
+  texidoc = "This is an example of automatic footnote numbering
+where the number is reset on each page.  It uses the symbol-footnotes
+numbering function, which assigns the symbols *, †, ‡, § and ¶ to
+successive footnotes, doubling up on the symbol after five footnotes
+have been reached.
+"
+}
+
+\paper {
+  footnote-numbering-function = #symbol-footnotes
+}
+
+#(set-default-paper-size "a6")
+\book {
+
+\markup {
+  a \auto-footnote b c
+  \auto-footnote d e
+  \auto-footnote f g
+}
+
+\markup { h i }
+
+\relative c' {
+\footnote #'(1 . -1) #'NoteHead \markup { j } \default
+a b c d }
+
+\pageBreak
+
+\markup { k \auto-footnote l m }
+
+\relative c' { a1 }
+
+\relative c' {
+  d4 e
+  < f  \footnote #'(1 . -1) \markup { n } a c >
+  a8-\footnote #'(1 . 1) \markup { p } \<
+  -\footnote #'(1 . 1) \markup { o } [ b c d ] a4 b c |
+  d a b c |
+  d a b c |
+  d a b c\f |
+}}