Start rewriting the footnote code.
Don't output chapter titles when they have no footnotes, in the footnotes section.