0

I am making a pdf document in which I want two logos in the top right of the page. I found great examples of using the latex 'fancy' package. When I replicate the example I receive this error ! LaTeX Error: File 'fancyhdr.sty' not found. I am new to latex and have only used in Rstudio when knitting documents. How do I add this file or how do I install the latex package 'fancy'. I am using a 2017 macbook pro and making this document in R Studio.

---
title: "Test"
date: "Updated: `r format(Sys.time(), '%Y-%m-%d')`"
output: pdf_document
urlcolor: blue
indent: true
header-includes: 
 - \usepackage{indentfirst}
 - \usepackage{graphicx}
 - \usepackage{fancyhdr}
 - \pagestyle{fancy}
 - \fancyhead[R]{\includegraphics[width=2cm]{ribbitr.png}}
 - \fancyhead[L]{\includegraphics[width=2cm]{nsf_logo.png}}
 - \renewcommand{\headrulewidth}{0.2pt}
 - \renewcommand{\footrulewidth}{0.2pt}

---

Render Error

Eizy
  • 253
  • 1
  • 9

0 Answers0