I'd like to include some latex code in my .Rmd file so that when I do:
knit('file.Rmd')
pandoc('file.md', format='latex')
then the .tex file is processed with \usepackage{mathpazo}
in the preamble of the latex file? Is this possible, by adding the preamble text somehow dierctly into the .Rmd file, similar to what can be done with embedded configs:
https://github.com/yihui/knitr-examples/blob/master/088-pandoc-embedded.Rmd
(lines 5--13).
Or do I have to create some extra templates in my homedir for pandoc to find?
Thanks, Stephen