X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Foutputting-the-version-number.ly;fp=Documentation%2Fsnippets%2Foutputting-the-version-number.ly;h=aef2e513495a7f08fbb5580e48fc09f8235c7f02;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/outputting-the-version-number.ly b/Documentation/snippets/outputting-the-version-number.ly new file mode 100644 index 0000000000..aef2e51349 --- /dev/null +++ b/Documentation/snippets/outputting-the-version-number.ly @@ -0,0 +1,32 @@ +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.0" + +\header { + lsrtags = "text, titles" + + texidoc = " +By putting the output of + @code{lilypond-version} into a lyric, it is possible to print the + version number of LilyPond in a score, or in a document generated + with @code{lilypond-book}. Another possibility is to append the + version number to the doc-string, in this manner: + +" + doctitle = "Outputting the version number" +} % begin verbatim + +\score { + \new Lyrics { + \override Score.RehearsalMark #'self-alignment-X = #LEFT + \mark #(string-append "Processed with LilyPond version " (lilypond-version)) + s2 + } +} + + +