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