Skip to content

tinytex 0.62

Latest

Choose a tag to compare

@yihui yihui released this 25 Nov 17:42
· 1 commit to main since this release
  • 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 missing hyphen-* packages when the missing hyphenation patterns lead to the babel error You haven't defined the language 'xxx' yet instead of a warning, e.g., for the babel option nswissgerman (from lang: de-CH in R Markdown or Quarto), which needs the patterns of ngerman from 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., hindi and the other Indic languages to hyphen-indic, and slovene to hyphen-slovenian. The map from language names to the packages that provide them is generated from the execute AddHyphen lines of texlive.tlpdb by tools/update-hyphen.R (saved in R/hyphen.R, and updated by the required-latex-pkgs workflow) 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 (os and os_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 PATH when running tlmgr() and other functions that call it, because tlmgr may pick up tools (e.g., xz, zstd, gzip) from PATH, and the ones in Rtools can make it extremely slow (thanks, @jiedxu, #512).

  • Added an opt-in global option tinytex.prescan_packages (default FALSE). When it is TRUE and latexmk() is allowed to install packages, \usepackage{} and \RequirePackage{} in the input file are scanned before compilation, and the missing packages are installed with a single tlmgr call 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.