When I use the following code to type Chinese text in TeXShop of macTeXenter image description hereIt reports an error

This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-12-01>
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
y) (/usr/local/texlive/2018/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
* xeCJK warning: "fandol"
* Fandol is being set as the default font for CJK text.
* Please make sure it has been properly installed.
* fontspec warning: "script-not-exist"
* Font 'FandolSong-Regular' does not contain script 'CJK'.
(./test_zh.aux) [1]sh: /usr/local/texlive/2018/bin/x86_64-darwin/xdvipdfmx: No such file 
or directory
(./test_zh.aux)Broken pipe

I am so confused now QAQ.Thanks for your help!

  • 2
    Welcome! I have the impression that your TeX installation is broken, but the issue might depend on the file name: are you using Chinese characters or spaces in the file name? – egreg Apr 16 at 15:43
  • Does it mean that the tex file lay in the Chinese characters or spaces? – Aria Apr 16 at 16:04
  • Not sure what you mean. The file can contain spaces and Chinese characters, of course. I was talking about the file name. What's it? It's difficult to interpret from the image. – egreg Apr 16 at 16:06
  • I don't think I use Chinese characters or spaces in the file name. I just use "test_zh.tex"? – Aria Apr 16 at 16:12
  • 1
    That means that your TeX installation is broken. – egreg Apr 16 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.