Repository navigation
-
With
options(tinytex.verbose = TRUE),latexmk()now shows the output of the LaTeX engine, makeindex, and the bibliography engine (e.g., biber) as they run, instead of only the package-installation messages. Previously this option did not change the output of the commands (thanks, @dhicks, #196). -
latexmk()can automatically install missinghyphen-*packages when the missing hyphenation patterns lead to the babel errorYou haven't defined the language 'xxx' yetinstead of a warning, e.g., for the babel optionnswissgerman(fromlang: de-CHin R Markdown or Quarto), which needs the patterns ofngermanfrom hyphen-german (thanks, @stibu81, #515). Language names found in the log are now only used if they look like valid package names, and more of them are mapped to the package that provides them, e.g.,hindiand the other Indic languages to hyphen-indic, andsloveneto hyphen-slovenian. The map from language names to the packages that provide them is generated from theexecute AddHyphenlines oftexlive.tlpdbbytools/update-hyphen.R(saved inR/hyphen.R, and updated by therequired-latex-pkgsworkflow) instead of being maintained by hand. As a result, the names of the pinned German patterns (ngerman-x-latest, etc.) are mapped to dehyph-exptl. -
The OS (
osandos_index) is now detected when the package is loaded instead of built, so binary packages cross-compiled on another OS (e.g., the macOS binaries on P3M built on Linux) no longer use the wrong platform (thanks, @krlmlr, #523). -
On Windows, Rtools directories are now temporarily removed from
PATHwhen runningtlmgr()and other functions that call it, becausetlmgrmay pick up tools (e.g.,xz,zstd,gzip) fromPATH, and the ones in Rtools can make it extremely slow (thanks, @jiedxu, #512). -
Added an opt-in global option
tinytex.prescan_packages(defaultFALSE). When it isTRUEandlatexmk()is allowed to install packages,\usepackage{}and\RequirePackage{}in the input file are scanned before compilation, and the missing packages are installed with a singletlmgrcall instead of one failed run of the LaTeX engine per missing package, which is faster but less accurate (thanks, @huangde, #512). This is a heuristic that may install packages that are not needed; packages it misses are still installed from the log as before.