Modified footnote command in latex to avoid problems with footnotes in titles

Fix for https://github.com/rstudio/rmarkdown/issues/337