lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put current date in footer?


From: Alain
Subject: Re: How to put current date in footer?
Date: Sun, 13 Apr 2008 15:25:56 +0200
User-agent: Thunderbird 2.0.0.6 (X11/20071209)

Arvid Grøtting wrote:
> Alain <address@hidden> writes:
> 
>> Hi NG
>>
>> I'm trying to have a timestamp in the footer of every page. nice would
>> also be to have subversion revision as metainformation printed.
>> I'm quite new to Lilypnd...
>>
>> How can I do that?
>>
>> I've tried it the LaTeX way:
>> \paper{
>>   ...
>>   oddFooterMarkup = "Compiled: \today"
>> }
>>
>> but like this it doesn't work.
> 
> You need a bit of Scheme, the Lilypond manuals and the Guile manual.
> Try something like this:
> 
> %% ---- cut here ----->8
> 
> \version "2.11.43"
> 
> revision = #"$Revision: 1.2 $"
> 
> today = #(strftime "%Y-%m-%d" (localtime (current-time)))
> 
> \paper {
>   oddFooterMarkup = #(ly:format "Compiled ~a by ~a (~a)"
>                                 today (cuserid) revision)
> }
> 
> \score {
> 
>   \context Score <<
>     \relative c'' { c c c c }
>   >>
>   \layout {}
>  }
> 
> %% ---- cut here ----->8
> 
> Cheers,
> 

Thanks for this very quick answer.

I seem to have a problem here, maybe because I'm running lilypond 2.10.10?

/home/brenzi/svn_local/lilypond-songs/test.ly:8:21: Fehler: GUILE
signalisierte einen Fehler für den hier beginnenden Ausdruck
  oddFooterMarkup = #
                     (ly:format "Compiled ~a by ~a (~a)"
Unbound variable: ly:format

sorry for the german error msg ;-)

does this only work with lily 2.11?

Alain





reply via email to

[Prev in Thread] Current Thread [Next in Thread]