bug-lilypond
[Top][All Lists]
Advanced

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

Re: first-page-number parameter is not being recognized


From: Rick Hansen (aka RickH)
Subject: Re: first-page-number parameter is not being recognized
Date: Thu, 28 Sep 2006 13:37:20 -0700 (PDT)

Thanks Joe,

Also anyone using an on-the-fly expression that expects #first-page to be
true on the first page will also fail if they set first-page-number
themselves.  Because #first-page is determined by comparing the page counter
value to first-page-number.  If the user is asking for a different
first-page-number then the #first-page boolean winds up being unreliable.  I
thought I was going crazy when my copyrights did not print when I was
clearly checking this expression to set the footer:

      \on-the-fly #first-page {
         \fill-line {
            { \hspace #0 }
            { \teeny "copyright" }
            { \bold \fromproperty #'page:page-number-string }
         }
      }

And #first-page was evaluating to false on the first page, because I was
also setting first-page-number = #4.  A case of one bug creating another bug
I guess, so I had to remove my first-page-number = #4 setting, but still
need my song to begin with page 4.

I would hope that page first of a 1 page score would evaluate as follows:

#first-page = true AND #last-page = true

And that multi-page scores would evaluate as follows:

page first
#first-page = true AND #last-page = false
page n
#first-page = false AND #last-page = false
page last
#first-page = false AND #last-page = true


All regardless if the user selected a different starting offset page number.

In my case the #first-page boolean would have became true on page 4 I guess,
but there was not enough music to get that far.

thanks
Rick






Joe Neeman-2 wrote:
> 
> On Wed, 2006-09-27 at 14:42 -0700, Rick Hansen (aka RickH) wrote:
>> It appears that the "first-page-number" property is not working, here is
>> an
>> example:  Note that the first page number (\fromproperty
>> #'page:page-number-string) in the odd/even mirrored footers always comes
>> out
>> as 1, even when setting the first-page-number property to a different
>> value
>> like #4.  (v2.9.18) 
>> 
>> Thanks for any info on this. 
> 
> This would be my fault. I'll try to have a look at it soon.
> 
>> 
>> 
>> 
>> %EXAMPLE BEGIN 
>> 
>> 
>> \version "2.9.18" 
>> \include "english.ly" 
>> 
>> #(set-default-paper-size "letter" 'portrait) 
>> 
>> \paper { 
>>    paper-height = 11.0\in 
>>    paper-width = 8.5\in 
>>    line-width = 7.7\in 
>>    left-margin = 0.4\in 
>>    top-margin = 0.25\in 
>>    bottom-margin = 0.25\in 
>>    page-top-space = 0.0\in 
>>    foot-separation = 0.0\in 
>>    head-separation = 0.0\in 
>>    after-title-space = 0.0\in 
>>    between-title-space = 0.0\in 
>>    horizontal-shift = 0.0\in 
>>    annotate-spacing = ##f 
>>    between-system-padding = #1 
>>    between-system-space = #30 
>>    first-page-number = #4 
>>    printfirst-page-number = ##f 
>>    print-page-number = ##f 
>>    oddFooterMarkup = \markup { \fill-line { \hspace #0 { \bold
>> \fromproperty
>> #'page:page-number-string } } } 
>>    evenFooterMarkup = \markup { \fill-line { { \bold \fromproperty
>> #'page:page-number-string } \hspace #0 } } 
>> } 
>> 
>>    \new Staff \with { 
>>    } 
>>    { 
>>          \clef "treble" 
>>          \key ef \major 
>>          \time 4/4 
>>          \relative c'' { 
>>             %1 
>>             af8. g16 f8. ef16 f4. g8 
>>             \noBreak 
>>             | 
>>             %2 
>>             bf8. af16 g8. f16 af4. bf8 
>>             \noBreak 
>>             | 
>>             %3 
>>             ef8. d16 c8. bf16 c2 
>>             \pageBreak 
>>             | 
>>             %4 
>>             r2 r4 d4 
>>             \noBreak 
>>             | 
>>             %5 
>>             f8. ef16 d8. c16 d4 ef 
>>             \noBreak 
>>             | 
>>          } 
>>    } 
>> 
>>    \layout { 
>>          ragged-right = ##t 
>>          ragged-last = ##t 
>>       ragged-bottom = ##t 
>>       ragged-last-bottom = ##t 
>>     indent = 0.0\in 
>> } 
>> 
>> 
>> 
>> %EXAMPLE END 
>> 
> 
> 
> 
> _______________________________________________
> bug-lilypond mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-lilypond
> 
> 

-- 
View this message in context: 
http://www.nabble.com/first-page-number-parameter-is-not-being-recognized-tf2347489.html#a6554196
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.





reply via email to

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