Rmarkdown font type

Hi there!

I'm writing a research paper for college and I've been given some specs about the doc. One of those specs is actually the font type needed in order to produce the paper. Using markdown and knitr I want to create a pdf file that uses Times New Roman for the entire .rmd

My yaml looks like this:


title: "Análisis de los subsidios en las tarifas eléctricas en la República Dominicana"
author:
date: "r format(Sys.time(), '%d %m, %Y')"
geometry: margin=3.175cm
output: pdf_document
mainfont: Times New Roman

When I knit the file it has the same default font type but I want the Times New Roman

Hi,

I think this post might help

PJ

There are also some info in The R Markdown cookbook

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.