Re: Header fields in custom footer

2016-12-08 Thread Noeck
Thanks Harm, that works. However, I did not manage to apply string operations to the text (arg) part of the \my-with-url function. I tried another proc (called procc) with another test-proc function but I don't know how to If it's quickly done, I am happy to see how. But I fear, I will go back

Re: Header fields in custom footer

2016-12-05 Thread Thomas Morley
2016-12-02 0:43 GMT+01:00 Noeck : > Hi Harm, > > hm, I am still not getting what I want. I fear that's what you meant by > the limitations concerning the $defaultheader. Yep. \headers can be set at very different levels, I simply don't know how to catch others than the first

Re: Header fields in custom footer

2016-12-01 Thread Noeck
\fromproperty #'header:author respects the local \header block but I cannot use it in scheme, right? Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Header fields in custom footer

2016-12-01 Thread Noeck
Hi Harm, hm, I am still not getting what I want. I fear that's what you meant by the limitations concerning the $defaultheader. This is a minimal example to show the problem: \version "2.19.50" %%% from included file \header { author = "default author" % just in case there is no author

Re: Header fields in custom footer

2016-12-01 Thread Noeck
Hi Harm, Am 01.12.2016 um 11:00 schrieb Thomas Morley: > (ly:modules-lookup (list $defaultheader) 'foo "xy") Thanks a lot. That's it. Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Header fields in custom footer

2016-12-01 Thread Thomas Morley
2016-11-30 23:31 GMT+01:00 Noeck : > Hi, > > I have one more question on this topic: > > How can I check whether a header field is present at all? > (Or my main goal: how can I avoid that the code fails?) > > This works: > \version "2.19.50" > \header { > title = "ABC" > }

Re: Header fields in custom footer

2016-11-30 Thread Noeck
Hi, I have one more question on this topic: How can I check whether a header field is present at all? (Or my main goal: how can I avoid that the code fails?) This works: \version "2.19.50" \header { title = "ABC" } \paper { oddFooterMarkup = #(module-ref $defaultheader 'title) } { a }

Re: Header fields in custom footer

2016-11-26 Thread Noeck
Hi Harm, thanks a lot for this solution and your patience! That's what I wanted. And the discussion told me more about how to ask. Cheers, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Header fields in custom footer

2016-11-26 Thread Thomas Morley
2016-11-26 23:17 GMT+01:00 Noeck : > Hi, > > your code works pretty well. Thanks, Harm! > > The following questions are left: > > (1) How to center the whole markup? \center-column does not work. > It should be easy, but perhaps it's too late. Use fill-line > (2) The

Re: Header fields in custom footer

2016-11-26 Thread Noeck
Hi, your code works pretty well. Thanks, Harm! The following questions are left: (1) How to center the whole markup? \center-column does not work. It should be easy, but perhaps it's too late. (2) The footer should appear only on the first page, the last page should be different, all

Re: Header fields in custom footer

2016-11-26 Thread Noeck
Hi Andrew, Harm, all, thanks for your help. I tried to post a minimal example, but it looks like it was too minimal to show my intent. And of course, the LSR snippet works and does what says. I just could solve my issue with it - just passing my expression to the function did not solve it. So

Re: Header fields in custom footer

2016-11-26 Thread Thomas Morley
ilypond-user > [mailto:lilypond-user-bounces+andrew.bernard=gmail@gnu.org] On Behalf Of > Noeck > Sent: Saturday, 26 November 2016 6:59 AM > To: lilypond-user@gnu.org > Subject: Re: Header fields in custom footer > > Hi, > > I still need help. I am not able to ge

RE: Header fields in custom footer

2016-11-25 Thread Andrew Bernard
November 2016 6:59 AM To: lilypond-user@gnu.org Subject: Re: Header fields in custom footer Hi, I still need help. I am not able to get this working. Either it fails (does not compile) or it does not print the header fields. This back and forth between LP and Scheme does not help either. I am not sure

Re: Header fields in custom footer

2016-11-25 Thread Noeck
Hi, I still need help. I am not able to get this working. Either it fails (does not compile) or it does not print the header fields. This back and forth between LP and Scheme does not help either. I am not sure if my goal is reachable: oddFooterMarkup would be a scheme function and the arguments

Re: Header fields in custom footer

2016-11-25 Thread Noeck
Hi Andrew, I was not convinced because a) I tried the function around the markup and it did not work b) this works without the function: oddFooterMarkup = \markup \fromproperty #'header:composer But I guess in both cases the fields are filled in the end, but I need to fill them inside the scheme

RE: Header fields in custom footer

2016-11-24 Thread Andrew Bernard
Hi Joram, As mentioned in my previous post, you have to use the function in LSR 467, or something similar. This function makes header variables available outside the header block. If you don't use it, you can't easily see them. Andrew == snip \version "2.19.51" #(define-markup-command

Re: Header fields in custom footer

2016-11-24 Thread Noeck
Dear Andrew, thanks for your reply. But I think that's not the point. My example was too minimal as I assumed that it does not matter if I put it in a \markup or in the footer properties of the paper block. So my question remains: How can I use string manipulations and header properties in my

RE: Header fields in custom footer

2016-11-22 Thread Andrew Bernard
Hi Joram, I think this function is what you require: http://lsr.di.unimi.it/LSR/Item?id=467 Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Header fields in custom footer

2016-11-22 Thread Noeck
> How can I use \fromproperty in scheme? Because I want to do some string > operations before inserting the field in the footer. I thought I was close but obviously not: \header { title = "Title" } \markup #(format "a ~a z" (markup->string (markup #:fromproperty 'header:title)))

Header fields in custom footer

2016-11-22 Thread Noeck
Hi, I am struggling with custom footers: http://lilypond.org/doc/v2.19/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-headers-and-footers Can I use a header property as url in \with-url? \with-url \fromproperty #'header:url \fromproperty #'header:composer does not