In the official knitr manual, comments are in green and they are upright as opposed to italic. But whenever I use knitr to compile a PDF, my comments are purple and italic. How can I change this?
Answering my own question:
Thanks to mnel for the tip. Just use knit_theme
: you use the knit_theme
command within the R Sweave document, similar to the way in which you put in code chunks.
E.g.:
\documentclass[12pt,a4paper,final]{article} # Setting document class
<<adjust-preamble, include=FALSE>>= # Using knit_theme
knit_theme$set("seashell")
@
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{savetrees}
\begin{document}
etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With