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?
you can use any font installed on your computer that supports CJK characters, what do you mean by that? Are you referring to entering the characters into the.texdocument? – user9506231 Dec 22 '18 at 00:44texfile 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 00:55fc-match. Install a font by copying the files (normally.otf) into/usr/local/share/fonts/to install them for everyone, or create a directory~/.fonts/and copy them there to install only for yourself. – Davislor Dec 22 '18 at 01:32ln -sto add symbolic links from/Windows/Fontson your Windows partition to your local Linux font directory. – Davislor Dec 22 '18 at 01:34otfinfoandfc-listhelpful for finding information on font files. – Davislor Dec 22 '18 at 01:36NotoSansSC.otffiles and put them in/usr/local/share/fontsand rebooted, however the XeLaTeX complication is still failing due to the "font-not-found" error from using\setCJKmainfont{Noto Sans CJK}. – user9506231 Dec 22 '18 at 01:39apt searchor an online search to figure out if there’s a Ubuntu or Debian package for the font you’re looking for. Let your package manager handle it if possible! – Davislor Dec 22 '18 at 03:36