I am trying to create my first Slidify presentation. I am relatively new to JS, CSS and HTML5. I am using the following YAML material and R Markdown code. I want to create a simple slide showing that R can be used as a big calculator. My problem is that I can only fit about 3 simple expressions and their returned output onto a single slide. As such, I would greatly appreciate any possible suggestions on how to better control the Slidify output (smaller font size, or smaller borders around highlighted syntax and evaluated/returned R output).
Below is my .Rmd file:
---
title : An Introduction to R
subtitle : Getting You "R Aware" And Beyond
author : Christopher Meaney
job : Biostatistician, University of Toronto
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
--- .nobackground
## R Can be Used as A Big Calculator
```{r, results='asis', echo=TRUE}
## Addition
1 + 1
## Exponentiation followed by multiplication (BEDMAS)
4*5^2
## Area of a circle of radius r=2
pi*2^2
## Natural logarithm of 1 multiplied by exponential (function) evaluated at 0
log(1)*exp(0)
```
There is a nice discussion of the problem on Github. https://github.com/ramnathv/slidify/issues/189 However, I can't seem to disentangle which of part of @Robert's answer deals with syntax highlighting versus font size and border adjustment. Further, a lot of suggested solutions are thrown around in the discussion, which is easiest for a noob to implement?
As a follow-up, how would I set/apply this option globally so all R chunks evaluated by knitr
and presented by slidify
have this same small/condensed property?