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