Insert a logo in upper right corner of R markdown pdf document
问题 I am getting started with R markdown and I would like to create a new report having our company image logo.png in the upper right corner of each page. Is there a way to code this in the YAML section or need this to be done in a R chunk section? 回答1: You can use the includes option in the yaml to specify a custom addition to your latex header. The yaml part would look like --- output: pdf_document: keep_tex: true includes: in_header: header.tex --- and you need to save a separate file called