[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function operating on header

From: Timothy Lanfear
Subject: Re: Function operating on header
Date: Sat, 14 Mar 2020 20:28:19 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 14/03/2020 19:14, Noeck wrote:

So I did another try and used the footer markup, but I can't use
fromproperty in Scheme code. This is what I tried:

\version "2.20.0"

\header { title = "Title" }
\paper {
   oddFooterMarkup = \markup \fill-line {
       (string-null? (markup->string #{
         \markup \fromproperty 'header:license #}))
       #{ \markup \with-url
          #(string-append "http://url/"; (markup->string #{
            \markup \fromproperty 'header:license #}) "/4.0")
          \fromproperty 'header:license #} "")
     % the lines above should finally produce this if license is defined:
     % \with-url "http://url/cc by-sa/4.0" "cc by-sa"

\header {
   license = "cc by-sa"

{ b }


You just forgot a # before 'header:license

\markup \fromproperty #'header:license

Timothy Lanfear, Bristol, UK.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]