page-based header functions

2010-05-24 Thread Kieren MacMillan
Hi all! I want to [finally] get my Scheme-fu up to snuff, and I'm thinking of doing that by developing the following wish-list item: I would like to be able to write my headers/footers like this [warning: pseudocode]: \footer { \if-page #'first { FIRST PAGE FOOTER } \if-page #'odd { ODD

Re: page-based header functions

2010-05-24 Thread Graham Percival
On Mon, May 24, 2010 at 12:37:36PM -0400, Kieren MacMillan wrote: \footer { \if-page #'first { FIRST PAGE FOOTER } } Questions: 1. Can this be done entirely in Scheme? [Intuition: YES.] Check out the definition of \on-the-fly and things like #last-page and #part-first-page. IIRC these