A simple tutorial for writing PDF files with knitr and LaTeX