thaipdf_book {thaipdf} | R Documentation |
Thai language supported conversion of R Markdown to a PDF after resolving the special tokens of bookdown (e.g., the tokens for references and labels) to native LaTeX commands.
It is a wrapper around bookdown::pdf_book()
with argument base_format
set to thaipdf_document()
.
thaipdf_book(...)
... |
Arguments to pass to |
An S3 object of class "rmarkdown_output_format" to pass to rmarkdown::render()
How to use bookdown::pdf_book()
, please see official documentation
How to use thaipdf_document()
.
## 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")
))
## End(Not run)