Merge pull request #55 from mbjoseph/header-includes
Adding a header-includes option
diff --git a/README.md b/README.md
index bad8c44..c289268 100644
--- a/README.md
+++ b/README.md
@@ -225,6 +225,7 @@
| `url_col` | LaTeX | Colour of URL links specifically. |
| `link_col` | HTML, LaTeX | Colour of in-document links (example would be referencing a Figure or a Table). |
| `footnote_textcol` | LaTeX | Colour of the footnote text. |
+| `header-includes` | LaTeX | (Optional) Content to include in the header, provided as a one line command or a YAML list with one command per line. For example, to use a sans-serif font as the default font: `header-includes: \renewcommand{\familydefault}{\sfdefault}`.|
| `output` | HTML, LaTeX | For generating `posterdown_html` or `posterdown_latex`, in the future other poster designs or templates may be made for this package and thus this option in the YAML will be more flexible. `posterdown_pdf` will be kept for legacy use but will not be updated, new projects which would have used it should now use `posterdown_latex`.|
## Markdown Customization
diff --git a/inst/rmarkdown/templates/posterdown_latex/resources/template.tex b/inst/rmarkdown/templates/posterdown_latex/resources/template.tex
index be5ec1f..147653b 100644
--- a/inst/rmarkdown/templates/posterdown_latex/resources/template.tex
+++ b/inst/rmarkdown/templates/posterdown_latex/resources/template.tex
@@ -212,6 +212,11 @@
\renewcommand\footnoterule{}
\renewcommand{\thempfootnote}{\footnotesize\color{footnotetextcol}{\arabic{mpfootnote}}}
+%include arbitrary input from header-includes field
+$for(header-includes)$
+$header-includes$
+$endfor$
+
%-------------- Begin Document -------------------%
\begin{document}