formatting changes for rmd and pdf files 2