Enhanced code for footnotes
Include also PDF builds