How do I insert a logo before the document title?

Viewed 613

I would like the logo that I'm inserting in my document to appear before the document title. How do I achieve this?

Here is my preamble:

---
title: My Document Title
author:
date:
output: pdf_document
toc: false
geometry: left=0.3in, top=0.3in, right=0.3in, bottom=0.5in
fontsize: 12pt
classoption: portrait, onecolumn
---

and the knitr chuck I am inserting the logo with:

```{r, out.width = "400px", fig.align = "center", echo=FALSE}
knitr::include_graphics("path/imagename.png")
```

As it is, the title appears first, then the logo.

0 Answers
Related