Adding documents footnotes in template