Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The font "SimHei" cannot be found: when used with tinytex package #71

Open
jooyoungseo opened this issue Sep 5, 2019 · 0 comments
Open

Comments

@jooyoungseo
Copy link

I cannot render an Rmd file using tufte::tufte_handout() output format along with tinytex package.

Please help me with the issue using the following reproducible scripts:

tinytex:::is_tinytex()
#> [1] TRUE
options(tinytex.verbose = TRUE)

file <- rmarkdown::draft(
  "tufte", 
  "tufte_ctex", 
  "tufte",
  create_dir = TRUE,
  edit = FALSE
)

rmarkdown::render(input = file, output_format = "tufte::tufte_handout")
#> processing file: tufte.Rmd
#> `geom_smooth()` using method = 'loess' and formula 'y ~ x'
#> `geom_smooth()` using method = 'gam' and formula 'y ~ s(x, bs = "cs")'
#> output file: tufte.knit.md
#> "C:/ANACON~1/Scripts/pandoc" +RTS -K512m -RTS tufte.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output tufte.tex --template "C:\PROGRA~1\R\R-36~1.1\library\tufte\RMARKD~1\TEMPLA~1\TUFTE_~2\RESOUR~1\TUFTE-~1.TEX" --highlight-style pygments --pdf-engine xelatex --natbib --lua-filter "C:/Program Files/R/R-3.6.1/library/rmarkdown/rmd/lua/pagebreak.lua" --variable "documentclass:tufte-handout"
#> tlmgr search --file --global "/SimHei[.](tfm|afm|mf|otf)"
#> Warning in parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)): Failed
#> to find a package that contains SimHei[.](tfm|afm|mf|otf)
#> tlmgr search --file --global "/KaiTi/OT[.](tfm|afm|mf|otf)"
#> Warning in parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)): Failed
#> to find a package that contains KaiTi/OT[.](tfm|afm|mf|otf)
#> tlmgr search --file --global "/KaiTi/B/OT[.](tfm|afm|mf|otf)"
#> Warning in parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)): Failed
#> to find a package that contains KaiTi/B/OT[.](tfm|afm|mf|otf)
#> tlmgr search --file --global "/SimHei/OT[.](tfm|afm|mf|otf)"
#> Warning in parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)): Failed
#> to find a package that contains SimHei/OT[.](tfm|afm|mf|otf)
#> tlmgr search --file --global "/SimHei/I/OT[.](tfm|afm|mf|otf)"
#> Warning in parse_packages(logfile, quiet = c(TRUE, FALSE, FALSE)): Failed
#> to find a package that contains SimHei/I/OT[.](tfm|afm|mf|otf)
#> ! Package fontspec Error: The font "SimHei" cannot be found.
#> Error: Failed to compile tufte.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See tufte.log for more info.

Created on 2019-09-05 by the reprex package (v0.3.0.9000)

Session info
sessioninfo::session_info()
#> - Session info ----------------------------------------------------------
#>  setting  value                       
#>  version  R version 3.6.1 (2019-07-05)
#>  os       Windows 10 x64              
#>  system   x86_64, mingw32             
#>  ui       RTerm                       
#>  language (EN)                        
#>  collate  English_United States.1252  
#>  ctype    English_United States.1252  
#>  tz       America/New_York            
#>  date     2019-09-05                  
#> 
#> - Packages --------------------------------------------------------------
#>  package     * version    date       lib
#>  assertthat    0.2.1      2019-03-21 [1]
#>  cli           1.1.0      2019-03-19 [1]
#>  codetools     0.2-16     2018-12-24 [1]
#>  colorspace    1.4-1      2019-03-18 [1]
#>  crayon        1.3.4      2017-09-16 [1]
#>  digest        0.6.20     2019-07-04 [1]
#>  dplyr         0.8.3.9000 2019-08-15 [1]
#>  evaluate      0.14       2019-05-28 [1]
#>  formatR       1.7.1      2019-08-08 [1]
#>  ggplot2     * 3.2.1.9000 2019-09-03 [1]
#>  glue          1.3.1.9000 2019-08-08 [1]
#>  gtable        0.3.0      2019-03-25 [1]
#>  highr         0.8        2019-03-20 [1]
#>  htmltools     0.3.6      2017-04-28 [1]
#>  knitr         1.24.4     2019-09-04 [1]
#>  labeling      0.3        2014-08-23 [1]
#>  lattice       0.20-38    2018-11-04 [1]
#>  magrittr      1.5        2014-11-22 [1]
#>  Matrix        1.2-17     2019-03-22 [1]
#>  mgcv          1.8-28     2019-03-21 [1]
#>  munsell       0.5.0      2018-06-12 [1]
#>  nlme          3.1-141    2019-08-01 [1]
#>  pillar        1.4.2      2019-06-29 [1]
#>  pkgconfig     2.0.2      2018-08-16 [1]
#>  plyr          1.8.4      2016-06-08 [1]
#>  purrr         0.3.2.9000 2019-08-09 [1]
#>  R6            2.4.0      2019-02-14 [1]
#>  Rcpp          1.0.2.1    2019-08-08 [1]
#>  reshape2      1.4.3      2017-12-11 [1]
#>  rlang         0.4.0.9002 2019-08-23 [1]
#>  rmarkdown     1.15.1     2019-09-03 [1]
#>  scales        1.0.0      2018-08-09 [1]
#>  sessioninfo   1.1.1      2018-11-05 [1]
#>  stringi       1.4.3      2019-03-12 [1]
#>  stringr       1.4.0.9000 2019-08-08 [1]
#>  tibble        2.1.3      2019-06-06 [1]
#>  tidyselect    0.2.5.9000 2019-08-12 [1]
#>  tinytex       0.15.2     2019-09-03 [1]
#>  tufte       * 0.5.1      2019-08-08 [1]
#>  withr         2.1.2      2018-03-15 [1]
#>  xfun          0.9        2019-08-21 [1]
#>  yaml          2.2.0      2018-07-25 [1]
#>  source                               
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  Github (tidyverse/dplyr@85faf79)     
#>  CRAN (R 3.6.1)                       
#>  Github (yihui/formatR@ea634b3)       
#>  Github (hadley/ggplot2@23e3241)      
#>  Github (tidyverse/glue@7ac044a)      
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  Github (yihui/knitr@079dc84)         
#>  CRAN (R 3.6.0)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  Github (tidyverse/purrr@c755bb9)     
#>  CRAN (R 3.6.1)                       
#>  Github (RcppCore/Rcpp@1789f09)       
#>  CRAN (R 3.6.1)                       
#>  Github (r-lib/rlang@15e799c)         
#>  Github (rstudio/rmarkdown@ff285a0)   
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.0)                       
#>  Github (hadley/stringr@0b90f91)      
#>  CRAN (R 3.6.1)                       
#>  Github (tidyverse/tidyselect@4de95ee)
#>  Github (yihui/tinytex@f8e025c)       
#>  Github (rstudio/tufte@88c14dc)       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.1)                       
#>  CRAN (R 3.6.0)                       
#> 
#> [1] C:/Program Files/R/R-3.6.1/library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant