Alain wrote: > Arvid Grøtting wrote: >> Alain <[EMAIL PROTECTED]> 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
just found the solution thanks to Valentin's post. revision = #"$Revision$" today = #(strftime "%Y-%m-%d" (localtime (current-time))) pieceFooter = #( ly:export ( string-append "Compiled " today " SVN:" revision)) great. thanks for your help! Alain _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user