How to tag text and footnotes