diff --git a/DESCRIPTION b/DESCRIPTION index c22023cca..13694585a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: tinytex Type: Package Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents -Version: 0.32.1 +Version: 0.32.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person(family = "RStudio, PBC", role = "cph"), diff --git a/R/install.R b/R/install.R index 4cc67c19b..7fe9caaae 100644 --- a/R/install.R +++ b/R/install.R @@ -378,6 +378,8 @@ post_install_config = function(add_path, extra_packages, repo, hash = FALSE) { dir.create('~/bin', FALSE, TRUE) tlmgr(c('option', 'sys_bin', '~/bin')) } + # fix fonts.conf: https://github.com/yihui/tinytex/issues/313 + tlmgr(c('postaction', 'install', 'script', 'xetex'), .quiet = TRUE) if (add_path) tlmgr_path() r_texmf(.quiet = TRUE) # don't use the default random ctan mirror when installing on CI servers diff --git a/tools/install-bin-unix.sh b/tools/install-bin-unix.sh index 409b09765..a1f201527 100755 --- a/tools/install-bin-unix.sh +++ b/tools/install-bin-unix.sh @@ -58,5 +58,6 @@ fi cd $TEXDIR/bin/*/ [ $OSNAME != "Darwin" ] && ./tlmgr option sys_bin ~/bin +./tlmgr postaction install script xetex # GH issue #313 ([ -z $CI ] || [ $(echo $CI | tr "[:upper:]" "[:lower:]") != "true" ]) && ./tlmgr option repository ctan ./tlmgr path add diff --git a/tools/install-bin-windows.bat b/tools/install-bin-windows.bat index 133a5fb3f..c3db05655 100644 --- a/tools/install-bin-windows.bat +++ b/tools/install-bin-windows.bat @@ -44,5 +44,6 @@ move /y TinyTeX "%APPDATA%" echo add tlmgr to PATH call "%APPDATA%\TinyTeX\bin\win32\tlmgr" path add if /i not "%CI%"=="true" call "%APPDATA%\TinyTeX\bin\win32\tlmgr" option repository ctan +call "%APPDATA%\TinyTeX\bin\win32\tlmgr" postaction install script xetex exit /b %ERRORLEVEL%