]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/lsr/adding-the-current-date-to-a-score.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / adding-the-current-date-to-a-score.ly
index 31dbbb7f899415601fe3e5ffa596adfd5e78d270..c525d98d6e514122845729d3368940cc27269abf 100644 (file)
@@ -1,27 +1,30 @@
-%% Do not edit this file; it is auto-generated from LSR!
-%% Tags: titles
-\version "2.11.35"
+%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.11.38"
 
-\header { texidoc = "
+\header {
+  lsrtags = "titles"
+ texidoc = "
 I often find it useful to include a date on printed music, so that I
 can see if I'm using the latest version, or tell someone else that he
 should only use the version after a certain date. A simple solution is
 to enter the date manually to the @code{.ly} file. But that's very
 error prone. It's easy to forget updating the date. So i thought it
 would be useful if you can add the date on which the PDF file is
-generated automatically. I did't figure it out myself, but I asked on 
-lilypond-user@@gnu.org. And guess what? Someone came with an excellent
-solution! So thank you very much Toine Schreurs for sending this
-solution to the user mailing list. I post it here for future reference.
+generated automatically. I did't figure it out myself, but I asked on
+lilypond-user mailing list. And guess what? Someone came with an
+excellent solution! So thank you very much Toine Schreurs for sending
+this solution to the user mailing list. I post it here for future
+reference.
 
 The solution is to use two scheme functions called @code{strftime} and
 @code{localtime}, as shown in the snippet. It is a very flexible
 solution, you can format the date just as you like it by adapting the
 @code{\"%d-%m-%Y\"} string. See the Guile documentation for more
-details on this format string: Formatting Calendar Time.
+details on this format string: Formatting Calendar Time. 
 " }
 % begin verbatim
-\version "2.11.35"
+\version "2.11.38"
 % first, define a variable to hold the formatted date:
 date = #(strftime "%d-%m-%Y" (localtime (current-time)))
 
@@ -30,7 +33,7 @@ date = #(strftime "%d-%m-%Y" (localtime (current-time)))
   title = "Including the date!"
   subtitle = \date
 }
-% begin verbatim
+
 \score {
   \relative c'' {
     c4 c c c