transpect/docx2tex

Chinese document error

benzxiaojunjun opened this issue · 4 comments

When there is Chinese in the document, the Chinese is lost after the output TeX file is compiled into PDF.

Please attach a sample document so that we can reproduce this.

test.docx
Thanks a lot!I use this command for the conversion:
./d2t -o /home/benz/output test.docx

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:

  1. Change the document class to ctexart
- \documentclass{scrbook}
+ \documentclass{ctexart}
  1. render for example with lualatex
$ lualatex test.tex

It works!Thanks a lot!Have a good day!