# NOT RUN {
library(rmarkdown)
# Simple Conversion
render("input.Rmd", output_format = thaipdf::thaipdf_document())
# Render with Thai font "Laksaman", font size 10pt, enable table of contents
render("input.Rmd",
output_format = thaipdf::thaipdf_document(
thai_font = "Laksaman", # you must have this font in your system
toc = TRUE,
pandoc_args = pandoc_metadata_arg("fontsize", "10pt")
))
# }
Run the code above in your browser using DataLab