CV icon indicating copy to clipboard operation
CV copied to clipboard

Erorr of using xelatex

Open huanfachen opened this issue 3 years ago • 1 comments

I had an error of using xelatex as the latex_engine. The reason for using xelatex is that it allows for UTF-8 encoding. However, it looks like xelatex is not compatible with other components.

The error is as below:

! LaTeX Error: Option clash for package fontspec.

Error: LaTeX failed to compile RobHyndmanCV.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See RobHyndmanCV.log for more info.
In addition: Warning message:
In has_crop_tools() : 
Tool(s) not installed or not in PATH: pdfcrop, ghostcript
-> As a result, figure cropping will be disabled.
Execution halted

The output of sessionInfo is

R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252  

BTW: the OS is windows 10.

I have attached the file of RobHyndmanCV.log. RobHyndmanCV.log

Many thanks for your help.

huanfachen avatar Apr 09 '21 17:04 huanfachen

So don't use xelatex. pdflatex works fine with utf8 encoding.

robjhyndman avatar Apr 10 '21 01:04 robjhyndman