]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/adding-the-current-date-to-a-score.ly
Merge master into nested-bookparts
[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.62"
4
5 \header {
6   lsrtags = "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 "
13   doctitlees = "Añadir la fecha actual a una partitura"
14
15   texidoc = "
16 With a little Scheme code, the current date can easily be added to a
17 score.
18
19 "
20   doctitle = "Adding the current date to a score"
21 } % begin verbatim
22 % first, define a variable to hold the formatted date:
23 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
24
25 % use it in the title block:
26 \header {
27   title = "Including the date!"
28   subtitle = \date
29 }
30
31 \score {
32   \relative c'' {
33     c4 c c c
34   }
35 }
36 % and use it in a \markup block:
37 \markup {
38   \date
39 }