I have simple document (don't think about the meaning of Chinese characters, they are there only for testing purpose):
\documentclass[UTF8,a4paper, 11pt]{ctexart}
\begin{document}
第一项
\end{document}
If I compile it on my Linux machine, with a fresh complete installation of the TEX Live 2013, using:
pdflatex --shell-escape --synctex=1 document.tex
and both simhei.ttf and simsun.ttc are in the same folder like document.tex, then everything is fine and I get a nice PDF file.
However, if any of simhei.ttf and simsun.ttc are missing in this folder, then I am getting error message. Either
!pdfTeX error: pdflatex (file simsun.ttc): cannot open TrueType font file for reading
or
!pdfTeX error: pdflatex (file simhei.ttf): cannot open TrueType font file for reading
After 4 hours of testing and googling I still cannot figure out where to put these two files to avoid necessity to copy these into document root when I need work with Chinese characters again...
So far I have tested (with no luck):
~/fonts
/usr/share/fonts/truetype
/usr/local/texlive/2013/texmf-dist/fonts/truetype/public/chinese
(Additional fc-cache -fv
performed of course.)
The result of fc-list :lang=zh-cn
is:
NSimSun,新宋体:style=Regular
FangSong,仿宋:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Stand aard,Normalny,Обычный,Normálne,Navadno,Arrunta
KaiTi,楷体:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
SimSun,宋体:style=Regular
Efont Fixed Wide:style=Italic
Efont Biwidth:style=Bold Italic
SimHei,黑体:style=Regular
SimHei,黑体:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
Any help will be highly appreciated!
/usr/local/texlive/texmf-local/fonts/truetype/public/chinese
should work but you need to runmktexlsr /usr/local/texlive/texmf-local
. Never install files by hand into/usr/local/texlive/YYYY
as that tree should be reserved for the TeX installation itself.