You are not logged in.

#1 2016-06-03 14:00:26

dc3671
Member
Registered: 2015-12-26
Posts: 5

[Texlive]Compiled successfully but no Chinese words

I want to use texlive to write something and then installed all packages of texlive-most & texlive-langchinese.
Then i use xelatex to compile the text below.

\documentclass{ctexart}
\setmainfont{KaiTi}
\begin{document}
    中as文宏s包测试11
\end{document}

All output in the shell seems fine.

» xelatex test.tex 
This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Arch Linux) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9m> and hyphenation patterns for 79 languages loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo)) (./test.aux) [1] (./test.aux
) )
(see the transcript file for additional information)
Output written on test.pdf (1 page).
Transcript written on test.log.

However there is no Chinese characters in the pdf file.
I don't think it's the font's problem, because i can see the number and other words in the font KaiTi.

I've been searching this for a long time.
Hope someone could help me!

Offline

#2 2016-06-03 14:43:16

kakosf
Member
From: Chania, Greece
Registered: 2015-11-28
Posts: 9

Re: [Texlive]Compiled successfully but no Chinese words

Trying to give a quick answer I found that you probably have to use package "\usepackage{xeCJK}" and change the encoding in your editor.
For a better insight check: Support Chinese words editing
Hope this helps.
EDIT: In the proposed solution you have to choose a document class embedded in LaTeX, e.g., article

Last edited by kakosf (2016-06-03 14:46:13)

Offline

#3 2016-06-04 06:59:34

dc3671
Member
Registered: 2015-12-26
Posts: 5

Re: [Texlive]Compiled successfully but no Chinese words

Finally solved it!!! Lack of a package "poppler-data".

Also thanks for @kakosf's help!

Offline

Board footer

Powered by FluxBB