joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

Export PDF for chinese text it failed. #67

Closed lwx5924 closed 7 years ago

lwx5924 commented 7 years ago

Log as below:

! Package inputenc Error: Unicode char 你 (U+4F60)

(inputenc) not set up for use with LaTeX.

See the inputenc package documentation for explanation.

Type H for immediate help.

...

l.63 test 你

Try running pandoc with --latex-engine=xelatex. pandoc.exe: Error producing PDF

joostkremers commented 7 years ago

This is ultimately a LaTeX problem, it's not something pandoc-mode can do anything about. Basically, standard LaTeX has a hard time handling Chinese characters.

Perhaps this wiki entry can help you:

https://github.com/jgm/pandoc/wiki/Pandoc-with-Chinese

Otherwise I would suggest asking on the Pandoc mailing list, people there are more likely to be able to help you.