]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-the-current-date-to-a-score.ly
Doc: Update LSR.
[lilypond.git] / Documentation / snippets / adding-the-current-date-to-a-score.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.16"
5
6 \header {
7   lsrtags = "text, titles"
8
9 %% Translation of GIT committish: d2119a9e5e951c6ae850322f41444ac98d1ed492
10   texidoces = "
11 Con algo de código de Scheme, se puede añadir fácilmente la fecha
12 actual a una partitura.
13 "
14   doctitlees = "Añadir la fecha actual a una partitura"
15
16 %% Translation of GIT committish: 05624d5147843d2fcbd6e4e126f1fd43142ac6e5
17   texidocfr = "
18 Avec un peu de code Scheme, voici comment ajouter facilement
19 la date du jour à votre partition.
20 "
21
22   doctitlefr = "Ajout de la date du jour à une partition"
23
24   texidoc = "
25 With a little Scheme code, the current date can easily be added to a
26 score.
27
28 "
29   doctitle = "Adding the current date to a score"
30 } % begin verbatim
31
32 % first, define a variable to hold the formatted date:
33 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
34
35 % use it in the title block:
36 \header {
37   title = "Including the date!"
38   subtitle = \date
39 }
40
41 \score {
42   \relative c'' {
43     c4 c c c
44   }
45 }
46 % and use it in a \markup block:
47 \markup {
48   \date
49 }
50