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' is included by 'paper-defaults-init' which is included by 'declarations-init' which is included by 'init'. Adding an explicit (and apparently redundant) \include "titling-init.ly" to my original file solves the problem; that is, it makes 'book-last-page?' available for use as expected. Going up one level, and instead saying \include "paper-defaults-init.ly" makes the original problem reappear ('ERROR: Unbound variable: book-last-page?'). Is there a rule in Scheme that names ending in '?' have restricted scope? Or is there some other reason why nesting the inclusion makes some names disappear while others remain visible? Best wishes, Matthew _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user