Wow! thank you, this is just what I wanted.  I'll have to look into this
"on-the-fly" feature further, it looks handy.  But I can easily accomplish
my goal now.  I assume it will work for the footer properties too.  This
solution is even better than my suggestion because it will accomodate first
pages that are even or odd.  Thanks again.



Daniel Johnson-2 wrote:
> 
> Hmm. realized I'd forgotten to CC the list.
> 
>> How hard/costly would it be to add 4 more properties? called:
>>
>> firstHeaderMarkup
>> firstFooterMarkup
>> lastHeaderMarkup
>> lastFooterMarkup
>>
> 
> %%% BEGIN LILYPOND CODE %%%
> 
> \version "2.9.16"
> 
> % NOTE: first-page and last-page are defined in ly/titling-init.ly
> 
> #(define (not-first-or-last-page layout props arg)
>   (if (not (or (= (chain-assoc-get 'page:page-number props -1)
>                (ly:output-def-lookup layout 'first-page-number))
>             (chain-assoc-get 'page:last? props #f)))
>    (interpret-markup layout props arg)
>    empty-stencil))
> 
> \paper {
>   oddHeaderMarkup = \markup {
>     \on-the-fly #first-page {
>       \fill-line { "This is the first page" }
>     }
>     \on-the-fly #last-page {
>       \fill-line { "This is the last page" }
>     }
>     \on-the-fly #not-first-or-last-page {
>       \fill-line { "" "This is a middle page" }
>     }
>   }
>   evenHeaderMarkup = \markup {
>     \on-the-fly #first-page {
>       \fill-line { "This is the first page" }
>     }
>     \on-the-fly #last-page {
>       \fill-line { "This is the last page" }
>     }
>     \on-the-fly #not-first-or-last-page {
>       \left-align { "This is a middle page" }
>     }
>   }
>   system-count = 100
> }
> 
> \score {
>   R1*100
> }
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feature-sponsor-request-for-%5Cpaper-block-tf2351903.html#a6552747
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to