Re: Defining 'not-last-page'

2011-07-15 Thread Matthew Collett
On 16/07/2011, at 10:15 am, Neil Puttock wrote: > The contents of titling-init.ly is within the scope of a \paper block; > this is a different module from the one where you put your .ly code. > Since none of the defines are public, they aren't exported as part of > the public interface for the mod

Re: Defining 'not-last-page'

2011-07-15 Thread Neil Puttock
On 15 July 2011 23:06, Matthew Collett wrote: > On 15/07/2011, at 11:07 pm, Matthew Collett wrote: > >> I still don't understand why I can use 'last-page' (defined in >> titling-init.ly) with no problem, but cannot use 'book-last-page?' (also >> defined in titling-init.ly) unless I redefine it m

Re: Defining 'not-last-page'

2011-07-15 Thread Matthew Collett
On 15/07/2011, at 11:07 pm, Matthew Collett wrote: > I still don't understand why I can use 'last-page' (defined in > titling-init.ly) with no problem, but cannot use 'book-last-page?' (also > defined in titling-init.ly) unless I redefine it myself. Some further investigation: 'titling-init' i

Re: Defining 'not-last-page'

2011-07-15 Thread Matthew Collett
On 15/07/2011, at 4:28 pm, Nick Payne wrote: > On 15/07/11 10:20, Matthew Collett wrote: >> #(define (not-last-page layout props arg) >> (if (not (book-last-page? layout props)) >> (interpret-markup layout props arg) >> empty-stencil)) >> >> However, any attempt to _use_ this result

Re: Defining 'not-last-page'

2011-07-14 Thread Nick Payne
On 15/07/11 10:20, Matthew Collett wrote: titling-init.ly contains the following definitions: #(define (first-page layout props arg) (if (book-first-page? layout props) (interpret-markup layout props arg) empty-stencil)) #(define (last-page layout props arg) (if (book-last-p