lilypond-user
[Top][All Lists]
Advanced

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

Re: Have a title page, but also default headers on first score page


From: Nicolas Sceaux
Subject: Re: Have a title page, but also default headers on first score page
Date: Sat, 29 Aug 2009 10:34:53 +0200

Le 29 août 09 à 00:11, Graham Percival a écrit :

On Fri, Aug 28, 2009 at 04:30:58AM +0200, Frank Steinmetzger wrote:
So I have had a look at the code and found
        scoreTitleMarkup = \markup \null

BTW, this would probably be better written as
   scoreTitleMarkup = ##f

But there is one last thing:
How can I get the copyright notice on the second page instead of the first?

Use \bookpart.

You (Frank) have to change the footer markups. Have a look
at oddFooterMarkup in ly/titling-init.ly: change the `first-page'
predicate call to a (to be written) `second-page'.

\paper {
   %% this is `first-page' from ly/titling-init.ly slightly modified
   %% (see the "1+")
   #(define (second-page layout props arg)
     (define (ancestor layout)
       "Return the topmost layout ancestor"
       (let ((parent (ly:output-def-parent layout)))
          (if (not (ly:output-def? parent))
              layout
              (ancestor parent))))
        (if (= (chain-assoc-get 'page:page-number props -1)
(1+ (ly:output-def-lookup (ancestor layout) 'first- page-number)))
         (interpret-markup layout props arg)
         empty-stencil))

   oddFooterMarkup = \markup {
     \column {
       \fill-line {
         %% Copyright header field only on second page.
         \on-the-fly #second-page \fromproperty #'header:copyright
       }
       \fill-line {
         %% Tagline header field only on last page.
         \on-the-fly #last-page \fromproperty #'header:tagline
       }
     }
   }
}

\header {
  copyright = "Copyright is on second page"
  title = "Test copyright in second page"
}
{ c' }
\pageBreak
{ d' }
\pageBreak
{ e' }





reply via email to

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