I'm working on a set of carry-in notes for exams, made up of a bunch of court cases. Each case starts with a \section which has the case name, year etc. There are multiple \section commands on a page. What I'd like in the footer is a note that gives the section numbers which appears on the page as shown on the example image.
I'm using the fancyhdr package to lay out the custom footer, but I'm not sure how I can get the number of the first section that appears on any given page (the letter 'X' in the example image). The \thesection command in the fancyhdr package places the last section of the page (the number '5' in the example image) in the footer. Any suggestions welcome; I don't have to use the fancyhdr package.
Thanks!
