Can anyone describe how one can type Chinese in LaTeX? When I compile this:
\documentclass{article}
\begin{document}
你好吗?
\end{document}
the resulting document shows nothing. For reference my IME is iBus 1.3.9 on Fedora 13.
|
|
I use Chinese under XeLaTeX and the First, take a look at the explanation at Chou Pai-hsiang's website. This should get you started. There are other important comments here on tex.SE about the use of |
|||
|
|
|
The easiest way is (for Simplified Chinese document only):
It is designed for Chinese typesetting. Font sizes, indentation, name translation, line spacing, ... everything is set. There might be some problems on Linux with default font setting (for windows). Then you can define the fonts mannually using
If you just want to typeset only a few Chinese charecter, you can use
or
or
|
|||||||||||||
|
|
I recently ran into this on Fedora 16. You're seeing nothing due to not selecting the correct Chinese font, which is different on Windows, Mac and Linux. The trick to finding the right font for a language on Linux is: $ fc-list :lang=zh the default Chinese font on Fedora 16 is: WenQuanYi Zen Hei,文泉驛正黑,文泉驿正黑:style=Regular and on your Fedora 13 system it's likely to be: AR PL UMing TW:style=Light AR PL UMing CN:style=Light (I'm from Taiwan so I use the Traditional Chinese variant ending in TW. You want "AR PL UMing CN" for simplified Chinese.) To install Chinese fonts etc on Fedora, run:
Change your LaTeX source to:
and you should start seeing Chinese. The above snippet was to help you diagnose the Chinese font problem. For real work I second the recommendation for the xeCJK package. My personal setup is documented here. The inability to typeset the same Chinese, Japanese etc LaTeX source across Windows, Mac and Linux due to them having different fonts is a real pain but is not specific to XeTex. It's painful when using |
||||
|
|
|
For ConTeXt users, this is simple. First, use Next, the default fonts usually do not have Chinese characters, so you will need to create a typescript with Chinese fonts, then use |
|||
|
|