Re: pageNumber
Thanks Micheal! The '\unless \on-first-page' was what I went with on the first try. It was the magic sauce. -David - Original Message - > From: "Michael Werner" > To: "bobroff" > Cc: "Lillypond Users Mailing List" > Sent: Sunday, November 12, 2023 1:09:05 PM > Subject: Re: pageNumber > Hi David, > > On Sun, Nov 12, 2023 at 7:18 AM bobr...@centrum.is > wrote: > >> I have the following in my \paper block. I want to eliminate the page >> number on page 1. I have 'print-first-page-number = ##f' but the >> oddHeaderMarkup is overriding it. Is there a way around this? Some sort of >> conditional? >> > > Turns out you just need to swap two lines. The \if conditional will apply > to the next item ... and just the next item. It prints the next item if > true, and leaves it blank if false. But the next item is the empty quotes, > so something that's already empty. So just swap the \if conditional line > down one to put it right before the page number line and all should be well. > > oddHeaderMarkup = \markup { >\fill-line { > "" \larger\bold "SCORE" > \if \should-print-page-number > \fromproperty #'page:page-number-string >} > } > > There's also an alternative you can use, that kind of does this from the > opposite viewpoint. This will print the page number unless it's the first > page. Either should work, just going at things in two different ways. In > some circumstances (special cases? tricky layouts?) one might be preferable > over the other. But there are options to explore. > > oddHeaderMarkup = \markup { >\fill-line { > "" \larger\bold "SCORE" > \unless \on-first-page > \fromproperty #'page:page-number-string >} > } > > For more details on these, have a look at: > http://lilypond.org/doc/v2.25/Documentation/notation/custom-layout-for-headers-and-footers > and > http://lilypond.org/doc/v2.25/Documentation/notation/conditional-markup > -- > Michael
Re: pageNumber
Hi David, On Sun, Nov 12, 2023 at 7:18 AM bobr...@centrum.is wrote: > I have the following in my \paper block. I want to eliminate the page > number on page 1. I have 'print-first-page-number = ##f' but the > oddHeaderMarkup is overriding it. Is there a way around this? Some sort of > conditional? > Turns out you just need to swap two lines. The \if conditional will apply to the next item ... and just the next item. It prints the next item if true, and leaves it blank if false. But the next item is the empty quotes, so something that's already empty. So just swap the \if conditional line down one to put it right before the page number line and all should be well. oddHeaderMarkup = \markup { \fill-line { "" \larger\bold "SCORE" \if \should-print-page-number \fromproperty #'page:page-number-string } } There's also an alternative you can use, that kind of does this from the opposite viewpoint. This will print the page number unless it's the first page. Either should work, just going at things in two different ways. In some circumstances (special cases? tricky layouts?) one might be preferable over the other. But there are options to explore. oddHeaderMarkup = \markup { \fill-line { "" \larger\bold "SCORE" \unless \on-first-page \fromproperty #'page:page-number-string } } For more details on these, have a look at: http://lilypond.org/doc/v2.25/Documentation/notation/custom-layout-for-headers-and-footers and http://lilypond.org/doc/v2.25/Documentation/notation/conditional-markup -- Michael
Re: pagenumber = no
On Fri, 28 Nov 2003 16:42:15 -0500 Peter Lutek [EMAIL PROTECTED] wrote: more to the point, is there a way of turning of the page number on ONLY the first page, WITHOUT losing any other headers? i would like to use the head field for instrument names on parts, but don't want page one numbered. I don't believe you can do that directly in LilyPond, but you can certainly do it using lilypond-book and LaTeX. Cheers, - Graham ___ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user