Make links absolute and footnotes in latex