Syntax highlighting is easy with the highlight package, on which the
knitr package is based, e.g.
- sample source: https://gist.github.com/1803930
- sample pdf: https://github.com/downloads/yihui/knitr/knitr-beamer.pdf
It is possible to insert \alert{} with knitr, but you have to provide
the logi
Hi all,
Using Beamer, in order to highlight a piece of R code I do something
like this - note the "\structure" and "\alert" commands:
\begin{semiverbatim}
> mleOut <- \structure{dlmMLE}(Nile,
+ parm = c(0.2, 120), # initial values for optimizer
+ lower = c(1e-7,
2 matches
Mail list logo