Thomas Scharkowski wrote:
>
> Hi,
>
> I use the following to get a centered header on all pages and page
> numbers.
> How can I avoid the page number on the first page?
>
> Thank you,
> Thomas
>
> --
> \paper {
> oddHeaderMarkup = \markup \fill-line { " " "A 1111/Z" \fromproperty
> #'page:page-number-string }
>
> evenHeaderMarkup = \markup \fill-line {\fromproperty
> #'page:page-number-string "A 1111/Z" " " }
> }
>
Hi Thomas,
Based on comparing your code to section 4.1.2, "Page formatting" of the
Notation Reference, you should preface
\fromproperty
with
\on-the-fly #print-page-number-check-first
Then don't forget to add print-first-page-number = ##f to the \paper block.
Like so:
%=======================
\paper {
print-page-number = ##t
print-first-page-number = ##f
oddHeaderMarkup = \markup { \fill-line { " " "A 1111/Z" \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 "A
1111/Z" " " } }
}
%=======================
--
View this message in context:
http://old.nabble.com/Header-and-page-number-tp27175350p27218088.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user