# XeLaTeX: Chinese characters [closed]

Firstly, apologies for my ignorance but I have tried all the options given in: this post. However, I still am unable to get it working.

From the above post, I am trying to achieve this:

% Compile with xelatex
% UTF-8 encoding
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{SimSun}
\begin{document}

\end{document}


And compiling from either Texmaker or the command line using: xelatex file.tex does not work.

I get the error:

fontspec error: "fond-not-found"!! The font SimSun cannot be found.!! ...

I'm sorry again but I've found the online material regarding this problem to be very difficult to understand.

I am using Ubuntu 16.04

How do I get this to compile properly?

## closed as off-topic by David Purton, Phelype Oleinik, marmot, Stefan Pinnow, KurtDec 22 '18 at 7:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – David Purton, Phelype Oleinik, marmot, Stefan Pinnow, Kurt
If this question can be reworded to fit the rules in the help center, please edit the question.

• Do you have the font SimSun installed? – David Purton Dec 22 '18 at 0:28
• @DavidPurton I don't know, how do I check / try? – user9506231 Dec 22 '18 at 0:32
• XeTeX uses system fonts. So can you use SimSun in other applications? (e.g., a Word Processor.) – David Purton Dec 22 '18 at 0:33
• I don't know how to check if I can use SimSun else where – user9506231 Dec 22 '18 at 0:36
• SimSin is the name of a font. (Like Times New Roman is the name of a font.). Your problem is that you don't have SimSun installed on your computer. You don't have to use SimSun, but you do need a font that includes Chinese characters. Installing fonts for your computer is offtopic for this site, so you will need to ask elsewhere. In your tex file you could try changing \setCJKmainfont{SimSun} to \setCJKmainfont{Noto Sans CJK} which you may already have installed on your computer. – David Purton Dec 22 '18 at 0:55

2. Put the font files (.otf) in /usr/local/share/fonts
3. After rebooting, use this line to tell XeLaTeX to get those fonts: \setCJKmainfont{Noto Sans CJK SC}