Skip to content

Commit

Permalink
fix rstudio/bookdown#1274: run the LaTeX engine one more time before …
Browse files Browse the repository at this point in the history
…calling makeindex
  • Loading branch information
yihui committed Jan 24, 2022
1 parent eb4a818 commit 5d211d4
Show file tree
Hide file tree
Showing 2 changed files with 2 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.36.1
Version: 0.36.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
1 change: 1 addition & 0 deletions R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ latexmk_emu = function(
if (file.exists(idx <- aux_files['idx'])) {
idx_engine = getOption('tinytex.makeindex', 'makeindex')
install_cmd(idx_engine)
run_engine() # run the engine one more time (cf rstudio/bookdown#1274)
system2_quiet(idx_engine, c(getOption('tinytex.makeindex.args'), shQuote(idx)), error = {
stop("Failed to build the index via ", idx_engine, call. = FALSE)
})
Expand Down

0 comments on commit 5d211d4

Please sign in to comment.