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

Erorr of using xelatex #8

Open
huanfachen opened this issue Apr 9, 2021 · 1 comment
Open

Erorr of using xelatex #8

huanfachen opened this issue Apr 9, 2021 · 1 comment

Comments

@huanfachen
Copy link

huanfachen commented Apr 9, 2021

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.

@robjhyndman
Copy link
Owner

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

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

2 participants