Re: Footnote Question
This is what I use (I believe I got it from the LSR, with some modifications): \version 2.18.2 % time macro used to insert date in header date = #(strftime %m/%d/%Y (localtime (current-time))) \header { title = Title tagline = copyright = \markup { \center-column { \bold \line { Copyright \char ##x00A9 2014 } \line { Revision Date: \italic \date } } } } \score { { c'1 } } With this I don't have to remember to change the revision date. The function updates to today every time the document is engraved. You can tweak the date format in the function to whatever your preference is. This is set up to put the revision date right under the copyright notice but you can alter that, too, with the suggestions above. -- View this message in context: http://lilypond.1069038.n5.nabble.com/Footnote-Question-tp165372p165505.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Footnote Question
Hi, I would like to put a revision date at the bottom right of the 1st page on the same line with the copyright notice. The only two header fields that I see in the manual are tagline and copyright. Is there a way that I can do this? I like to have a revision date as we're working on a score so that everyone in the group knows that they're looking at the correct version. Thanks, Chris Trahan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote Question
You could copy the default footer and add [\fromproperty #'header:revisiondate] to the [\on-the-fly \first-page] section. Then, in your header section you could put [revisiondate = 6 August 2014]. On Thu, Aug 7, 2014 at 9:59 AM, Chris Trahan trahan.ch...@gmail.com wrote: Hi, I would like to put a revision date at the bottom right of the 1st page on the same line with the copyright notice. The only two header fields that I see in the manual are tagline and copyright. Is there a way that I can do this? I like to have a revision date as we're working on a score so that everyone in the group knows that they're looking at the correct version. Thanks, Chris Trahan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- Samuel Speer samuelsp...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote Question
I think something like this will work, if you include this in your \header copyright=\markup{ \fill-line {Copyright 2014 Your Name \typewriter Version 2.1} } Good luck. Larry On Thu, Aug 7, 2014 at 11:59 AM, Chris Trahan trahan.ch...@gmail.com wrote: Hi, I would like to put a revision date at the bottom right of the 1st page on the same line with the copyright notice. The only two header fields that I see in the manual are tagline and copyright. Is there a way that I can do this? I like to have a revision date as we're working on a score so that everyone in the group knows that they're looking at the correct version. Thanks, Chris Trahan ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote Question
On Thu, Aug 7, 2014 at 10:31 AM, Chris Trahan trahan.ch...@gmail.com wrote: On Thu, Aug 7, 2014 at 11:05 AM, Samuel Speer samuelsp...@gmail.com wrote: You could copy the default footer and add [\fromproperty #'header:revisiondate] to the [\on-the-fly \first-page] section. Then, in your header section you could put [revisiondate = 6 August 2014]. Samuel, Where would I copy it from and where would I put it? Thanks, Chris Sorry, I should have been more specific. The default values come from titling-init.ly, in my copy (2.18.2) this is what I find: oddFooterMarkup = \markup { \column { \fill-line { %% Copyright header field only on first page in each bookpart. \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { %% Tagline header field only on last page in the book. \on-the-fly #last-page \fromproperty #'header:tagline } } } So, to achieve what you were describing I would put the following code in the \paper block: oddFooterMarkup = \markup { \column { \fill-line { \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { \on-the-fly #part-first-page \fromproperty #'header:revisiondate } \fill-line { \on-the-fly #last-page \fromproperty #'header:tagline } } } Then, in the \header block, I would have to define the revisiondate variable: revisiondate = 6 August 2014 HTH, Samuel. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote Question
On Thu, Aug 7, 2014 at 11:42 AM, Samuel Speer samuelsp...@gmail.com wrote: On Thu, Aug 7, 2014 at 10:31 AM, Chris Trahan trahan.ch...@gmail.com wrote: On Thu, Aug 7, 2014 at 11:05 AM, Samuel Speer samuelsp...@gmail.com wrote: You could copy the default footer and add [\fromproperty #'header:revisiondate] to the [\on-the-fly \first-page] section. Then, in your header section you could put [revisiondate = 6 August 2014]. Samuel, Where would I copy it from and where would I put it? Thanks, Chris Sorry, I should have been more specific. The default values come from titling-init.ly, in my copy (2.18.2) this is what I find: oddFooterMarkup = \markup { \column { \fill-line { %% Copyright header field only on first page in each bookpart. \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { %% Tagline header field only on last page in the book. \on-the-fly #last-page \fromproperty #'header:tagline } } } So, to achieve what you were describing I would put the following code in the \paper block: oddFooterMarkup = \markup { \column { \fill-line { \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { \on-the-fly #part-first-page \fromproperty #'header:revisiondate } \fill-line { \on-the-fly #last-page \fromproperty #'header:tagline } } } Then, in the \header block, I would have to define the revisiondate variable: revisiondate = 6 August 2014 HTH, Samuel. Thanks Samuel. I'll try that. Chris ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Footnote Question
On Thu, Aug 7, 2014 at 11:45 AM, Chris Trahan trahan.ch...@gmail.com wrote: On Thu, Aug 7, 2014 at 11:42 AM, Samuel Speer samuelsp...@gmail.com wrote: On Thu, Aug 7, 2014 at 10:31 AM, Chris Trahan trahan.ch...@gmail.com wrote: On Thu, Aug 7, 2014 at 11:05 AM, Samuel Speer samuelsp...@gmail.com wrote: You could copy the default footer and add [\fromproperty #'header:revisiondate] to the [\on-the-fly \first-page] section. Then, in your header section you could put [revisiondate = 6 August 2014]. Samuel, Where would I copy it from and where would I put it? Thanks, Chris Sorry, I should have been more specific. The default values come from titling-init.ly, in my copy (2.18.2) this is what I find: oddFooterMarkup = \markup { \column { \fill-line { %% Copyright header field only on first page in each bookpart. \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { %% Tagline header field only on last page in the book. \on-the-fly #last-page \fromproperty #'header:tagline } } } So, to achieve what you were describing I would put the following code in the \paper block: oddFooterMarkup = \markup { \column { \fill-line { \on-the-fly #part-first-page \fromproperty #'header:copyright } \fill-line { \on-the-fly #part-first-page \fromproperty #'header:revisiondate } \fill-line { \on-the-fly #last-page \fromproperty #'header:tagline } } } Then, in the \header block, I would have to define the revisiondate variable: revisiondate = 6 August 2014 HTH, Samuel. Thanks Samuel. I'll try that. Chris Samuel, I found that this also works. I was able to put all three parts, left, center, and right on one fill-line. oddFooterMarkup = \markup { \column { \fill-line { %% Copyright header field only on first page in each bookpart. \on-the-fly #part-first-page \fromproperty #'header:copyright \fromproperty #'header:revisiondate } \fill-line { %% Tagline header field only on last page in the book. \on-the-fly #last-page \fromproperty #'header:tagline } } } I like this because I'll often use the revision date. It's nice to have it as a header field. I'll just have to remember to check it when there's an update to LilyPond. Chris ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user