StirlingCodingClub / Manuscripts_in_Rmarkdown

An introduction to Rmarkdown, and how to use it to write more efficiently
7 stars 9 forks source link

Headers in Rmarkdown output #1

Closed bradduthie closed 6 years ago

bradduthie commented 6 years ago

It is possible add headers to the output of Rmarkdown files. This is not a major issue, but some journals require it so it is good to know how to add to a PDF (or a DOCX, but this could also be done manually), and I need to add this somewhere in the notes (toward the end).

header-includes:
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyhead[R]{GMSE, AN R PACKAGE}

The above requires the fancyhdr package to be downloaded in LaTeX. An example is the GMSE manuscript YAML header.

bradduthie commented 6 years ago

This issue has now been resolved in commit a9a9a08b43d0eb04bf3116869a6d5ff40e31951e. Just to keep the link, I also confirmed in commit 4e4535295b4007eef2fc2c2d601020d433f33104.