Add envir as a parameter to knit2pdf