Chinese Input in LaTeX

You need at least:

sudo aptitude install latex-cjk-chinese

or install all chinese related packages:

sudo aptitude install latex-cjk-all

http://ubuntuforums.org/showthread.php?t=350101

\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK*}{UTF8}{song}
这是一个测试
\end{CJK*} (this is a test)
\end{document}

The above LaTeX code does not work when cyberbit fonts are not installed (no latex package yet - bug bad latex-cjk examples and needs-packaging: latex-cjk-cyberbit).

This works with the standard ubuntu packages:

\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{gbsn}
非常感 test
\end{CJK} (this is a test)
\end{document}
  • Use gbsn for simplified or bsmi for traditional characters set
  • I found the hint to gbsn as the dependencies for the latex-cjk-chinese package were the following: latex-cjk-chinese-arphic-gbsn00lp latex-cjk-chinese-arphic-gkai00mp latex-cjk-chinese-arphic-bkai00mp latex-cjk-chinese-arphic-bsmi00lp

Comments