knitr::opts_knit$set(root.dir = rprojroot::find_rstudio_root_file()) # Set WD to Root here::i_am("my_dev/tex-pkg.Rmd") library(here) library(dplyr) library(stringr) library(tinytex)
tinytex::install_tinytex()
list all installed LaTeX packages
# list all installed LaTeX packages tlmgr(c('info', '--list', '--only-installed', '--data', 'name'))
inst/template
th_pre_chr <- readLines(con = here("inst/templates/thai-preamble.tex")) th_pre_chr
th_pre_chr %>% str_subset("usepackage")
Main one is "fontspec", "ucharclasses", "setspace", "polyglossia"
thai_latex_pkg <- c("fontspec", "ucharclasses", "setspace", "polyglossia", "hyperref", "url", "cite", "xcolor") thai_latex_pkg
thai_latex_pkg <- c("fontspec", "ucharclasses", "setspace", "polyglossia", "hyperref", "url", "cite", "xcolor") thai_latex_pkg
tinytex::tlmgr_install(pkgs = thai_latex_pkg)
tinytex::tlmgr_install(c( "fontspec", "ucharclasses", "setspace", "polyglossia", "hyperref", "url", "cite", "xcolor" ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.