]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-the-current-date-to-a-score.ly
Merge branch 'master' into dev/texi2html
[lilypond.git] / input / lsr / adding-the-current-date-to-a-score.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.51"
4
5 \header {
6   lsrtags = "titles"
7
8   texidoc = "
9 With a little Scheme code, the current date can easily be added to a
10 score.
11
12 "
13   doctitle = "Adding the current date to a score"
14 } % begin verbatim
15 % first, define a variable to hold the formatted date:
16 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
17
18 % use it in the title block:
19 \header {
20   title = "Including the date!"
21   subtitle = \date
22 }
23
24 \score {
25   \relative c'' {
26     c4 c c c
27   }
28 }
29 % and use it in a \markup block:
30 \markup {
31   \date
32 }