I am trying to make the second example from the answer here work. It is copied here below:
% Compile with xelatex
% UTF-8 encoding
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\begin{document}
文章内容
\end{document}
When I compile with xelatex Test.tex, I get the following error indicating that it cannot find the font.
The font "SimSun" cannot be found.
I can think of two possible solutions, but I am unclear about how to proceed with either of them, and Google has not been helpful.
1) Install SimSun. What is the correct command in Ubuntu 13.10 to do this so that xelatex can see it?
2) Change to a different Chinese font that xelatex will work with. I can type Chinese in my Ubuntu install, so I must have some kind of Chinese font on my system. How can I find out the names of all fonts which are valid arguments to \setCJKmainfont?
Note that I already have msttcorefonts package installed.
aptetc. Else try typingfc-match SimSunin your terminal programme. I getHeuristica-Regular.otf: "Heuristica" "Regular", for example, which meansfontconfigwill useHeuristica-Regularin place ofSimSunifSimSunis requested. I doubt my config supports Chinese, but you are likely to get something rather more useful. That is, iffontconfigis well configured, you are likely to get the name of a font which supports Chinese. – cfr Feb 15 '14 at 23:55fc-matchSimSun isDejaVuSerif.ttf: "DejaVu Serif" "Book"– merlin2011 Feb 16 '14 at 00:32\setCJKmainfont{DejaVuSerif}and the output changed into a bunch of square boxes, instead of throwing an error. – merlin2011 Feb 16 '14 at 01:06