--- pagetitle: (1-2 words to appear in browser tab if knitting to html) title: "Report Name" author: | | My Name | Department of Biostatistics | Vanderbilt University School of Medicine date: '`r Sys.Date()`' header-includes: - \usepackage{longtable} output: rmdformats::readthedown: thumbnails: false lightbox: false gallery: false highlight: tango use_bookdown: false toc_depth: 3 fig_caption: true code_folding: hide embed_fonts: false pdf_document: latex_engine: lualatex bibliography: harrelfe.bib csl: chicago-annotated-bibliography.csl link-citations: yes description: "Brief report description" --- In the yaml header, `header-includes` is needed if knitting to pdf and using Hmisc package table making functions as some of these use the LaTeX `longtable` package. There are other packages that may also be needed such as `relsize`. In `pdf_document`, `lualatex` is used instead of `pdflatex` so that unicode symbols (e.g., Greek letters) can appear in text. See https://stackoverflow.com/questions/26043807/multiple-authors-and-subtitles-in-rmarkdown-yaml for information about multiple authors, affiliations, and document subtitles. Also see https://bookdown.org/yihui/rmarkdown-cookbook/multiple-authors.html. For customizing the look of the `readthedown` output see https://stackoverflow.com/questions/63110500 ```{r setup,echo=FALSE} require(Hmisc) # add to above: results='hide' knitrSet(lang='markdown', fig.path='figure/') # Use lang='latex' if creating a pdf report options(prType='html') # only used for rms package output format # Use options(prType='latex') if creating a pdf report ```