## Japanese characters in LaTeX documents

Posted: 8th January 2012 by Tim in Japanese, LaTeX, Ubuntu
Tags: , , , , , , , , ,

Japanese, like many other Asian languages, is written using a variety of symbols which are not found in the standard ASCII table. Fortunately, you can include these symbols in LaTeX documents using the CJK package. In ubuntu this can be installed via the sudo apt-get install latex-cjk-japanese command. I’m not sure about Windows, Mac or other *nix distributions – let me know if you’ve worked it out.

Basically, adding the Japanese characters to your LaTeX document is as simple as including the cjk package and wrapping all your text in the CJK environment. You can then mix your Japanese with the rest of the document (English, tables, graphs, etc) without any other configuration.

For example:

\documentclass{article} \usepackage{CJK} \begin{document}

\begin{CJK}{UTF8}{min}     The word konnichiwa (こんにちは in hiragana) is a formal daytime greeting. \end{CJK}

\end{document}

Will create a document with the English and Japanese words mixed together. Too easy.

1. tmp says:

hmm.. ??? (kyou wa ) actually means “today” and not a synonym to konnichiwa

2. Tim says:

Thanks tmp, I’ve corrected the post.

3. Tristan says:

This is kind of fragile though, in that japanese characters are not even supported in section headings. For me the easiest solution was to install texlive-lang-cjk and use the platex compiler together with the CJK package to get it to work..

4. Steve says:

Thanks! This actually worked!