]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/outputting-the-version-number.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / outputting-the-version-number.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "really-simple, scheme-language, text, titles"
11
12   texidoc = "
13 By putting the output of
14     @code{lilypond-version} into a lyric, it is possible to print the
15     version number of LilyPond in a score, or in a document generated
16     with @code{lilypond-book}.  Another possibility is to append the
17     version number to the doc-string, in this manner:
18
19 "
20   doctitle = "Outputting the version number"
21 } % begin verbatim
22
23 \score {
24   \new Lyrics {
25     \override Score.RehearsalMark.self-alignment-X = #LEFT
26     \mark #(string-append "Processed with LilyPond version " (lilypond-version))
27     s2
28   }
29 }