the_output <- "latex"
rmarkdown::render("appendix.Rmd",
output_file="doc/appendix.pdf",
bookdown::pdf_document2(template = stevetemplates::templ_article2(),
latex_engine = "xelatex", dev="cairo_pdf", toc = FALSE,
number_sections = FALSE, keep_tex = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.