]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/new/outputting-the-version-number.ly
Clean up further input/new
[lilypond.git] / input / new / outputting-the-version-number.ly
diff --git a/input/new/outputting-the-version-number.ly b/input/new/outputting-the-version-number.ly
new file mode 100644 (file)
index 0000000..0d32f6b
--- /dev/null
@@ -0,0 +1,18 @@
+\version "2.11.23"
+
+\header {
+  doctitle = "Outputting the version number"
+  lsrtags = "text"
+  texidoc = "
+By putting the output of @code{lilypond-version} into a lyric or a
+text markup, it is possible to print the version number of LilyPond in
+a score, or in a document generated with @code{lilypond-book}.
+"
+}
+
+\score { \context Lyrics  {
+    \override Score.RehearsalMark  #'self-alignment-X = #LEFT
+    \mark #(ly:export (string-append "Processed with LilyPond version " (lilypond-version)))
+    s2
+  }
+}