Hiding header on each first page of a bookpart

View: New views
2 Messages — Rating Filter:   Alert me  

Hiding header on each first page of a bookpart

by Jiri Zurek (Prague) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 I would like to hide displaying the header on every first page of a bookpart. Currently, the behavior I get is that the header is printed and only the page number is omitted when the first page of each bookpart is engraved. I would like to hide also all the other information in the header whenever a first page of every bookpart occur. I tried the #not-first-page directive, but without any influence on the header.

%% - paper block only
\paper {
         oddHeaderMarkup =  \markup { \fill-line {  
            " "
            \on-the-fly #not-first-page { \fromproperty #'header:title }
            \on-the-fly #print-page-number-check-first \fromproperty
            #'page:page-number-string } }
         evenHeaderMarkup = \markup { \fill-line {  
            \on-the-fly #print-page-number-check-first \fromproperty
            #'page:page-number-string
            \on-the-fly #not-first-page { \fromproperty #'header:title }
            " "
             } }
        }
%% - end paper block only

Re: Hiding header on each first page of a bookpart

by Nicolas Sceaux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le 2 nov. 2009 à 11:07, Jiri Zurek (Prague) a écrit :

>
> I would like to hide displaying the header on every first page of a
> bookpart. Currently, the behavior I get is that the header is  
> printed and
> only the page number is omitted when the first page of each bookpart  
> is
> engraved. I would like to hide also all the other information in the  
> header
> whenever a first page of every bookpart occur. I tried the #not-
> first-page
> directive, but without any influence on the header.

There is a builtin `part-first-page' predicate, defined in ly/titling-
init.ly,
from which you can deduce its converse:

#(define (not-part-first-page layout props arg)
    (if (= (chain-assoc-get 'page:page-number props -1)
           (ly:output-def-lookup layout 'first-page-number))
        empty-stencil
        (interpret-markup layout props arg)))

Nicolas



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