title: Fonts for Rmarkdown document
body: <p>Here is a minimal working example.</p>
  
  <pre><code>---
  date : 2018-May-26
  output:
      pdf_document
  title: "Testing Rmarkdown"
  ---
  
  ```{r,comment = NA}
  
  Gender &lt;- gl(2,1000,labels = c("Men","Women"))
  SmokerM &lt;- sample(c("Y","N"),1000,replace = T , prob = c(.3,.7))
  SmokerW &lt;- sample(c("Y","N"),1000,replace = T , prob = c(.5,.5))
  Smoker &lt;- c(SmokerM,SmokerW)
  
  mydata  &lt;- data.frame(Gender,Smoker)
  table(mydata$Gender,mydata$Smoker)
  
  ```
  
  This is a text in the body of the document.What font is this ? What is
  font for the output of table ? How can we change these 2 fonts ? What 
  other categories of items are there in an Rmarkdown which have different
  fonts ?       
  </code></pre>
  
  <p>My query is the following: What are the default fonts for an Rmarkdown document and how can I change them ? </p>
  
  <p>While researching this I came across this page :</p>
  
  <p>[Pandoc variables][1]<a href="http://pandoc.org/MANUAL.html#variables-for-latex" rel="noreferrer">http://pandoc.org/MANUAL.html#variables-for-latex</a></p>
  
  <p>Is it correct that there are 4 fonts (mainfont/sansfont/monofont/mathfont) for describing 4 categories of output in Rmarkdown ? What are their default values and how can I change them ? </p>