Chinese document error
benzxiaojunjun opened this issue · 4 comments
benzxiaojunjun commented
When there is Chinese in the document, the Chinese is lost after the output TeX file is compiled into PDF.
gimsieke commented
Please attach a sample document so that we can reproduce this.
benzxiaojunjun commented
test.docx
Thanks a lot!I use this command for the conversion:
./d2t -o /home/benz/output test.docx
mkraetke commented
We have not so much experience with Chinese text. However, I would recommend to change the document class to ctexart
and use lualatex
or xelatex
to render the PDF, since both support UTF-8 and OpenType fonts directly:
- Change the document class to
ctexart
- \documentclass{scrbook}
+ \documentclass{ctexart}
- render for example with
lualatex
$ lualatex test.tex
benzxiaojunjun commented
It works!Thanks a lot!Have a good day!