[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to put current date in footer?
From: |
Arvid Grøtting |
Subject: |
Re: How to put current date in footer? |
Date: |
Sun, 13 Apr 2008 15:00:47 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
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,
--
Arvid