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