Hello,
First I wanted to say thank you for creating such a powerful package for reproducible research! I've been able to create excellent presentations in LaTeX - beamer using knitr and now I'd like to try using the markdown / HTML5 slides workflow from Yihui's great tutorial
here . It was unclear to me if there is a way to control the font size used in the R code / output chunks, as there will be cases where I would like to put more lines of code but use a smaller font. For example, I'd like to make the font size of the R code smaller showing code and a ggplot2 visualization in a slide like
http://yihui.name/slides/knitr-slides.html#4.0 . For my previous presentations using LaTeX and beamer, I included the code snippet here to make all of the font sizes smaller:
% use footnotesize for knitr output
\ifdefined\knitrout
\renewenvironment{knitrout}{\begin{footnotesize}}{\end{footnotesize}}
\else
\fi
Is there an option I can use either in specific chunks or globally in R markdown files (.Rmd) to control the font size? From the knitr documentation it appeared that the size option only applied to LaTeX documents.
Regards,
Eric
www.r-podcast.org