Po-Yi Chou

undergraduate in EECS in NCTU


Project maintained by poyichou Hosted on GitHub Pages — Theme by mattgraham

Home Notes Scripts Code Contact Blog

Notes-Latex

Installation

Arch User

# contains most TeX Live packages
sudo pacman -S texlive-most
# contains packages providing character sets and features for non-English languages
sudo pacman -S texlive-lang

Ubuntu User

# most TeX Live packages
sudo apt install texlive-full
# for certain font issues
sudo apt install fonts-arphic-ukai msttcorefonts ttf-mscorefonts-installer

To use chinese

\usepackage{CJKutf8} % add
...
\begin{document}
\begin{CJK}{UTF8}{bsmi} % add
...
\end{CJK} % add
\end{document} 

Problem:

% Description:
%   It happens when compiling with pdflatex while using \tableofcontents
%   with sections containing chinese characters.
%   error message: Package inputenc Error: Unicode char \u 8: XXX not set up for use with LaTeX
%   note: you may have to compile the .tex file twice after applying this solution
...
\clearpage % add
\end{CJK}