formatting changes for rmd and pdf files