Deal with footnotes properly