Skip to content

Commit

Permalink
fix #313: fix fonts.conf by running `tlmgr postaction install script …
Browse files Browse the repository at this point in the history
…xetex`
  • Loading branch information
yihui committed Jun 8, 2021
1 parent bdee92d commit ca4787b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, PBC", role = "cph"),
Expand Down
2 changes: 2 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tools/install-bin-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tools/install-bin-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%

0 comments on commit ca4787b

Please sign in to comment.