Output knitr chunks for training and tutorials.