]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-the-current-date-to-a-score.ly
Merge branch 'master' of carldsorensen@git.sv.gnu.org:/srv/git/lilypond
[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.13.1"
4
5 \header {
6   lsrtags = "text, titles"
7
8   texidoces = "
9 Con algo de código de Scheme, se puede añadir fácilmente la fecha
10 actual a una partitura.
11 "
12   doctitlees = "Añadir la fecha actual a una partitura"
13   
14   texidocfr = "
15 Avec un peu de code Scheme, voici comment ajouter facilement
16 la date du jour à votre partition.
17 "
18   
19   doctitlefr = "Ajout de la date du jour à une partition"
20
21   texidoc = "
22 With a little Scheme code, the current date can easily be added to a
23 score.
24
25 "
26   doctitle = "Adding the current date to a score"
27 } % begin verbatim
28
29 % first, define a variable to hold the formatted date:
30 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
31
32 % use it in the title block:
33 \header {
34   title = "Including the date!"
35   subtitle = \date
36 }
37
38 \score {
39   \relative c'' {
40     c4 c c c
41   }
42 }
43 % and use it in a \markup block:
44 \markup {
45   \date
46 }