Added knitr code to latexExample.tex