Pierre,

I don't think there's anything inherently wrong with what Chris did, as 
long is it works. In general, I think you are right because we know 
that the default code in titling-init.ly works un-modified, then it 
probably should not be changed, just for that sake. However, if someone 
doesn't like the default layout of header variables, then it kind of 
makes sense to me to change it since we also know that you don't have 
to do anything to make sure this file is included in the compile-path. 
It kind of seems like this is the case.

Personally, I'd advocate your solution, since I try to modify the root 
files as little as possible unless I absolutely need to. 

Great example, by the way, of how to customize the header variables! 
I've been meaning to make a post about it on my blog.

Regards,
Abraham

On Wed, Jan 14, 2015 at 1:46 AM, Schneidy [via Lilypond] 
<ml-node+s1069038n17044...@n5.nabble.com> wrote:
> Hi Chris,
> 
> Do you mean that you modifed titling-init.ly ?
> If yes, I don't think it is a good idea...
> 
> How about :
> 
> \version "2.18.2"
> 
> \paper {
>   oddHeaderMarkup = \markup\on-the-fly #not-part-first-page 
>     \fill-line { 
>       \null
>       \fromproperty #'header:title 
>       \on-the-fly \print-page-number-check-first
>         \fromproperty #'page:page-number-string
>     }
>   evenHeaderMarkup = \markup\on-the-fly #not-part-first-page 
>   \fill-line { 
>     \on-the-fly \print-page-number-check-first
>         \fromproperty #'page:page-number-string
>     \fromproperty #'header:title 
>     \null
>   }
> }
> 
> \header {
>   title = "My Title"
> }
> 
> {
>   \repeat unfold 50 { s1*4 \break }
>   \bar "|."
> }
> 
> HTH,
> Pierre
> 
> 2015-01-14 0:33 GMT+01:00 Chris Trahan <[hidden email]>:
>> I figured it out. I went into the ly/titling-init.ly file and 
>> changed this
>> line
>> 
>> \on-the-fly #not-part-first-page \fromproperty #'header:instrument
>> 
>> to this line
>> 
>> \on-the-fly #not-part-first-page \fromproperty #'header:title
>> 
>> in both the oddHeaderMarkup variable and the evenHeaderMarkup 
>> variable.
>> 
>> Chris
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://lilypond.1069038.n5.nabble.com/Page-Headers-tp170410p170429.html
>> Sent from the User mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> lilypond-user mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> _______________________________________________ 
> lilypond-user mailing list 
> [hidden email] 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> ~Pierre
> 
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://lilypond.1069038.n5.nabble.com/Page-Headers-tp170410p170445.html
> To start a new topic under User, email 
> ml-node+s1069038n...@n5.nabble.com 
> To unsubscribe from Lilypond, click here.
> NAML




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Page-Headers-tp170410p170461.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

Reply via email to