TinyTeX is a custom LaTeX distribution based on TeX Live that is small in size, but functions well in most cases, especially for R users. If you run into the problem of missing LaTeX packages, it should be super clear to you what you need to do (in fact, R users won’t need to do anything). You only install LaTeX packages you actually need.Ĭurrently TinyTeX works best for R users. Other users can use it, too-it is just that missing LaTeX packages won’t be automatically installed, and you need to install them manually. Or you can go to the extreme to install all packages (see FAQ 3 for how), but remember there are thousands of them. Installing or running TinyTeX does not require admin privileges, which means you no longer need sudo or your IT. You can even run TinyTeX from a Flash drive. Installing and maintaining TinyTeX is easy for R users, since the R package tinytex has provided wrapper functions (N.B. # to uninstall TinyTeX, run tinytex::uninstall_tinytex() You can use tinytex to install TinyTeX: install.packages('tinytex') the lowercase and bold tinytex means the R package, and the camel-case TinyTeX means the LaTeX distribution). To compile an R Markdown document to PDF, there is nothing else you have to know. To compile a LaTeX document to PDF, call one of these functions (depending on the LaTeX engine you want to use) in tinytex: pdflatex(), xelatex(), and lualatex(). When these functions detect LaTeX packages required but not installed in TinyTeX, they will automatically install the missing packages by default. That is all an average R user needs to know. If you are a developer, you may want to install some more packages via tinytex:::install_yihui_pkgs(). This function installs packages that I need for building PDF vignettes of many CRAN packages, and may save you some time for searching for them by yourself. If you do not use R, you need to know one more thing: the tlmgr command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |