Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I attach more than one stylesheet to an rmarkdown document?

If I'm creating a .rmd report and this is my example YAML, how do I attach another stylesheet to this report's output?

---
title: "Example Report"
author: "Cool guy 62"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
  html_document:
    theme: null
    css: 'style.css'
---
like image 603
Edward R. Mazurek Avatar asked Jun 16 '16 19:06

Edward R. Mazurek


1 Answers

Place the multiple css files into a bracketed array like so:

---
title: "Example Report"
author: "Cool guy 62"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
  html_document:
    theme: null
    css: ['browserreset.css', 'style.css', 'C:/Users/coolguy62/webpages/styles/bootstrap-modified.css']
---
like image 190
Edward R. Mazurek Avatar answered Nov 14 '22 21:11

Edward R. Mazurek