Text with embedded R code and a citation to (Bolker et al., 2008) as well as Goossens et al. (1993).
mean(rnorm(10))
## [1] 0.04288692
Bolker, B.M., Brooks, M.E., Clark, C.J., Geange, S.W., Poulsen, J.R., Stevens, H.H., White, J.S., 2008. Generalized linear mixed models: A practical guide for ecology and evolution. Trends in Ecology and Evolution 24, 127–135.
Goossens, M., Mittlebach, F., Samarin, A., 1993. The latex companion. Addison-Wesley, Reading, Massachusetts.