Unlike the Windows installer, Unix installer leaves many post-installation steps, especially the "fonts" and "Chinese" parts.
Download and unpack install-tl.zip which will show the installler like install-tl-advanced.bat, install-tl.bat and install-tl.
You may found other installer like install-tl-windows.exe and install-tl-unx.tar.gz. The former one is only for Windows while the later one is only for Unix system.
sudo ./install-tl -gui
to install TeXLive for all users. As the expert GUI mode needs "perl:tk" which is not installed. So the installer degrades into text mode.Environment variables for Unix. Add the following three lines to the end of ~/.profile:
PATH=/usr/local/texlive/2014/bin/x86_64-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2014/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2014/texmf-dist/doc/info:$INFOPATH; export INFOPATH
Environment variables: Global configuration. Add the following line to file /etc/manpath.config:
MANPATH_MAP /usr/local/texlive/2014/bin/i386-linux /usr/local/texlive/2014/texmf-dist/doc/man
System font configuration for XeTEX and LuaTEX. Enable XeTEX and LuaTEX to use fonts shipped with TeXLive.
fc-cache -fv
."texlive-fontconfig.conf" file specifies the TeXLive fonts locations. Copy this file to home foler as per-user fonts configuration. The official site assumes ~/.fonts.conf as the destination folder, which is depricated! Details please refer to post Per user fonts.conf file. We can find in this post the new single user font configuration file location is $XDG_CONFIG_HOME/fontconfig/fonts.conf
. For more details, please read the man page by command man fonts.conf
.
Follow the official documentation for system test. Everything works fine except the "Chinese" issue. The current configuration cannot generate Chinese file since "xelatex" use windows fonts as default. We need to install windows fonts in Ubuntu though this is not legal.
<dir prefix="xdg">fonts</dir>
in file /etc/fonts/fonts.conf. This line denotes the location for single user fonts file location which is actually $XDG_DATA_HOME/fonts
= ~/.local/share/fonts. Details refer to fonts.conf - Font configuration files.fc-cache -fv
to update the fonts cache.fc-list :lang=zh-cn | sort
to see the Chinese fonts file name and fonts name.OSFONTDIR = ~/.local/share/fonts//;/usr/share/fonts//;/usr/local/share/fonts//
to file /usr/local/texlive/2014/texmf.cnf. This finds the fonts by fonts file name directly without the help of system "fontconfig" tool. So we need to add a line for OSFONTDIR in file "texmf.cnf". Since Ubuntu is case sensitive, so the file names "ctex-xecjk-winfonts.def" should be exactly the same as those in ~/.local/share/fonts/winfonts.You may read from several links that xelatex make use of Adobe Fonts as well. That is right though the default is Windows fonts. We can also install Adobe Fonts with exactly the same method as that of Windows Fonts. Copy Adobe Fonts from Windows System or from the Internet.